Skip to main content

/mhl_record

Retrieves a list of MHL records or creates a new one.

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

Methods:

  • GET — list MHL records;
  • POST — create MHL record.

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/mhl_record/
-H ‘Authorization: Token <<your_token>>
-F "limit=2" \
-F "offset=0"

Response example

{
"count": 2,
"next": "http://example.com",
"previous": null,
"results": [
{
"id": 9378,
"name": "Сметана-Домик в деревне-300-10.00-Стакан/Ванночка",
"musthavelist": 56,
"sku": 32562,
"sku1": null,
"sku2": null,
"sku3": null,
"sku4": null,
"sku5": null,
"sku6": null
},
{
"id": 4326,
"name": "Молоко пастеризованное-Домик в деревне-1000-3.70-Бутылка пластик",
"musthavelist": 41,
"sku": 32466,
"sku1": 32468,
"sku2": null,
"sku3": null,
"sku4": null,
"sku5": null,
"sku6": null
}
]
}

Response definitions


count integer

Required. Number of MHL records.

next string (uri) Nullable

Next page.


previous string (uri) Nullable

Previous page.


results Array of objects

Required. Array of objects with information about MHL records.

id string

Unique ID.


name string

Human-readable name. Optional.


musthavelist string

Must have list ID.


sku string

SKU ID.


sku1 string

SKU ID.


sku2 string

SKU ID.


sku3 string

SKU ID.


sku4 string

SKU ID.


sku5 string

SKU ID.


sku6 string

SKU ID.


Six optional sku1-sku6 fields are combined with logical OR when checking the MHL compliance:

Compliant = (sku is present) OR (sku1 is present) OR (sku2 is present) ... OR (sku6 is present)