This allows you to create additional information for a store, e.g. the type and capacity of the store. However, unlike Adding a Store's Opening Times, this information is not mandatory.
Request
Perform a POST
request to:
https://dmo.metapack.com/locations/<Location ID>/customData
of content type:
application/json
with the following authorisation (the token is copied from the access_token
field that is returned from Generating a Bearer Token):
Bearer <Bearer Token>
Note
The token must be within its TTL and associated with a can-manage-opening-times-rules permission.
The body should contain custom object types, as in the following example:
{ "type": "shop", "capacity" : 100 }
Response
The response from Delivery Options is in JSON format, and will be in the form of an HTTP 201 CREATED
response if the request is successful. For other possible responses, refer to What are the possible Server Responses?.