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

# Get reward history entry

> Get a single reward redemption entry.

Get a single reward history entry by its ID. Validates that the entry belongs to the given customer and shop.

## Response

Returns a single [reward history entry](/api-reference/customers/list-reward-history) object.

## Errors

| Status | Scenario                                                              |
| ------ | --------------------------------------------------------------------- |
| `404`  | Entry or customer not found                                           |
| `429`  | [Rate limit](/api-reference/rate-limits) exceeded (6 requests/second) |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url https://api.mageloyalty.com/v1/customers/6789012345/reward-history/cr_abc123 \
    --header 'Authorization: <api-key>'
  ```

  ```javascript Node theme={null}
  const response = await fetch(
    "https://api.mageloyalty.com/v1/customers/6789012345/reward-history/cr_abc123",
    {
      method: "GET",
      headers: { Authorization: "<api-key>" },
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.mageloyalty.com/v1/customers/6789012345/reward-history/cr_abc123",
      headers={"Authorization": "<api-key>"},
  )

  data = response.json()
  ```

  ```php PHP theme={null}
  <?php
  $ch = curl_init("https://api.mageloyalty.com/v1/customers/6789012345/reward-history/cr_abc123");
  curl_setopt_array($ch, [
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_HTTPHEADER => ["Authorization: <api-key>"],
  ]);
  $data = json_decode(curl_exec($ch), true);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "type": "reward_history_entry",
      "id": "cr_abc123",
      "attributes": {
        "reward_id": "reward_abc",
        "reward_name": "£5 off your next order",
        "reward_discount_type": "fixed",
        "points_spent": 500,
        "discount_code": "MAGE-ABC123",
        "status": "active",
        "is_refunded": false,
        "discount_code_redeemed_at": null,
        "redeemed_at": "2024-06-01T12:00:00.000Z",
        "expires_at": "2024-07-01T12:00:00.000Z",
        "created_at": "2024-06-01T12:00:00.000Z",
        "updated_at": "2024-06-01T12:00:00.000Z"
      }
    }
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "errors": [
      {
        "status": "404",
        "title": "Not Found",
        "detail": "Reward history entry 'cr_abc123' not found"
      }
    ]
  }
  ```
</ResponseExample>
