API reference · 1.0.0
Cartirra API
The Cartirra API lets your server open checkouts, follow orders and payments, refund, and read your balance.
- Authentication:
Authorization: Bearer sk_test_…orsk_live_…. Test and live data never mix; the key decides. - snake_case: every field, query parameter and value is snake_case, and error codes are lower snake_case (
bill_not_open). Yourmetadatacomes back exactly as you sent it. - Errors: always
{ "error": { "code", "message", "details?", "request_id" } }. - Money: decimal strings,
{ "amount": "10500.00", "currency": "NGN" }. - Lists: newest first,
limit(1–100) andcursor(the previous page'snext_cursor). - Retries: send an
Idempotency-Keyon creates; replays return the first response.
https://api.cartirra.comAuthorization: Bearer sk_test_… Requests are JSON over HTTPS. Your key decides the mode: sk_test_ keys see test data only, sk_live_ keys see live data. Start with the quickstart, or read about errors and pagination.
Resources
Checkout sessions
Open a checkout for a cart; the shopper pays in Cartirra Popup on your page or through Cartirra Redirect.
Payment links
Carts you share as a link (WhatsApp, Instagram, SMS): no code needed.
Tables
Pay at table: your tables and the QR code printed on each.
Bills
Pay at table: bills guests pay from the table QR (all at once or split), the live board, refunds and the day’s reconciliation.
Orders
Orders placed through checkout: read them and move them through fulfilment, and answer problems shoppers report.
- getRetrieve order extras
- getList orders
- getRetrieve an order
- getList order activity
- postUpdate order status
- postAccept an order
- putUpdate delivery address
- postCancel an order
- getList problem reports
- getRetrieve a problem report
- patchUpdate a problem report
- postMark pay on delivery collected
- postMark pay on delivery not paid
- postReject an order
Warranties
Warranties on what you sold: sent on checkout lines or added afterwards. Shoppers keep them in their Cartirra account.
Payments
The payment behind an order (bank transfer or card).
Refunds
Return money to the shopper, in full or in part.
Receipts
Receipts and credit notes issued for orders.
Customers
Shoppers who shared their details with your business.
Promotions
Discount codes and automatic promotions.
Gift cards
Issue and list gift cards.
Reviews
Ratings shoppers left on completed orders.
Balance
Your Cartirra balance and its movements.
Payouts
Money sent from your balance to your bank account.
Stores
Your business's stores.
Events
Everything Cartirra sent (or would send) to your webhook endpoint.
Account
The business and mode your key belongs to.
Webhooks
Cartirra sends these events to your webhook endpoint, signed with Cartirra-Signature. Receiving webhooks
order.createdorder.createdorder.updatedorder.updatedpayment.succeededpayment.succeededpayment.failedpayment.failedpayment.expiredpayment.expiredrefund.succeededrefund.succeededrefund.failedrefund.failedpayout.paidpayout.paidpayout.failedpayout.failedwebhook.testwebhook.testcustomer.createdcustomer.createdcustomer.updatedcustomer.updatedbill.openedbill.openedbill.updatedbill.updatedbill.payment_receivedbill.payment_receivedbill.closedbill.closedbill.voidedbill.voidedcustomer.consent_revokedcustomer.consent_revokedorder.issue_reportedorder.issue_reportedorder.issue_updatedorder.issue_updatedwarranty.createdwarranty.createdwarranty.updatedwarranty.updatedwarranty.voidedwarranty.voidedorder.acceptedorder.acceptedorder.rejectedorder.rejectedloyalty.tier_changedloyalty.tier_changedloyalty.reward_redeemedloyalty.reward_redeemed