Create a checkout

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

AGENTS.md
POST/api/v1/checkouts/

Also available as POST /api/platform/checkouts/ with a dashboard JWT. Create checkouts from your server with a secret key.

Body parameters

FieldRequiredNotes
app_idoptionalInferred from an app-scoped key; a mismatch returns 403
product_id / package_idone ofPackage id is preferred for catalog plans; the product must belong to the app
amount_etbif dynamicOmit for fixed products
customer_refrecommendedYour stable user/order id
customer_email / customer_namenoShown on the pay page
expires_in_hoursno1–720; default from app settings
success_url / cancel_urlnoOverride app defaults
metadatanoOpaque JSON

Example

cURL
curl -X POST https://api.payproof.et/api/v1/checkouts/ \
  -H "Authorization: Bearer sk_live_..." \
  -H "Idempotency-Key: order_1001" \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": 6,
    "customer_ref": "order_1001",
    "success_url": "https://shop.example/thanks"
  }'

Response highlights

  • checkout.public_id — e.g. cs_…
  • checkout.reference_code — customer must include it in the transfer remark
  • payment_accounts[] — bank accounts to display
  • pay_url — hosted pay path on the API host