distributor

Distributor - Create

Changed on

Create a new distributor with contact details and address.

post/distributor/create

Request

  • Base URL
    https://api.skulabs.com
  • URL
    https://api.skulabs.com/distributor/create
  • Auth
    HTTP bearer

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"
}

Changes

    • breaking

      added the new required request property /

    • breaking

      the request property became required

    • info

      api operation id post_distributor_create was added

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      added required request body

    • warning

      deleted the query request parameter data

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status