# Approve payment intent

Same as approving the approval, addressed by payment intent: the body names the approval_id and carries the passkey assertion. Requires approval:decide; the approval must belong to this intent.

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

Same as approving the approval, addressed by payment intent: the body names the approval_id and carries the passkey assertion. Requires approval:decide; the approval must belong to this intent.

Requires permission `approval:decide`.

Policy decision: ALLOW, DENY.

## Parameters

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

## Request body

```json
{
  "challenge_id": "cha_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "credential": {},
  "approval_id": "apr_01jd2x3k4m5n6p7q8r9s0t1v2w"
}
```

## 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).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "approval": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "status": "active",
    "state": "string",
    "intent_id": "pi_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "plan_id": "pln_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "team_id": "team_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "created_at": "2026-11-16T12:00:00Z",
    "expires_at": "2026-11-16T12:00:00Z",
    "decided_by": {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "name": "Example"
    },
    "decided_at": "2026-11-16T12:00:00Z",
    "reject_reason": "string",
    "message": "string",
    "reason_code": "WITHIN_POLICY",
    "reason": {
      "code": "123456",
      "title": "Example",
      "body": "string"
    }
  },
  "intent": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "status": "active",
    "reason_code": "WITHIN_POLICY",
    "error": "string",
    "candidates": [
      {}
    ],
    "failure_code": "string",
    "failure_title": "string",
    "failure_message": "string"
  },
  "state": "string",
  "message": "string",
  "next_action": "string",
  "next_action_error": {
    "code": "123456",
    "message": "string",
    "details": {}
  }
}
```
