Location

Warehouses and stock locations used on inventory transactions.

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

Endpoints

GET
/location

List locations with pagination and filters

GET
/location/:CODE

Get a single location by code

POST
/location

Create a new location

PUT
/location/:CODE

Update a location by code

DELETE
/location/:CODE

Delete a location by code

Fields

FieldTypeRequiredNotes
codestring
Yes
Location / warehouse code. Proven: "WH-MAIN".
descriptionstring
Yes
Location name. Proven: "Main Warehouse".
description2stringNoSecondary description.
address1 – address4stringNoStreet address lines.
postcodestringNoPostcode.
citystringNoCity. Proven: "Kuala Lumpur".
statestringNoState / province.
countrystringNoCountry code or name.
attentionstringNoContact person.
phone1stringNoPrimary phone. Proven: "03-12345678".
phone2stringNoSecondary phone.
fax1 / fax2stringNoFax numbers.
emailstringNoEmail address.
projectstringNoProject code. Read from GET /project → data[].code.
isactivebooleanNoActive flag.
attachmentsstringNoFile attachment reference.
notestringNoAdditional notes.

Examples

POST — Create Location

POST /location
{
  "code": "WH-MAIN",
  "description": "Main Warehouse"
}

GET — List Locations

GET /location?offset=0