MBOM API

Method: POST

Resource: /api/v1/product/mbom/import

Identification

To access, use the API access key and Entity ID outside the payload part of the JSON.

access_key (required)

Generate an API Access key at System > Users. 

entity_id (required)

After creating an entity, the Entity ID is visible at System > Settings.

Payload

Field definition: Version 5.0.0

Example

Request


"access_key": "[Clougistic API access key]","entity_id": ENTITY_ID,"payload": [      {     "sku": "TEST1",     "materials": [        {        "sku": "CHILD1-1",        "qty": 1        },        {        "sku": "CHILD1-2",        "qty": 2        }        ]     },     {     "sku": "TEST2",     "materials": [        {        "sku": "CHILD2-1",        "qty": 3        },        {        "sku": "CHILD2-2",        "qty": 4        }        ]     }  ]}



Response

{
  "data":
  {
      "mutated": 2,
      "total": 2
  },
  "status": "success"