Area
Geographic areas or sales regions assigned to customers and suppliers.
Path Parameter:
:CODE (string) — the area code in the URL pathEndpoints
GET
/areaList areas with pagination and filters
GET
/area/:CODEGet a single area by code
POST
/areaCreate a new area
PUT
/area/:CODEUpdate a area by code
DELETE
/area/:CODEDelete a area by code
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| code | string | Yes | Area code. Proven: "KL". |
| description | string | Yes | Area name. Proven: "Kuala Lumpur". |
| attachments | string | No | File attachment reference. |
| isactive | boolean | No | Active flag. |
Examples
POST — Create Area
POST /area
{
"code": "KL",
"description": "Kuala Lumpur"
}GET — List Areas
GET /area?offset=0