Create a checkout

Start a payment session with reference code and hosted pay URL.

AGENTS.md
POST/api/v1/checkouts/

Also available as POST /api/platform/checkouts/ with a dashboard JWT.

Body parameters

FieldRequiredNotes
app_idyesTarget app
product_idyesMust belong to the app
amount_etbif dynamicOmit for fixed products
customer_refnoYour user/order id
customer_email / customer_namenoShown on pay page
idempotency_keynoRejects duplicate creates
expires_in_hoursno1–720; default from app settings
success_url / cancel_urlnoOverride app defaults
metadatanoOpaque JSON

Example

cURL
curl -X POST https://verifyitet.duckdns.org/api/v1/checkouts/ \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "app_id": 1,
    "product_id": 6,
    "customer_ref": "order_1001",
    "idempotency_key": "order_1001",
    "success_url": "https://shop.example/thanks"
  }'

Response highlights

  • checkout.public_id — e.g. cs_…
  • checkout.reference_code — customer must include in transfer remark
  • payment_accounts[] — banks to display
  • pay_url — path on your PayProof website host