Commerce data
The commerce's name, logo, brand color and category, with no token needed.
GET/v1/public/commerceNo token
The commerce's name, logo, brand color and category, with no token needed.
It exists to paint the program's header before the user signs in.
Headers
X-Commerce-IdintegerheaderrequiredId of the commerce integrating the API. Every response is scoped to this commerce.
Response
A Commerce object.
curl https://loybox-public-api-752998171300.southamerica-west1.run.app/v1/public/commerce \
-H "X-Commerce-Id: 87"// 200 OK
{
"id": 87,
"name": "Tienda Central",
"logo": "https://cdn.loybox.com.ar/logos/87.png",
"color": "#f1a10d",
"category_name": "Tienda de comics",
"currency": "ARS"
}With a session there is no need to call it
Once signed in, the same data comes inside
GET /v1/me in the commerce field, so there
is no need to ask for it again.
Errors
| Code | When |
|---|---|
400 | The commerce could not be fetched. |
422 | The X-Commerce-Id header is missing. |