# Benefits they can buy (https://docs.loybox.com.ar/en/api-reference/clientes/beneficios-disponibles)



<Endpoint method="GET" path="/v1/clients/{client_code}/available-benefits" auth="api-key" />

Looks up the benefits available to a client: the ones shown on their benefits
screen, that is, the ones they **can buy** with their points.

It is the flip side of
[purchased benefits](https://docs.loybox.com.ar/api-reference/clientes/beneficios-comprados), which returns
the ones they already traded points for.

## Parameters
<Fields>
  <Field name="client_code" type="string" location="path" required="true">
    The client's code.
  </Field>
</Fields>

## Response
An array of [Benefit](https://docs.loybox.com.ar/api-reference/objetos#beneficio).

```bash
curl https://loybox-public-api-752998171300.southamerica-west1.run.app/v1/clients/12345/available-benefits \
  -H "Authorization: Bearer $LOYBOX_API_KEY"
```

```json
// 200 OK
[
  {
    "id": "b_9f2a",
    "type": "percentage_discount",
    "description": "20% de descuento en toda la tienda",
    "cost": 250,
    "expiration": "2026-12-31T23:59:59Z",
    "benefit_type": "normal",
    "color": "#f1a10d",
    "buy_limit": 0,
    "prize": {
      "type": "percentage_discount",
      "title": "20% off",
      "description": "Válido en toda la tienda",
      "value": 20,
      "product": null,
      "expiration": "2026-12-31T23:59:59Z",
      "image": null
    },
    "tiendanube_coupon": null
  }
]
```

<Callout type="info">
  The example's text values come back in the language the commerce wrote them in.
  They are data, not interface: Loybox does not translate what the brand typed.
</Callout>

Each benefit's `cost` is what it costs in points. To know which ones they can
afford, compare it with the `points` from
[getting a client](https://docs.loybox.com.ar/api-reference/clientes/obtener).

## Errors
| Code  | When                            |
| ----- | ------------------------------- |
| `404` | The client does not exist.      |
| `422` | The code is not a valid format. |
