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

Execute payment intent

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/payment-intents/{intent_id}/execute" \  -H "Authorization: Bearer agk_test_..." \  -H "Content-Type: application/json" \  -d '{"wait_seconds":1}'

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.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/payment-intents/{intent_id}/executeBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • agentKeyAuthorization: Bearer agk_test_...
Path
  • intent_idstringrequired

    Payment intent id (pi_...).

Body

application/json · required. Fields are listed under Request body below.

Authorization

agentKey
headerAuthorizationBearer <agk_test_...>

Agent credential

Path Parameters

intent_id*Intent Id

Payment intent id (pi_...).

Request Body

application/json
  1. body
wait_seconds?Wait Seconds

How long the call waits for the payment result before returning the current state.

Default20

Response Body

Success.

application/json
  1. response
status*Status

Current state; the allowed values and moves are in the state machines reference.

intent_id?|

Payment intent id (pi_...).

payment_status?|

Payment state of the intent; the allowed values and moves are in the state machines reference.

fulfillment_status?|

Whether the paid resource was delivered.

decision?|

Policy decision: ALLOW, REQUIRE_APPROVAL or DENY.

reason_code?|

Machine-readable reason from the reason code catalog, for example ABOVE_AUTO_THRESHOLD.

receipt_id?|

Receipt id (rcpt_...).

amount_base_units?|

Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).

asset?|

Asset symbol, for example USDC or USDT; USD for card amounts.

network?|

Network as a CAIP-2 id, for example eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet).

rail?|

Payment rail: x402 (stablecoin over HTTP 402), wdk (direct USDT transfer) or card.

merchant?|null
resource?|null
approval_expires_at?string|null
poll_after_ms?integer|null
message?string|null
[key: string]?any