SKU Sold On Update
{{api_url}}/shop/products/sold_onSets Sold On flags for one or more SKUs in one call. The body is a JSON array with one object per SKU: the sku, plus one key per marketplace identifier set to 1 (sold on) or 0 (not sold on). Only the marketplaces sent change; any marketplace left out of a row keeps its current flag. To update a single SKU, send an array of one.
The Sold On flag decides whether InfiPlex sends a SKU's inventory and price to a marketplace: a flagged SKU is sent, an unflagged SKU is not. Flagging a SKU does not create or change its listing on the marketplace. Setting a flag queues nothing: to push newly flagged SKUs, run Queue Changes on that marketplace's Sell On page in the OMS.
Rows use the same shape SKU Sold On Search returns, so a search row can be edited and posted straight back. Keys that are not marketplace identifiers, such as product_name, are ignored.
Body
A JSON array, one object per SKU. No fixed batch limit.
| Field | Type | Description |
|---|---|---|
sku | string | The SKU to update. Required. |
| integer or string | One key per marketplace to change, for example wal or azu. 1 flags the SKU as sold on that marketplace, 0 removes the flag. Identifiers are not case sensitive. |
Only identifiers with sold_on_supported set to 1 in Channel List (/shop/connection/channel/list) work here. The full list is on SKU Sold On Search.
[
{"sku": "L0818", "wal": 1, "azu": 0},
{"sku": "A76_R_X_B", "way": 1, "azu": 1}
]
Example
{{api_url}}/shop/products/sold_on
Response
A JSON array with one object per row sent, in the order sent:
[
{
"sku": "L0818",
"success": 1,
"message": "sold on updated"
},
{
"sku": "A76_R_X_B",
"success": 1,
"message": "sold on updated"
}
]
| Field | Type | Description |
|---|---|---|
sku | string | The SKU as sent. |
success | integer | 1 when the row was saved, 0 when it was not. |
message | string | sold on updated on success, otherwise the reason the row was not saved. |
Messages when a row is not saved:
| Message | Meaning |
|---|---|
missing sku | The row has no sku. |
no valid sold on values found | The row has no marketplace identifier that supports Sold On. When unknown identifiers were sent, they are listed after invalid:, for example no valid sold on values found, invalid: wall. |
sku not found | The SKU does not exist in InfiPlex. |
Check success on every row rather than the HTTP status: one row failing does not fail the others.
Authorization
Bearer token, sent in the Authorization header. Inherited from the collection.
Body
[
{
"sku": "L0818",
"wal": "1",
"azu": "0"
},
{
"sku": "A76_R_X_B",
"way": "1",
"azu": "1"
}
]Example Request
curl --location --request POST '{{api_url}}/shop/products/sold_on' \
--header 'Authorization: Bearer {{auth_token}}' \
--data '[
{
"sku": "L0818",
"wal": "1",
"azu": "0"
},
{
"sku": "A76_R_X_B",
"way": "1",
"azu": "1"
}
]'Example Responses
SKU Sold On Update
Request
curl --location --request POST '{{api_url}}/shop/products/sold_on' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '[
{
"sku": "L0818",
"wal": "1",
"azu": "0"
},
{
"sku": "A76_R_X_B",
"way": "1",
"azu": "1"
}
]'Response 200 OK
[
{
"sku": "L0818",
"success": 1,
"message": "sold on updated"
},
{
"sku": "A76_R_X_B",
"success": 1,
"message": "sold on updated"
}
]
