v1

latestOpenAPI 3.0.32026-07-13149852.3 MB
distributor

Distributor - Create

Create a new distributor with contact details and address.

post/distributor/create

Request body

Example request

{
  "data": {
    "name": "Acme Supplies",
    "email": "contact@acme.com",
    "warehouse_id": "507f1f77bcf86cd799439011",
    "location_id": "507f1f77bcf86cd799439011"
  }
}

Response

Supplier created successfully

successboolean required

Whether the operation succeeded

_idstring required

ID of the created resource

Example response

{
  "_id": "507f1f77bcf86cd799439011"
}