Skip to main content
POST
/
v1
/
ucp
/
checkouts
/
{id}
/
complete
Complete a checkout
curl --request POST \
  --url https://api.getsly.ai/v1/v1/ucp/checkouts/{id}/complete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payment_method_id": "<string>",
  "from_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "idempotency_key": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "created",
    "items": [
      {
        "sku": "<string>",
        "quantity": 123,
        "unit_price": "<string>",
        "currency": "<string>",
        "description": "<string>"
      }
    ],
    "total": "<string>",
    "currency": "<string>",
    "style": "modal",
    "expires_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "session_url": "<string>",
    "success_url": "<string>",
    "cancel_url": "<string>",
    "metadata": {}
  },
  "transfer_id": "<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_).

Path Parameters

id
string
required

Body

application/json
payment_method_id
string
from_wallet_id
string<uuid>
idempotency_key
string

Response

Paid

data
object
required
transfer_id
string
required