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
| Field | Required | Notes |
|---|---|---|
| app_id | optional | Inferred from an app-scoped key; a mismatch returns 403 |
| product_id / package_id | one of | Package id is preferred for catalog plans; the product must belong to the app |
| amount_etb | if dynamic | Omit for fixed products |
| customer_ref | recommended | Your stable user/order id |
| customer_email / customer_name | no | Shown on the pay page |
| expires_in_hours | no | 1–720; default from app settings |
| success_url / cancel_url | no | Override app defaults |
| metadata | no | Opaque 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 remarkpayment_accounts[]— bank accounts to displaypay_url— hosted pay path on the API host