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

# Settle intent

> record an on-chain settlement

> [!WARNING]
>
> **Confirm your deployment before running this request.** This page describes an API contract;
> a published reference does not establish hosted availability. Check the dated
> [host report](/api-reference/hosts) and obtain your deployment URL and credentials.
> Replace the example host if your provisioned service uses a different URL.

Record an on-chain settlement.

### Path parameters

**id** `string (uuid)` *required*

Payment intent id

### Request body

`SettleIntentRequest`

**block\_number** `integer (int64)` *required*

Minimum: `0`.

**tx\_hash** `string` *required*

### Response

`IntentResponse`

**amount** `integer (int64)` *required*

Minimum: `0`.

**amount\_decimal** `string` *required*

Exact decimal amount, rendered as a string.

**asset** `string` *required*

**block\_number** `integer,null (int64)`

Minimum: `0`.

**cart\_id** `string,null`

**chain\_id** `integer (int64)` *required*

Minimum: `0`.

**created\_at** `string` *required*

**id** `string` *required*

**invoice\_id** `string,null`

**network** `string` *required*

**nonce** `integer (int64)` *required*

Minimum: `0`.

**order\_id** `string,null`

**payee\_address** `string` *required*

**payer\_address** `string` *required*

**status** `string` *required*

**tx\_hash** `string,null`

**updated\_at** `string` *required*

**valid\_until** `integer (int64)` *required*

Minimum: `0`.

### Status codes

| Code | Meaning |
| - | - |
| `200` | — |
| `400` | — |
| `404` | — |
| `409` | — |

### Using this contract

Read the [source OpenAPI document](/spec/stateset-icommerce.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://api.stateset.com/api/v1/x402/intents/{id}/settle' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "block_number": 1001,
  "tx_hash": "string"
}'
```

```json 200 theme={null}
{
  "amount": 49,
  "amount_decimal": "string",
  "asset": "string",
  "block_number": 1001,
  "cart_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "chain_id": 1001,
  "created_at": "2026-08-31T14:22:05Z",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "invoice_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "network": "string",
  "nonce": 1,
  "order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "payee_address": "548 Market St",
  "payer_address": "548 Market St",
  "status": "pending",
  "tx_hash": "string",
  "updated_at": "2026-08-31T14:22:05Z",
  "valid_until": 1
}
```


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