# Commerce data (https://docs.loybox.com.ar/en/api-reference/publico/comercio)



<Endpoint method="GET" path="/v1/public/commerce" auth="none" />

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
<Fields>
  <Field name="X-Commerce-Id" type="integer" location="header" required="true">
    Id of the commerce integrating the API. Every response is scoped to this
    commerce.
  </Field>
</Fields>

## Response
A [Commerce](https://docs.loybox.com.ar/api-reference/objetos#comercio) object.

```bash
curl https://loybox-public-api-752998171300.southamerica-west1.run.app/v1/public/commerce \
  -H "X-Commerce-Id: 87"
```

```json
// 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"
}
```

<Callout type="info" title="With a session there is no need to call it">
  Once signed in, the same data comes inside
  [`GET /v1/me`](https://docs.loybox.com.ar/api-reference/mi-cuenta/obtener) in the `commerce` field, so there
  is no need to ask for it again.
</Callout>

## Errors
| Code  | When                                   |
| ----- | -------------------------------------- |
| `400` | The commerce could not be fetched.     |
| `422` | The `X-Commerce-Id` header is missing. |
