Fetch Suppliers


This API returns the list of all Suppliers/Vendors registered with your account.

Basic Information

  • Method: GET
  • URI: /suppliers
  • 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 Fetch Suppliers API.

{info} The request parameters should be sent as query parameters in the URL.

Parameter Type Required Description
per_page Number No How many records you want at a time
page Number No Page number used for pagination


Sample Request

https://dev-fc-api.aymakan.net/api/v1/suppliers?page=1&per_page=20

Response

Sample response is added here:

{
    "success": true,
    "message": "",
    "data": [
        {
            "contact_person": "",
            "email": "[email protected]",
            "name": "John Doe",
            "phone": "1234567890"
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 10,
        "per_page": 1,
        "total": 10
    }
}