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

# 4.7 Claims

> Create and retrieve refund claims.

Create and retrieve refund claims. All operations require the `EntraBearer` HTTP bearer scheme (Microsoft Entra access token for the Decision Lane API audience; authorization uses the token's `roles` claim).

## List refund claims

`GET /v1/claims`

Customers receive only their own claims. Reviewers and Admins can list claims across customers. Optionally filter by the claim status string.

**Query parameters**

**status** `string | null`

Optional claim status filter.

**Responses**

| Status | Description | Body |
| - | - | - |
| 200 | Successful Response | Array of [`RefundClaim`](https://docs.khanhng.com/decision-lane/api-reference/models#refundclaim) |
| 401 | The bearer token is missing or invalid. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 403 | The authenticated user does not have a required role. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 422 | Validation Error | [`HTTPValidationError`](https://docs.khanhng.com/decision-lane/api-reference/models#httpvalidationerror) |

## Create a refund claim

`POST /v1/claims`

Creates a claim for an order owned by the signed-in customer. The requested amount and currency must be compatible with the paid order.

**Request body** (`application/json`, required): [`CreateClaimRequest`](https://docs.khanhng.com/decision-lane/api-reference/models#createclaimrequest)

**Responses**

| Status | Description | Body |
| - | - | - |
| 201 | Successful Response | [`RefundClaim`](https://docs.khanhng.com/decision-lane/api-reference/models#refundclaim) |
| 400 | The request is invalid or violates a business rule. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 401 | The bearer token is missing or invalid. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 403 | The authenticated user does not have a required role. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 404 | The requested resource was not found. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 422 | Validation Error | [`HTTPValidationError`](https://docs.khanhng.com/decision-lane/api-reference/models#httpvalidationerror) |

## Get a refund claim

`GET /v1/claims/{claim_id}`

Returns a claim to its owning Customer or to an authenticated Reviewer or Admin. A customer who does not own the claim receives a not-found response.

**Path parameters**

**claim\_id** `string` *required*

Unique identifier of the claim.

**Responses**

| Status | Description | Body |
| - | - | - |
| 200 | Successful Response | [`RefundClaim`](https://docs.khanhng.com/decision-lane/api-reference/models#refundclaim) |
| 401 | The bearer token is missing or invalid. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 403 | The authenticated user does not have a required role. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 404 | The requested resource was not found. | [`ErrorResponse`](https://docs.khanhng.com/decision-lane/api-reference/models#errorresponse) |
| 422 | Validation Error | [`HTTPValidationError`](https://docs.khanhng.com/decision-lane/api-reference/models#httpvalidationerror) |


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