Locations
Locations where inventory is stored.
A location must exist before it can be referenced by a transaction.
ออบเจ็กต์ Location
หัวข้อที่มีชื่อว่า “ออบเจ็กต์ Location”An inventory storage location. Locations are referenced by every transaction; create one before recording stock movements.
idintegerminimum 0, maximum 2147483647จำเป็น
Location id.
namestringจำเป็น
Location display name. Unique within the team.
quantitynumberจำเป็น
Total on-hand quantity at this location, summed across every item in the team.
memostringจำเป็น
Free-text memo for this location. Empty string when not set.
ตัวอย่าง
{ "id": 47041, "name": "Warehouse", "quantity": 9923, "memo": ""}เอนด์พอยต์
หัวข้อที่มีชื่อว่า “เอนด์พอยต์”- List locations
GET /v1/locations - Create a location
POST /v1/locations - Get a location
GET /v1/locations/{location_id} - Update a location
PUT /v1/locations/{location_id} - Delete a location
DELETE /v1/locations/{location_id}