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"
}Create a new distributor with contact details and address.
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"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Supplier data to create
Show child attributes