Getting started
Getting started
What the Cartirra API does, how requests look, and the three things to set up first.
The Cartirra API is the server-side half of a Cartirra integration. Your backend uses it to open checkouts, follow orders from payment to delivery, refund, and read your balance and payouts. Shoppers pay in the Cartirra checkout widget; your server never handles card details.
How requests look
- Base URL:
https://api.cartirra.com. Every path starts with/v1. - Format: JSON in and out, over HTTPS only. Send
Content-Type: application/jsonwith a body. - Authentication:
Authorization: Bearer sk_test_…(orsk_live_…). See Authentication. - Money: always an object with a decimal string, never a float:
{ "amount": "12500.00", "currency": "NGN" }. - Ids: prefixed public ids such as
ord_…,pay_…,cs_…,po_…andevt_…. Treat them as opaque strings. - Timestamps: ISO 8601 in UTC, for example
2026-10-24T09:30:00.000Z.
curl https://api.cartirra.com/v1/orders?limit=5 \
-H "Authorization: Bearer $CARTIRRA_SECRET_KEY"
Set up
- Get your keys. In the Cartirra dashboard, open Developers → API keys. You get a test pair straight away; live keys appear once your business is approved to go live.
- Add a webhook endpoint under Developers → Webhooks, so Cartirra can tell your server when orders are paid. See Webhooks.
- Follow the quickstart to create a checkout session and read back the paid order, all in test mode.
Where to next
| If you want to… | Read |
|---|---|
| Take your first payment | Quickstart |
| Keep keys safe and rotate them | Authentication |
| Try things without moving money | Test mode |
| Handle failures well | Errors, Idempotency, Rate limits |
| See every endpoint | API reference |
The machine-readable contract is the OpenAPI 3.1 document at
https://api.cartirra.com/v1/openapi.json. Use it to generate a client or import the API into Postman or Insomnia.