API reference · Contracts
Remove Products from the Contract
https://api.sandbox.cws.digital/pricing/contract/{contractId}/itemsDescription
Removes products from the contract. The products go back to being sold at the store's list price.
Send from 1 to 100 products per request, identified in the same way as in the addition. The price is not sent in the removal.
How to identify the product
Each product must carry one of the two forms, in this order of precedence:
| Form | Fields | When to use |
|---|---|---|
| By partner code | partnerPartCode | You identify the product by your own code. |
| By attribute | skuAttributeValue with skuAttributeName in the envelope | You have contracted the product catalog service with your own attribute. |
Parameters
Path parameters
| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| contractId | integer | Yes | Contract id, returned in |
Request body
application/jsonRequired| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| items | array of object | Yes | From 1 to 100 products. Fields in items[] | |
| skuAttributeName | string | Conditional | Name of the attribute used to resolve |
items[]| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| partnerPartCode | string | No | By partner code. You identify the product by your own code. Case-sensitive. | |
| skuAttributeValue | string | No | By attribute, with |
Business rules
A product outside the contract comes back in notFound
A product that is not in the contract does not interrupt the request: it comes back in notFound.items and the others are removed. The response is 200 even when no product was removed.
To empty the whole list at once, use deleteAllItems in Update Contract.