CartirraAPI
Get API keys

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/json with a body.
  • Authentication: Authorization: Bearer sk_test_… (or sk_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_… and evt_…. 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

  1. 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.
  2. Add a webhook endpoint under Developers → Webhooks, so Cartirra can tell your server when orders are paid. See Webhooks.
  3. 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 paymentQuickstart
Keep keys safe and rotate themAuthentication
Try things without moving moneyTest mode
Handle failures wellErrors, Idempotency, Rate limits
See every endpointAPI 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.