Assign a quick pick configuration to a scope
Adds a scope assignment so the configuration applies to a register, store, venue or all locations. scopeRefId is required unless scopeType is ALL. Returns all assignments for the configuration.
How to use it
- Take the configuration id from List quick pick configurations.
- Choose scopeType and, unless it is ALL, the matching id from List registers, List stores or List venues.
- Optionally set effectiveFrom/effectiveTo and active. The response lists all assignments; a till uses the most specific active one (register, store, venue, then all).
BearerAuthAuthorizationBearer <JWT>id*stringID of the record (UUID).
uuidapplication/json- body
scopeType*stringRequired. REGISTER, STORE, VENUE or ALL (every location). The most specific matching assignment wins on a till.
"REGISTER""STORE""VENUE""ALL"scopeRefId?|Id of the register, store or venue (from List registers, List stores or List venues). Required unless scopeType is ALL, where it must be left out.
int64effectiveFrom?|Optional start date and time (ISO 8601). Defaults to now.
date-timeeffectiveTo?|Optional end date and time. Leave out for no end date.
date-timeactive*booleanWhether the assignment is switched on. Defaults to true.
OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request was handled, ERROR otherwise.
message*stringShort human-readable message describing the outcome, e.g. which record was fetched or saved.
data?array<>|All scope assignments of the configuration.
curl -X POST 'https://beta.iotoms.com/api/v1/quickpick/configurations/497f6eca-6276-4993-bfeb-53cbbbba6f08/scopes' \ -H 'Content-Type: application/json' \ -d '{ "scopeType": "REGISTER", "active": true}'{ "status": "string", "message": "string", "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "scopeType": "REGISTER", "scopeRefId": 0, "effectiveFrom": "2019-08-24T14:15:22Z", "effectiveTo": "2019-08-24T14:15:22Z", "active": true } ]}