Store API
For more details about this API usage check our API documentation
Introduction
The store API allows to user managing stores data. Stores can be created, queried or modified.
Preparation
- Have an authenticated token from the authentication service, this token should be used as an authorization
bearer token
header for every request done in this API (more information about the authorization service here).
Create a store
Stores can be created by making a POST request to the /stores
endpoint. The details of the discount must be
specified in the request body. An example request can be seen bellow.
Example request body:
These are some important attributes to clarify about stores, we are omitting the ones that are self-explanatory:
- The
storeId
value represents a store's unique identifier, this value is provided in the request when creating a store. distChain
is the distribution chain value the store belongs to.paymentMethods
is a list of the available payment methods that can be used in the store.priceCorrecionAllowed
is a flag that tells if the price of products can be manually corrected or not by the staff at the stores when processing purchases.language
specifies the primary language used in the store, this can used determine the language used in client applications.logoFilename
andfooterImageFilename
determines which image filenames should be used in printed receipts.receiptFooterMessage
is a list of strings that contains customizable text shown in printed receipts.active
is a flag that determines if a store is currently operating or not.
Example response:
Get store data
Stores can be queried by making a GET request to the /stores/{storeId}
endpoint, no request body is required.
Example response:
Update a store
To modify a store's data a PATCH request need to be done to the /storess/{storeId}
endpoint. Almost every attribute
can be modified. As an example we'll update a store opening hours.
Example request body:
Example response: