GoMake

Gomake API

POST

Get Suppliers (Paginated)

Retrieves a paginated list of suppliers with minimal data

/api/suppliers/list

Request Body

namestring(optional) - Filter by supplier name (partial match)
agentIdstring(optional) - Filter by agent ID (GUID)
isActiveboolean(optional) - Filter by active status
pageSizeinteger(required) - Number of items per page
customerTypestring(required) - Type of client: 'S' (Supplier). Defaults to 'S' if not provided.
pageNumberinteger(required) - Page number (1-based)
clientTypeIdstring(optional) - Filter by client type ID (GUID)
{
  "name": "",
  "isActive": true,
  "pageSize": 20,
  "customerType": "S",
  "pageNumber": 1
}

Responses

200Suppliers retrieved successfully
{
  "data": {
    "data": [
      {
        "id": "598d7a31-cca6-4816-be16-a6b395e98b85",
        "code": "300001",
        "mail": "supplier@example.com",
        "name": "Supplier Name",
        "phone": "+9720546123203",
        "isActive": true,
        "recordID": 96619,
        "createDate": "2025-01-06T14:15:24.735192",
        "clientTypeId": "c365bccf-eeb3-4df8-9adb-370a0fa5204a"
      }
    ],
    "totalItems": 69
  },
  "success": true
}
400Bad request - Invalid parameters
401Unauthorized - Invalid or missing API token
500Internal server error

Example Request

curl -X POST \
  https://api.gomake.net/api/suppliers/list \
  -H "Content-Type: application/json" \
  -H "X-Client-Id: your-client-id-here" \
  -H "X-Client-Secret: your-client-secret-here" \
  -d '{
  "name": "",
  "isActive": true,
  "pageSize": 20,
  "customerType": "S",
  "pageNumber": 1
}'

Note: Replace your-client-id-here and your-client-secret-here with your actual credentials. See the Authentication page for more details.