> ## Documentation Index
> Fetch the complete documentation index at: https://catchbackcards.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a customer's rewards

> Non-crypto model with rewards on: a customer's XP, tier, next tier and next reward, and how many reward packs wait to open.

Scope: `nft:orders`

For [Non-crypto model](https://catchbackcards.mintlify.site/partner-api/v2/settlement.md) programs with [customer rewards](https://catchbackcards.mintlify.site/partner-api/v2/rewards.md) turned on; a Crypto Wallet program gets `400 NOT_PARTNER_SETTLED`, and a program with rewards off gets `403 REWARDS_NOT_ENABLED`.

The customer's progress on the VIP ladder. A customer you have never sold to gets zeros, not a `404`. [Create an order](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-order.md) answers `accepted` before the pack opens, so read this after the order's `nft_order.updated` reaches `in_vault`.

**customer** `string` *required*

Your own id for the customer, as you sent it as `customer` on [Create an order](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/create-order.md). 1-128 characters of `A-Z a-z 0-9 _ . : -`, not dots alone.

## Response

**rewards** `object`

**rewards**

**customer** `string`

The id you asked for.

**xp** `number`

Lifetime XP: 1 per \$1 of the packs the customer opened, at their price on your statement. Never resets; reward packs earn none.

**tier** `object | null`

The highest tier reached: `id`, `name` and `xp` (the tier's floor). Null below Bronze. A tier is never lost.

**next\_tier** `object | null`

The next tier: `id`, `name`, `xp` and `xp_needed` (XP still to go). Null at Obsidian.

**next\_milestone** `object | null`

The next reward pack on the way: `xp` (where it pays), `xp_needed`, `pack_type` and `pack_name`. Null below Bronze, and once the customer has passed this tier's three milestones (the next reward is then the next tier's pack).

**unopened\_reward\_packs** `integer`

Reward packs waiting to open. List them with [List a customer's reward packs](https://catchbackcards.mintlify.site/partner-api/v2/endpoints/list-customer-reward-packs.md).

Tier ids are `bronze`, `silver`, `gold`, `emerald`, `diamond`, `sapphire`, `ruby` and `obsidian`.

## Errors

| Status | Code | When |
| - | - | - |
| `400` | `NOT_PARTNER_SETTLED` | Your program pays through customer wallets |
| `400` | `BAD_CUSTOMER` | `customer` isn't 1-128 characters of `A-Z a-z 0-9 _ . : -`, or is only dots |
| `403` | `REWARDS_NOT_ENABLED` | Rewards aren't turned on for your program. Ask your CatchBack contact |

```bash cURL theme={null}
curl "https://sandbox.catchbackcards.com/api/partner/v2/customers/user-1842/rewards" \
  -H "Authorization: Bearer $CATCHBACK_KEY"
```

```json 200 theme={null}
{
  "rewards": {
    "customer": "user-1842",
    "xp": 23150,
    "tier": { "id": "gold", "name": "Gold", "xp": 20000 },
    "next_tier": { "id": "emerald", "name": "Emerald", "xp": 100000, "xp_needed": 76850 },
    "next_milestone": { "xp": 40000, "xp_needed": 16850, "pack_type": "silver", "pack_name": "Silver" },
    "unopened_reward_packs": 1
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.