Update a register
Replaces all editable fields of a register: name, store, start time, type, status and stockroom. Leaving out inventoryLocationId clears it, so the register's sales then deduct from the default warehouse.
How to use it
- Get the register with Get a register and the store ID from List stores.
- Send the full register: name, storeId, fromTime, type and status, plus inventoryLocationId from List inventory locations to keep a stockroom.
- The stockroom must be active; the register is saved with exactly the values sent.
BearerAuthAuthorizationBearer <JWT>id*integerID of the record.
int64application/json- body
name*stringRegister name, unique across the merchant (max 100 characters). Required.
storeId*integerID of the store the register belongs to, from List stores. Required.
int64fromTime*stringDate and time the register comes into service, ISO 8601 with offset (e.g. 2026-01-05T08:00:00+04:00). Required.
type*stringVAN for a van-sales device or POS for an in-store till. Defaults to VAN.
"VAN""POS"status*stringACTIVE, INACTIVE, ARCHIVED or DELETED. Defaults to ACTIVE; creating an ACTIVE register fails if the plan's register limit is reached.
"ACTIVE""INACTIVE""ARCHIVED""DELETED"inventoryLocationId?|Stockroom ID from List inventory locations that this register's sales deduct from. Must be active. On a full update, leaving it out clears it.
uuidOK
*/*- response
id?|Register ID. Set by the server.
int64name*stringRegister name, unique across the merchant (max 100 characters).
store?The store the register belongs to.
fromTime*stringDate and time the register came into service (ISO 8601 with offset).
date-timetoTime?|Date and time the register was taken out of service; set when it is terminated, empty while in service.
date-timeterminationReason?|Reason recorded when the register was terminated; empty while in service.
type*stringKind of register: VAN for a van-sales device, POS for an in-store till.
"VAN""POS"status*stringRegister status: ACTIVE, INACTIVE, ARCHIVED or DELETED. Only ACTIVE registers count toward the plan's register limit.
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringWhen the register was last changed. Set by the server.
date-timeinventoryLocationId?|Stockroom (inventory location) this register's sales deduct stock from. When empty, sales deduct from the default warehouse.
uuidcurl -X PUT 'https://beta.iotoms.com/api/v1/catalog/business/registers/0' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "storeId": 0, "fromTime": "string", "type": "VAN", "status": "ACTIVE"}'{ "id": 0, "name": "string", "store": { "id": 0, "name": "string", "venue": { "id": 0, "name": "string", "status": "ACTIVE", "modifiedTime": "2019-08-24T14:15:22Z" }, "storeType": "string", "promotionalMessage": "string", "promotionalImage": "string", "status": "ACTIVE", "modifiedTime": "2019-08-24T14:15:22Z", "createdViaAi": true, "aiSessionId": "string" }, "fromTime": "2019-08-24T14:15:22Z", "toTime": "2019-08-24T14:15:22Z", "terminationReason": "string", "type": "VAN", "status": "ACTIVE", "modifiedTime": "2019-08-24T14:15:22Z", "inventoryLocationId": "8f43ca4f-50a9-41c3-817f-63e60279ba33"}