Skip to main content
POST
/
distributor
/
create
Distributor - Create
curl --request POST \
  --url https://api.skulabs.com/distributor/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "name": "Acme Supplies",
    "email": "contact@acme.com",
    "phone": "<string>",
    "address": {
      "street": "<string>",
      "street_2": "<string>",
      "city": "<string>",
      "state": "<string>",
      "zip": "<string>",
      "country": "<string>"
    },
    "terms": "<string>",
    "shipping": "<string>",
    "memo": "<string>",
    "notes": "<string>",
    "warehouse_id": "507f1f77bcf86cd799439011",
    "location_id": "507f1f77bcf86cd799439011"
  }
}
'
{
  "success": true,
  "_id": "507f1f77bcf86cd799439011"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
data
object
required

Supplier data to create

Response

Supplier created successfully

success
boolean
required

Whether the operation succeeded

_id
string
required

ID of the created resource

Example:

"507f1f77bcf86cd799439011"