> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://docs.navalabs.ai/api/mcp` to find what you need.

# Settlement

Settle an exactly approved payment.

## Settle an approved merchant payment

`POST /settle`

Requires and consumes an unexpired approval bound to the exact payment before broadcast when Nava Guardian applies. Existing approved or rejected records remain authoritative even if the wallet is later unenrolled; a rejected payment is never claimable. Reconcile uncertain results instead of blindly retrying.

### Request body (required) (`application/json`)

- `paymentPayload` `object` _(required)_: Raw x402 payment payload, including the signed authorization. Caller-supplied policyId, agentId, and navaApiKey fields are ignored and stripped before base x402 verification. Policy is resolved from the payer wallet through the facilitator's integration.
- `paymentRequirements` `object` _(required)_
  - `scheme` `string` _(required)_
  - `network` `string` _(required)_
  - `asset` `string` _(required)_
  - `payTo` `string` _(required)_
  - `price` `string | object`: Amount in token base units.
  - `resource` `string`

### Responses

#### `200`: Logical success or failure. Read `success`.

Body (`application/json`):

- `success` `boolean` _(required)_
- `txHash` `string`
- `errorReason` `string`
- `network` `string` _(required)_
- `payer` `string`

#### `400`: Malformed or incomplete payment input.

Body (`application/json`):

- `error` `string`
- `message` `string`

#### `401`: The configured facilitator key is absent or invalid.

#### `500`: A required Developer Preview dependency failed; do not grant access.

### Example request

```bash
curl https://gateway.example.navalabs.ai/settle \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "paymentPayload": {},
  "paymentRequirements": {
    "scheme": "string",
    "network": "base",
    "asset": "string",
    "payTo": "string",
    "price": "string",
    "resource": "string"
  }
}'
```

```ts
fetch('https://gateway.example.navalabs.ai/settle', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    paymentPayload: {},
    paymentRequirements: {
      scheme: 'string',
      network: 'base',
      asset: 'string',
      payTo: 'string',
      price: 'string',
      resource: 'string'
    }
  })
})
```
