# Complete plan wallet step

Funds the owner's plans account and creates the on-chain permission the scheduled pulls draw from, after the plan was approved. Requires delegation:sign; returns the plan unchanged when the step is not needed.

`POST /v1/plans/{plan_id}/wallet-step`

Funds the owner's plans account and creates the on-chain permission the scheduled pulls draw from, after the plan was approved. Requires delegation:sign; returns the plan unchanged when the step is not needed.

Requires permission `delegation:sign`.

## Parameters

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

## Request body

```json
{
  "signed_tx": "string",
  "use_demo_wallet": true
}
```

## 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
{
  "plan": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "status": "active",
    "kind": "string",
    "offer": {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "name": "Example",
      "description": "Example"
    },
    "merchant": {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "name": "Example",
      "tier": "VERIFIED"
    },
    "agent": {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "name": "Example"
    },
    "pulls_done": 1,
    "count": 1,
    "total_base_units": "50000",
    "amount_base_units": "50000",
    "paid_base_units": "50000",
    "period_seconds": 1,
    "asset": "USDC",
    "network": "eip155:84532"
  },
  "payments": [
    {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "seq": 1,
      "amount_base_units": "50000",
      "status": "active",
      "scheduled_at": "2026-11-16T12:00:00Z",
      "pulled_at": "2026-11-16T12:00:00Z",
      "tx_ref": "string",
      "receipt_id": "rcpt_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "retries": 1,
      "error": "string"
    }
  ]
}
```
