Commerce and checkout
POST/v1/orders/{id}/checkout

Check out order

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/orders/{id}/checkout" \  -H "Authorization: Bearer agk_test_..." \  -H "Content-Type: application/json" \  -d '{"task_id":"weekly-report-42","wait_seconds":1}'

Pays every line item of an order as separate purchases through the policy engine and returns each intent's result, waiting up to wait_seconds (max 60) per purchase. Agent credential only; safe to retry, since each item unit uses a fixed idempotency key.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/orders/{id}/checkoutBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • agentKeyAuthorization: Bearer agk_test_...
Path
  • idstringrequired

    Order id (ord_...).

Body

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

Authorization

agentKey
headerAuthorizationBearer <agk_test_...>

Agent credential

Path Parameters

id*Id

Order id (ord_...).

Request Body

application/json
  1. body
task_id?|

The agent's own task reference, stored with the intent for tracing.

wait_seconds?Wait Seconds

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

Range0 <= value <= 60
Default20

Response Body

Success.

application/json
  1. response
order*
intents*array<>
[key: string]?any