Cartirra API · v1
Build checkout, orders and payouts into your stack
One REST API for the commerce your store runs on: create checkout sessions, follow orders from payment to delivery, refund, and move money to your bank. Test everything with test keys before going live.
Create a checkout session
curl -X POST https://api.cartirra.com/v1/checkout-sessions \
-H "Authorization: Bearer $CARTIRRA_SECRET_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"lines": [
{ "name": "Ankara tote", "quantity": 1, "unit_price": { "amount": "12500.00", "currency": "NGN" } }
]
}'Quickstart
Create a checkout session from your server and read back the paid order.
Authentication
Test and live secret keys, rotation without downtime, and last-used times.
Webhooks
Get told when orders are paid, refunds settle or payouts land. Verify every signature.
Errors
One error shape everywhere, a stable code for every failure, and what to do next.
Reference
Every endpoint, generated from the OpenAPI 3.1 document, with code in cURL, Node.js, PHP and Python and a test-mode explorer.