API reference · Orders

Send Items Tracking - Marketplace

POSThttps://api.sandbox.cws.digital/partnerOrders/store/{id}/complementaryInfo

Description

Allows the origin store to report, item by item, the situation of each product of an order that was born in it — what has already shipped, what is being prepared, what is pending.

The body and the response are identical to those of the store route; what changes is the scope of who sends it.

Parameters

Path parameters

FieldTypeRequiredDescriptionValue
idintegerYes

Id of the partner order (partnerOrderId).

Request body

Content-Typeapplication/jsonRequired
Edit the body with
FieldTypeRequiredDescriptionValue
skusarray of objectYes

The tracking items. From 1 to 250 per request.

Fields in skus[]

Items of skus[]
skus[]
FieldTypeRequiredDescriptionValue
partnerPartCodestringYes

Your part code of the product, the same one you registered in the stock.

situationstringYes

Item situation. Free text — the platform does not validate it against a list.

quantityintegerYes

Quantity in that situation. Integer greater than zero.

Business rules

The submission reaches only the parts it contains

The scope of the submission is the item, not the order: each request replaces the tracking of the parts it mentions and leaves the others intact. You can send one product at a time, without resending the whole order.

Resending an item exactly equal to the one already saved does not recreate the record: it is kept as it is.

The same product in more than one situation

partnerPartCode can repeat in the same submission, once per situation — this is how you report three units shipped and two being prepared of the same product.

The quantities add up; the records do not compete with each other.

The sum does not exceed the item quantity in the order

For the same product, the sum of the reported quantities cannot exceed the quantity of that item in the order. If it does, the request is refused and nothing is saved.

The product must be in the order

The partnerPartCode is resolved against the lines of that order.

A code that matches no line, or that matches more than one, refuses the request — and the response says which code caused the refusal.

The partnerPartCode comparison is case-insensitive and ignores leading and trailing spaces: abc-123 matches a product registered as ABC-123.

Each product of the order must have, in the stock, a partnerPartCode that is filled in and not repeated in another line of the same order. A product without a registered code cannot be located by this route.

Responses

  • 401

    Missing, malformed or expired token.

  • 404

    The order does not exist or is not in your scope.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request POST \
  --url 'https://api.sandbox.cws.digital/partnerOrders/store/900201/complementaryInfo' \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "skus": [
    {
      "partnerPartCode": "SKU-A-001",
      "situation": "enviado",
      "quantity": 2
    },
    {
      "partnerPartCode": "SKU-A-001",
      "situation": "preparando",
      "quantity": 1
    }
  ]
}'

Response

Click Try it to see the real response here, or pick a documented example: