Create Supplier/Vendor


This endpoint is used to create the new Supplier/Vendor

Basic Information

  • Method: POST
  • URI: /suppliers
  • Request Format: JSON
  • Response Format: JSON

Headers

The following headers should be sent along with the request

  • Accept: application/json
  • Authorization: Your API Key

Request

Below table list the request parameters which can be sent to create supplier API in JSON format

{info} The request parameters should be sent as a JSON object in the request body

Parameter Type Required Description
name String Yes Full name of the supplier
email Email Yes The email address of the supplier. Must be unique for each supplier
phone String Yes The phone number of the supplier
contact_person String No The contact person associated with the supplier


Sample Request


URL:

https://dev-fc-api.aymakan.net/api/v1/suppliers


Body:

{
    "name": "Test Supplier",
    "contact_person": "Contact Person Test",
    "email": "[email protected]",
    "phone": "932329329329"
}

Response

Sample response is added here:

Success:

{
    "success": true,
    "message": "Your request has been queued",
    "data": null,
    "meta": null
}