For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bulk upsert Item Masters

Create or upsert up to 1000 item masters.

Use this for a batch of ERP item records. A successful request can still report rows that were skipped or rejected.

Behaviour

CREATE skips existing codes, while UPSERT updates them.

Alias codes are not accepted in bulk; inspect skippedCodes, invalidCodes, and the optional errors report.

Requires the itemMasters:write scope.

post
Authorizations
AuthorizationstringRequired

API key sent as a bearer token (mk_live_… / mk_test_…).

Body

Data schema used by Bulk upsert Item Masters (POST /v1/item-masters:bulk). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.

modestring · enumOptionalDefault: CREATEPossible values:
Responses
200

Successful response.

application/json
post/v1/item-masters:bulk
POST /v1/item-masters:bulk HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 162

{
  "mode": "CREATE",
  "items": [
    {
      "code": "text",
      "deliveryTime": 1,
      "m3": 1,
      "weight": 1,
      "weightUnit": "kg",
      "dimensions": {
        "width": 1,
        "depth": 1,
        "height": 1
      },
      "commerceId": "text"
    }
  ]
}
{
  "data": {
    "existingCount": 1,
    "added": 1,
    "updated": 1,
    "processed": 1,
    "skippedCodes": [
      "text"
    ],
    "invalidCodes": [
      "text"
    ],
    "errorsFileUrl": "text"
  }
}

Last updated

Was this helpful?