Skip to main content
POST
/
v1
/
ucp
/
checkouts
/
batch-complete
Batch-complete checkouts
curl --request POST \
  --url https://api.getsly.ai/v1/v1/ucp/checkouts/batch-complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "checkout_ids": [
    "<string>"
  ],
  "payment_method_id": "<string>"
}
'
{
  "total": 123,
  "completed": 123,
  "failed": 123,
  "results": [
    {
      "checkout_id": "<string>",
      "status": "<string>",
      "error": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Body

application/json
checkout_ids
string[]
required
Required array length: 1 - 100 elements
payment_method_id
string

Response

200 - application/json

Batch results

total
number
required
completed
number
required
failed
number
required
results
object[]
required