# Get payment intent

Returns one intent with attempts, settlement, receipt and a fulfillment status kept separate from payment status. Agents see their own intents, merchants a reduced view, and console users and API keys need payment:read.

`GET /v1/payment-intents/{intent_id}`

Returns one intent with attempts, settlement, receipt and a fulfillment status kept separate from payment status. Agents see their own intents, merchants a reduced view, and console users and API keys need payment:read.

MCP tool: `get_purchase_status`.

## Parameters

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

## Responses

- **200**: Success.
- **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
{
  "id": "pi_01m7dp8jrds968s54ybzme61kx",
  "status": "confirmed",
  "fulfillment_status": "delivered",
  "decision": "ALLOW",
  "reason_code": "WITHIN_POLICY",
  "reason_message": "This purchase is within your spending rules.",
  "amount_base_units": "50000",
  "amount_cents": null,
  "asset": "USDC",
  "network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
  "rail": "x402",
  "agent": {
    "id": "agt_01m7dmxx67d55ehbqb0my2b0e1",
    "name": "Local Agent",
    "kind": "local"
  },
  "merchant": {
    "id": "mch_01m7dmxx94amd9kk6aqvtnsey6",
    "name": "Demo Shop",
    "tier": "VERIFIED",
    "domain": "merchant.example.com"
  },
  "receipt_id": "rcpt_01m7dp8jzfyvrahq0fy5z38s6f",
  "approval_id": null,
  "sandbox": false,
  "kind": "purchase",
  "plan_id": null,
  "created_at": "2026-11-14T18:49:05.593793+00:00",
  "updated_at": "2026-11-14T18:49:05.745450+00:00",
  "settlement_ref": "63TpPPK8e43RFePtnmvzUByTpjxCNTKdkaZfqvjn3ABHw8CKL5YnWrpntba7sWD8YYhuUh6dNHWfbkNrUBYvQ9Zm",
  "purpose": "Order ord_01m7dp8jn8aae5zj9bhmaz65hy",
  "task_id": "ord_01m7dp8jn8aae5zj9bhmaz65hy",
  "url": "https://merchant.example.com/api/forecast",
  "method": "GET",
  "payee": "G6MJ4MFPbNfVXmkxKupvEzH1odKBgdxKbjiVbqmkJT3q",
  "fingerprint": "3bf07fa977818c1182eeb6c22876715c614bed5bd0ed49e1d5c0d54341294e3e",
  "mandate_id": "mdt_01m7dmxx4s2aw9p40vyaxmzdtf",
  "mandate_version": 4,
  "policy_version": "policy-2026-11-14.1",
  "shield_rules_version": "shield_rules_v1",
  "shield": {
    "block": [],
    "review": [],
    "scores": {
      "purpose": 0.02,
      "catalog_description": 0.02,
      "merchant_description": 0.02
    },
    "model_version": "heuristic-fallback-v1"
  },
  "decision_trace": [
    {
      "step": "0",
      "label": "Payments not paused",
      "detail": "kill switch off",
      "result": "pass",
      "reason_code": null
    },
    {
      "step": "1",
      "label": "Agent credential and spending rules",
      "detail": "mandate mdt_01m7dmxx4s2aw9p40vyaxmzdtf v4 active",
      "result": "pass",
      "reason_code": null
    }
  ],
  "chain_candidates": [
    {
      "reason": "delegation covers amount",
      "network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
      "eligible": true
    },
    {
      "reason": "lower priority",
      "network": "eip155:84532",
      "eligible": null
    }
  ],
  "requirements": {
    "asset": "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU",
    "extra": {
      "feePayer": "DBmq93VA2CEfvQJReg9SeezQKGC3dM955G1sH4sxh3Hp"
    },
    "payTo": "G6MJ4MFPbNfVXmkxKupvEzH1odKBgdxKbjiVbqmkJT3q",
    "amount": "50000",
    "scheme": "exact",
    "network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
    "resource": "https://merchant.example.com/api/forecast",
    "description": "Seven-day weather forecast for a city.",
    "asset_symbol": "USDC",
    "maxTimeoutSeconds": 60
  },
  "signed_payload_hash": "f93e9a809618a8e87933c371fa28f89e728ed65e73225b81ffa0f5fffc4bed8a",
  "error": null,
  "reason_scope": null,
  "resource": {
    "content_type": "application/json",
    "body": "{\"city\":\"Tbilisi\",\"days\":[{\"day\":1,\"high_c\":22,\"low_c\":2,\"sky\":\"snow\"},{\"day\":2,\"high_c\":10,\"low_c\":0,\"sky\":\"sunny\"},{\"day\":3,\"high_c\":17,\"low_c\":7,\"sky\":\"sunny\"},{\"day\":4,\"high_c\":11,\"low_c\":1,\"sky\":\"sunny\"},{\"day\":5,\"high_c\":10,\"low_c\":0,...(truncated)",
    "status_code": 200
  },
  "service": {
    "id": "svc_01m7dmxx984adaradtp4jc7yaf",
    "name": "forecast",
    "category": "data"
  },
  "approval": null,
  "settlement": {
    "tx_ref": "63TpPPK8e43RFePtnmvzUByTpjxCNTKdkaZfqvjn3ABHw8CKL5YnWrpntba7sWD8YYhuUh6dNHWfbkNrUBYvQ9Zm",
    "status": "finalized",
    "finalized_at": "2026-11-14T18:49:05.741334+00:00",
    "reconciliation_status": "matched"
  },
  "attempts": [
    {
      "id": "att_01m7dp8jv2azk17mwmj5sdd3wd",
      "adapter": "x402",
      "facilitator": "mock",
      "network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
      "signed_payload_hash": "f93e9a809618a8e87933c371fa28f89e728ed65e73225b81ffa0f5fffc4bed8a",
      "tx_ref": "63TpPPK8e43RFePtnmvzUByTpjxCNTKdkaZfqvjn3ABHw8CKL5YnWrpntba7sWD8YYhuUh6dNHWfbkNrUBYvQ9Zm",
      "response_code": 200,
      "error": null,
      "request_at": "2026-11-14T18:49:05.635209+00:00"
    }
  ],
  "steps": {
    "decided": "2026-11-14T18:49:05.605599+00:00",
    "signed": "2026-11-14T18:49:05.634647+00:00",
    "submitted": "2026-11-14T18:49:05.716704+00:00",
    "settled": "2026-11-14T18:49:05.749621+00:00",
    "anchored": "2026-11-14T18:49:08.249719+00:00",
    "anchor_status": "finalized",
    "anchor_tx": "TJhrsmszkSrNMkVrUebJadryeQYSzNP7SHPTgH7LNdJHqyMzJ8Hr7T6k7gpRgRQVXo1i4F1Mf28YghwT1gguLAR"
  }
}
```
