/sku/{id}
Retrieve detailed SKU information by ID, or updates the fields in the SKU card (specified or all).
Adress: https://instance_name/api/v1.5/sku/{id}
Methods:
- GET — retrieve detailed SKU information by ID;
- PUT — update all SKU fields;
- PATCH — update some SKU fields.
Content-type: application/json
- GET
- PUT
- PATCH
Path parameters
id
string
Request example
curl –i –X GET
https://test.inspector-cloud.com/api/v1.5/sku/703/
-H ‘Authorization: Token <<your_token>>’
Response example
Response code: 200
{
"id": 703,
"cid": "9000101421",
"ean13": null,
"image": 86824084,
"name": "Bref 2x50g ProNature Fresh Mint",
"brand": 376,
"category": 49,
"manufacturer": 6,
"size_x_mm": 125,
"size_y_mm": 176,
"size_z_mm": 50
}
Response definitions
id
string
SKU ID.
cid
string
Client-specific SKU ID, e.g. internal code
ean13
string
European Article Number.
image
string
SKU image ID, available via /uploads or /uploads_by_url.
name
string
Human readable SKU name.
brand
string
Brand ID.
category
string
Category ID.
manufacturer
string
Monofacturer ID.
size_x_mm
float
Product width in mm.
size_y_mm
float
Product height in mm.
size_z_mm
float
Product depth in mm.
Path parameters
id
string
Request body parameters
id
string
SKU ID.
cid
string
Client-specific SKU ID, e.g. internal code
ean13
string
European Article Number.
image
string
SKU image ID, available via /uploads or /uploads_by_url.
name
string
Human readable SKU name.
brand
string
Brand ID.
category
string
Category ID.
manufacturer
string
Monofacturer ID.
size_x_mm
float
Product width in mm.
size_y_mm
float
Product height in mm.
size_z_mm
float
Product depth in mm.
Request example
curl –i –X PUT
https://test.inspector-cloud.com/api/v1.5/sku/704/
-H ‘Authorization: Token <<your_token>>’
-F "id=9846" \
-F "cid=9000101421" \
-F "image=86824084" \
-F "name=Bref 2x50g ProNature Fresh Mint" \
-F "brand=376" \
-F "category=49" \
-F "manufacturer=6" \
-F "size_x_mm=125" \
-F "size_x_mm=176" \
-F "size_z_mm=50" \
Response example
Response code: 200
{
"id": 9846,
"cid": "9000101421",
"ean13": null,
"image": 86824084,
"name": "Bref 2x50g ProNature Fresh Mint",
"brand": 376,
"category": 49,
"manufacturer": 6,
"size_x_mm": 125,
"size_y_mm": 176,
"size_z_mm": 50
}
Path parameters
id
string
Request body parameters
id
string
SKU ID.
cid
string
Client-specific SKU ID, e.g. internal code
ean13
string
European Article Number.
image
string
SKU image ID, available via /uploads or /uploads_by_url.
name
string
Human readable SKU name.
brand
string
Brand ID.
category
string
Category ID.
manufacturer
string
Monofacturer ID.
size_x_mm
float
Product width in mm.
size_y_mm
float
Product height in mm.
size_z_mm
float
Product depth in mm.
Request example
curl –i –X PATCH
https://test.inspector-cloud.com/api/v1.5/sku/704/
-H ‘Authorization: Token <<your_token>>’
-F "id=9846" \
-F "name=PAPEL HIGIENICO SUPER MAX 220 MAX 4 ROLLOS" \
Response example
Response code: 200
{
"id": 9846,
"cid": "9000101421",
"ean13": null,
"image": 86824084,
"name": "PAPEL HIGIENICO SUPER MAX 220 MAX 4 ROLLOS",
"brand": 376,
"category": 49,
"manufacturer": 6,
"size_x_mm": 125,
"size_y_mm": 176,
"size_z_mm": 50
}