Supplier
Suppliers share the same field structure as customers, with a creditor control account.
Path Parameter:
:CODE (string) — the supplier code in the URL pathEndpoints
GET
/supplierList suppliers with pagination and filters
GET
/supplier/:CODEGet a single supplier by code
POST
/supplierCreate a new supplier
PUT
/supplier/:CODEUpdate a supplier by code
DELETE
/supplier/:CODEDelete a supplier by code
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| code | string | Yes | Supplier code. Proven: "SUP-01". |
| companyname | string | Yes | Business name. The field is companyname — not company. Proven: "Test Supplier Sdn Bhd". |
| controlaccount | string | No | Creditor control account (TRADE CREDITORS). Default: "400-000" |
| companycategory | string | No | Read from GET /companycategory → data[].code. Default: "----" |
| area | string | No | Read from GET /area → data[].code. Default: "----" |
| agent | string | No | Read from GET /agent → data[].code. Default: "----" |
| creditterm | string | No | Read from GET /terms → data[].code. Default: "30 Days" |
| currencycode | string | No | Read from GET /currency → data[].code. Default: "----" |
| pricetag | string | No | Read from GET /pricetag → data[].code. Default: null |
| tax | string | No | Read from GET /tax → data[].code. Default: null |
| creditlimit | string | No | Stored as a string. Default: "30000" |
| creationdate | string | No | Format: 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=0GET — Single Supplier
GET /supplier/SUP-01Notes
- Sub-arrays available: sdsbranch, sdscreditcontrol, sdsbankacc, sdstariff.
- Default controlaccount is 400-000; customer uses 300-000.
