Supplier

Suppliers share the same field structure as customers, with a creditor control account.

Path Parameter::CODE (string) — the supplier code in the URL path

Endpoints

GET
/supplier

List suppliers with pagination and filters

GET
/supplier/:CODE

Get a single supplier by code

POST
/supplier

Create a new supplier

PUT
/supplier/:CODE

Update a supplier by code

DELETE
/supplier/:CODE

Delete a supplier by code

Fields

FieldTypeRequiredNotes
codestring
Yes
Supplier code. Proven: "SUP-01".
companynamestring
Yes
Business name. The field is companyname — not company. Proven: "Test Supplier Sdn Bhd".
controlaccountstringNoCreditor control account (TRADE CREDITORS).
Default: "400-000"
companycategorystringNoRead from GET /companycategory → data[].code.
Default: "----"
areastringNoRead from GET /area → data[].code.
Default: "----"
agentstringNoRead from GET /agent → data[].code.
Default: "----"
credittermstringNoRead from GET /terms → data[].code.
Default: "30 Days"
currencycodestringNoRead from GET /currency → data[].code.
Default: "----"
pricetagstringNoRead from GET /pricetag → data[].code.
Default: null
taxstringNoRead from GET /tax → data[].code.
Default: null
creditlimitstringNoStored as a string.
Default: "30000"
creationdatestringNoFormat: YYYY-MM-DD.
Default: today

Examples

POST — Create Supplier

POST /supplier
{
  "code": "SUP-01",
  "companyname": "Test Supplier Sdn Bhd"
}

GET — List Suppliers

GET /supplier?offset=0

GET — Single Supplier

GET /supplier/SUP-01

Notes