API reference
Imports
Record what you listed and map your variant ids to ours.
get
/importsYour imported products and their sync statuspost/importsMark products as imported and map your variant ids to oursdelete/imports/{id}Stop syncing a productpost/imports/{id}/sync-resultReport whether applying our last change to your store workedYour imported products and their sync status
get
/importsParameters
statusquery · enum |
|
limitquery · integer | Default 50 |
cursorquery · string |
|
Example request
curl "https://backend.markitmall.com/dropship/v1/imports" \
-H "Authorization: Bearer mk_test_XXXX:sk_test_XXXX"Response 200
datarequired | — |
nextCursorrequiredstring | null | — |
Example response
JSON
{
"data": [
{
"id": "66f0c2a1b2c3d4e5f6a7b8c9",
"productId": "66f0c2a1b2c3d4e5f6a7b8c9",
"externalProductId": "66f0c2a1b2c3d4e5f6a7b8c9",
"syncStatus": "ok",
"available": true,
"variants": [
{}
]
}
],
"nextCursor": "string"
}Errors: 401 — the body is always { error: { code, message, details } }.
Mark products as imported and map your variant ids to ours
post
/importsSend one product, or { products: [...] } (up to 50). Re-importing updates the mapping. Map variants so orders can use your own externalVariantId.
Request body
Either
productIdrequiredstring | — |
externalProductIdstring | — |
customTitlestring | — |
resalePriceinteger | — |
variantsobject[] | — |
variants[].variantIdrequiredstring | — |
variants[].externalVariantIdrequiredstring | — |
variants[].externalSkustring | — |
Or
productsImportRequest[] · max 50 items | — |
Example request
curl -X POST "https://backend.markitmall.com/dropship/v1/imports" \
-H "Authorization: Bearer mk_test_XXXX:sk_test_XXXX" \
-H "Content-Type: application/json" \
-d '{
"productId": "66f0c2a1b2c3d4e5f6a7b8c9",
"externalProductId": "66f0c2a1b2c3d4e5f6a7b8c9",
"customTitle": "string",
"resalePrice": 1500,
"variants": [
{
"variantId": "66f0c2a1b2c3d4e5f6a7b8c9",
"externalVariantId": "66f0c2a1b2c3d4e5f6a7b8c9",
"externalSku": "string"
}
]
}'Response 201 — Created
data | — |
Example response
JSON
{
"data": [
{
"id": "66f0c2a1b2c3d4e5f6a7b8c9",
"productId": "66f0c2a1b2c3d4e5f6a7b8c9",
"externalProductId": "66f0c2a1b2c3d4e5f6a7b8c9",
"syncStatus": "ok",
"available": true,
"variants": [
{}
]
}
]
}Errors: 400, 401, 404 — the body is always { error: { code, message, details } }.
Stop syncing a product
delete
/imports/{id}Parameters
idrequiredpath · string |
Example request
curl -X DELETE "https://backend.markitmall.com/dropship/v1/imports/{id}" \
-H "Authorization: Bearer mk_test_XXXX:sk_test_XXXX"Response 200
An object; its fields are not fixed.
Example response
JSON
{}Errors: 401, 404 — the body is always { error: { code, message, details } }.
Report whether applying our last change to your store worked
post
/imports/{id}/sync-resultParameters
idrequiredpath · string |
Request body
statusrequiredenum | —
|
errorstring | — |
Example request
curl -X POST "https://backend.markitmall.com/dropship/v1/imports/{id}/sync-result" \
-H "Authorization: Bearer mk_test_XXXX:sk_test_XXXX" \
-H "Content-Type: application/json" \
-d '{
"status": "ok",
"error": "string"
}'Response 200
An object; its fields are not fixed.
Example response
JSON
{}Errors: 401, 404 — the body is always { error: { code, message, details } }.
