Skip to content
Sign in

Open checkout

POST/v1/workplace/billing/checkout

Prepare or resume Checkout and return an authorized redirect.

AuthorizationBearer <token>

In: header

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/workplace/billing/checkout' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}'
{
  "purchase": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "state": "pending",
    "requestedAt": "2019-08-24T14:15:22Z",
    "expiresAt": "2019-08-24T14:15:22Z"
  },
  "action": {
    "kind": "checkout",
    "url": "http://example.com",
    "expiresAt": "2019-08-24T14:15:22Z"
  }
}