Update SKU data for your products. We map all combinations of color and size. For example, if you send Color:Blue|Size:Small and Color:Red|Size:Medium, we will create 4 SKUs for:
- Color:Blue | Size:Small
- Color:Blue | Size:Medium
- Color:Red | Size:Small
- Color:Red | Size:Medium
Endpoint
- Method: POST
- URI:
https://api.jooraccess.com/v4/skus/bulk_update?account=[account_id]
Params
- Accept: application/json
- Authorization: OAuth2 [Base64 encoded token]
Sample cURL Request
curl -X POST "https://api.jooraccess.com/v4/skus/bulk_update" -H "accept: application/json" -H "Content-Type: application/json" -d "[{\"id\":\"string\",\"external_id\":\"string\",\"sku_identifier\":\"string\",\"trait_values\":[{\"trait_id\":\"string\",\"value\":\"string\",\"external_id\":\"string\",\"order_minimum\":0,\"status\":\"string\"}],\"identifiers\":[{\"type\":\"string\",\"value\":\"string\"}]}]"
Workflow
- Fetch a list of SKU ids using the GET /skus endpoint
- Reference the id of the SKU you want to update
SKU Data
PARAMETERS | REQUIRED | TYPE | NOTES |
---|---|---|---|
id | Y | string | |
external_id | N | string | |
sku_identifier | N | string |
SKU Trait Data
Insert id U0tVVHJhaXQ6U3R5bGVDb2xvcg== for trait type Color
Insert id U0tVVHJhaXQ6U2l6ZQ== for trait type Size
When the SKU is created, we set to status:ACTIVE by default. This means that it will be displayed and shoppable on a collection.
PARAMETERS | REQUIRED | TYPE | NOTES |
---|---|---|---|
trait_id | Y | string | |
value | Y | string | |
external_id | N | string | |
order_minimum | N | integer | |
status | N | string |
SKU Identifier Data
PARAMETERS | REQUIRED | TYPE | NOTES |
---|---|---|---|
type | N | string | |
value | N | string |
Request Example
[
{
"id": "555555",
"external_id": "444444",
"sku_identifier": "333333",
"trait_values": [
{
"trait_id": "U0tVVHJhaXQ6U3R5bGVDb2xvcg==",
"value": "Green",
"external_id": "GRN",
"order_minimum": 0,
"status": "ACTIVE"
},
{
"trait_id": "U0tVVHJhaXQ6U2l6ZQ==",
"value": "Large",
"external_id": "LRG",
"order_minimum": 0,
"status": "ACTIVE"
}
],
"identifiers": [
{
"type": "UPC",
"value": "666666"
}
]
}
]
Response Example
{
"data": [
{
"id": "555555",
"product_id": "111111",
"identifiers": [
{
"type": "UPC",
"value": "666666"
}
],
"trait_values": [
{
"trait": {
"id": "U0tVVHJhaXQ6U3R5bGVDb2xvcg==",
"name": "Color"
},
"value": "Green",
"external_id": "GRN",
"order_minimum": 0,
"status": "ACTIVE"
},
{
"trait": {
"id": "U0tVVHJhaXQ6U2l6ZQ==",
"name": "Size"
},
"value": "Large",
"external_id": "LRG",
"order_minimum": 0,
"status": "ACTIVE"
}
],
"external_id": "444444",
"sku_identifier": "333333"
}
],
"errors": []
}