# Execute payment intent

Starts payment of an allowed (reserved) intent and waits up to wait_seconds for the result; on an intent already running it only waits. Agent credential only, for the agent's own intents.

`POST /v1/payment-intents/{intent_id}/execute`

Starts payment of an allowed (reserved) intent and waits up to wait_seconds for the result; on an intent already running it only waits. Agent credential only, for the agent's own intents.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `intent_id` | path | yes | Payment intent id (pi_...). |

## Request body

```json
{
  "wait_seconds": 1
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "status": "active",
  "intent_id": "pi_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "payment_status": "string",
  "fulfillment_status": "string",
  "decision": "ALLOW",
  "reason_code": "WITHIN_POLICY",
  "receipt_id": "rcpt_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "amount_base_units": "50000",
  "asset": "USDC",
  "network": "eip155:84532",
  "rail": "x402",
  "merchant": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "name": "Example",
    "tier": "VERIFIED",
    "domain": "merchant.example.com"
  },
  "resource": {
    "content_type": "string",
    "body": "string",
    "status_code": 1
  },
  "approval_expires_at": "2026-11-16T12:00:00Z"
}
```
