Replace a store
Updates a store with the fields you send: name, venueId, storeType and status are required. promotionalMessage and promotionalImage keep their current values when omitted. Use Update store fields to change only some fields.
How to use it
- Get the store ID from List stores and the venue ID from List venues.
- Send name, venueId, storeType and status, plus any promotional fields to change; omitted promotional fields are kept.
- The updated store is returned.
BearerAuthAuthorizationBearer <JWT>id*integerID of the record.
int64application/json- body
name*stringStore name. Required and cannot be blank.
venueId*integerID of the venue (site or location group) the store belongs to; from List venues. Required.
int64storeType*stringFree-text store category set by the merchant, for example a format or channel label. Required.
promotionalMessage?|Optional promotional text shown for the store.
promotionalImage?|Optional reference to a promotional image for the store.
status*stringStore status: ACTIVE, INACTIVE, ARCHIVED or DELETED. Defaults to ACTIVE.
"ACTIVE""INACTIVE""ARCHIVED""DELETED"OK
*/*- response
id?|Store ID. Send it as storeId when creating or moving a register.
int64name*stringStore name, unique across the merchant.
venue?The venue (site) the store belongs to, if any.
storeType?|Free-text store type set by the merchant.
promotionalMessage?|Promotional message configured for the store.
promotionalImage?|Promotional image reference configured for the store.
status*stringStore status: ACTIVE, INACTIVE, ARCHIVED or DELETED.
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringWhen the store was last changed.
date-timecreatedViaAi*booleanTrue when the store was created through the AI assistant.
aiSessionId?|ID of the AI assistant session that created the store, when createdViaAi is true.
curl -X PUT 'https://beta.iotoms.com/api/v1/catalog/business/stores/0' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "venueId": 0, "storeType": "string", "status": "ACTIVE"}'{ "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"}