# Get plan

Returns one plan with its terms, schedule and payments. Callable with a console session or an API key holding payment:read.

`GET /v1/plans/{plan_id}`

Returns one plan with its terms, schedule and payments. Callable with a console session or an API key holding payment:read.

Requires permission `payment:read`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `plan_id` | path | yes | Plan id (pln_...). |

## Responses

- **200**: Success.
- **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
{
  "plan": {
    "id": "pln_01m7dnksgcmgy3texmv2dx22ea",
    "status": "cancelled",
    "kind": "installment",
    "offer": {
      "id": "pof_test5",
      "name": "Data pack (test 5s)",
      "description": "temp"
    },
    "merchant": {
      "id": "mch_01m7dmxx94amd9kk6aqvtnsey6",
      "name": "Demo Shop",
      "tier": "VERIFIED"
    },
    "agent": {
      "id": "agt_01m7dmxx6xa5jqkh3djxbg1va9",
      "name": "Procurement Agent"
    },
    "pulls_done": 2,
    "count": 4,
    "total_base_units": "1200000",
    "amount_base_units": "300000",
    "paid_base_units": "600000",
    "period_seconds": 5,
    "asset": "USDC",
    "network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
    "payee": "G6MJ4MFPbNfVXmkxKupvEzH1odKBgdxKbjiVbqmkJT3q",
    "next_payment_at": null,
    "intent_id": "pi_01m7dnksgh53eh5wbqvtj0tfmy",
    "approval_id": "apr_01m7dnksgqaemfr37svjafsfmy",
    "created_at": "2026-11-14T18:37:44.333187+00:00",
    "activated_at": "2026-11-14T18:37:49.216221+00:00",
    "ended_at": "2026-11-14T18:37:56.470906+00:00",
    "cancelled_by": "usr_01m7dmxx43vkd5ezrghf9m2yty",
    "plans_account": "5X91gcs56iWNW7MBCMdtmqHeogYaY3fm4keDNWhUjer4",
    "reservation": {
      "id": "rsv_01m7dnky1dpkt0t5qhvbjdkbt0",
      "amount_base_units": "1200000",
      "committed_base_units": "600000",
      "released_base_units": "600000",
      "status": "committed"
    },
    "delegation": {
      "id": "dlg_01m7dnky8mm9c9gwt9v0x7d0ee",
      "kind": "subscription_fixed",
      "status": "revoked",
      "token_account": "5X91gcs56iWNW7MBCMdtmqHeogYaY3fm4keDNWhUjer4",
      "delegate": "5nzHcTvHCynXBfN1JMJCMrZQtLJW9eJHbmKbZ4wNwKjy",
      "cap_base_units": "1200000",
      "remaining_base_units": "0",
      "period_amount": "300000",
      "tx_ref": "4otk5YTTWAf3cVqtBPbPHU897mJnXcGifhdTs2bJAkrszrZteKuErfEDo6KrVu3b7a4L8KbbGCnoLmzrtzchJyhx",
      "activated_at": "2026-11-14T18:37:49.215412+00:00",
      "revoked_at": "2026-11-14T18:37:56.490056+00:00"
    }
  },
  "payments": [
    {
      "id": "ppy_01m7dnky90196j0k5m4fjfy63f",
      "seq": 1,
      "amount_base_units": "300000",
      "status": "paid",
      "scheduled_at": "2026-11-14T18:37:49.216221+00:00",
      "pulled_at": "2026-11-14T18:37:49.245139+00:00",
      "tx_ref": "eD74C9hFpJ5FKB7qL9WSxymGKwaJP1d47q6BLxu6Bk8Jd7Xnzh3KftaeJQ4BZVaHC4kfqdzTt89fCwiWDXeAfA1",
      "receipt_id": "rcpt_01m7dnkya762e9qtwy241q30pr",
      "retries": 0,
      "error": null
    },
    {
      "id": "ppy_01m7dnky90196j0k5m4fjfy63g",
      "seq": 2,
      "amount_base_units": "300000",
      "status": "paid",
      "scheduled_at": "2026-11-14T18:37:54.216221+00:00",
      "pulled_at": "2026-11-14T18:37:54.330716+00:00",
      "tx_ref": "4ynUKKNeHo3xhMsDo7d6u6xsETePoz1uPMvoiMriKSYCG12CPRNzhKVam6Qd8hakj5G4F4Fd5mj9ycxTRKkgWdnL",
      "receipt_id": "rcpt_01m7dnm3a8s1jtggp5w8n7ram8",
      "retries": 0,
      "error": null
    }
  ]
}
```
