Organizations and members
POST/v1/org/onboarding/test-purchase

Run test purchase

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/org/onboarding/test-purchase" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"agent_id":"agt_01jd2x3k4m5n6p7q8r9s0t1v2w"}'

Runs a sandbox purchase of the demo shop's forecast service with one of the organization's agents and returns the payment intent id and status. Console session with agent:create or the Developer role.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/org/onboarding/test-purchaseBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
Body

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

Authorization

session
cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
agent_id*Agent Id

Agent id (agt_...).

Response Body

Success.

application/json
  1. response
intent_id?|

Payment intent id (pi_...).

status*Status

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

[key: string]?any