Skip to main content

/sku

Retrieves a list of SKU or creates a new one.

Adress: https://instance_name/api/v1.5/sku/

Methods:

  • GET — list SKU;
  • POST — create SKU.

Content-type: application/json

Request body parameters


limit integer

Number of results to return per page.


offset integer

The initial index from which to return the results.


Request example

curl –i –X GET
https://test.inspector-cloud.com/api/v1.5/sku/
-H ‘Authorization: Token <<your_token>>
-F "limit=2" \
-F "offset=0"

Response example

{
"count": 2,
"next": "http://example.com",
"previous": null,
"results": [
{
"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
},
{
"id": 704,
"cid": "7441078217",
"ean13": null,
"image": 86824149,
"name": "PAPEL HIGIENICO SUPER MAX 220 MAX 4 ROLLOS",
"brand": 10285,
"category": 3235,
"manufacturer": 474,
"size_x_mm": 200,
"size_y_mm": 210,
"size_z_mm": 110
}
]
}

Response definitions


count integer

Required. Number of SKU's.

next string (uri) Nullable

Next page.


previous string (uri) Nullable

Previous page.


results Array of objects

Required. Array of objects with information about SKU's.

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.