CartirraAPI
Get API keys

Resources

Changelog

Changes to the Cartirra API and these docs. Within v1, changes are additive only.

2026-10-31: cart editing controls and delivery pins

What the shopper can change in the cart (Quickstart)

  • New line field locked: the shopper can't change the line's quantity or remove it. Payment links and cart reminders keep it.
  • New checkout setting options.edit_quantities (on by default; Checkout → Checkout options → Edit cart): off, shoppers can't change the cart at all.
  • Stricter: a new session or payment link with a line whose item costs ₦0 (unit price plus modifiers) is refused with validation_failed on lines[i].unit_price. Give free items with a promotion or a loyalty reward. Sessions and payment links made before this still open.

Delivery fees from the map pin

  • The shopper's pin can move at most 1.5 km from the address they typed. When a pin is more than 2 km from it, the delivery fee and range are checked at both places and the higher fee applies, so a misplaced pin can't lower the fee or reach past your delivery range.

2026-10-31: loyalty tiers and membership

Tiers and membership (Pro)

  • Members move up a tier as soon as their spend over the last 12 months (after refunds) reaches it, and down 30 days after it falls below. A tier can multiply the points each order earns.
  • Membership is free: automatic on a customer's first order, or opt-in from the checkout's confirmation or the Cartirra app (only members earn then), with an optional welcome reward.
  • Webhook loyalty.tier_changed: a member moved up or down, with the customer, both tiers and their 12-month spend.

2026-10-31: loyalty rewards

Rewards customers spend points on (Growth and above, points programmes)

  • Customers choose one reward at checkout: money off, a percentage off, a free item (by its SKU in the cart), free delivery, a gift card, store credit or something you give yourself. Its points are spent when the order is placed and come back if it's cancelled.
  • Orders show it as a price line of kind reward; price.applied.deductions names the reward_id.
  • Webhook loyalty.reward_redeemed: a reward was used on a paid order, with the order and the customer. Gift cards and store credit are issued for you; a custom reward is yours to give with the order.

2026-10-31: ad tracking

Checkout steps for your ads (every plan). Guide

  • cartirra.js fires your page's Meta, Google and TikTok pixels, and pushes to dataLayer, at each checkout step: begin_checkout, add_shipping_info, add_payment_info and purchase. A new onEvent option hands the same steps to your own code.
  • Cartirra Redirect fires the pixels you connect under Checkout → Ad tracking.
  • Server events: paid orders go to Meta's Conversions API, GA4's Measurement Protocol and TikTok's Events API. Email and phone are sent hashed only. Each purchase is counted once with the browser's.
  • POST /v1/checkout-sessions takes an optional attribution: click IDs, UTM tags, ad cookies, IP and user agent.

2026-10-27: warranties

Warranties (Growth and above). Guide

  • A checkout line can carry a warranty: months or days, terms, covered_by (merchant or manufacturer) and the manufacturer as provider. When the order is paid, the shopper gets the warranty in their Cartirra account, starting that day. Without the plan feature, a session or payment link with one is refused with feature_not_available.
  • POST /v1/orders/{id}/warranties adds one to a paid order afterwards (for one of its lines, or an item by name); GET /v1/warranties lists them by state (active, ending_soon, expired, voided), order, customer, store or a search; PATCH /v1/warranties/{id} corrects the serial number, dates or terms; POST /v1/warranties/{id}/void voids one.
  • Shoppers are reminded 30 and 7 days before a warranty ends.
  • Webhooks: warranty.created, warranty.updated and warranty.voided. New permissions warranties:read and warranties:write.

2026-10-27: problems shoppers report

Problem reports (from the Cartirra app)

  • Shoppers can report a problem with a paid order: what went wrong (missing or wrong item, damage, quality, lateness, not received, overcharged), in their words, and what they'd like. You decide.
  • GET /v1/order-issues lists them (filter by status, order_id or store_id); PATCH /v1/order-issues/{id} moves one to in_review, then resolved or rejected with a resolution_note the shopper sees. Rejecting needs a note.
  • Refund through the order as usual: a refund made while a report is open shows on it as refund_id.
  • Webhooks: order.issue_reported and order.issue_updated. New permissions order_issues:read and order_issues:write (Operations and Customer support have both; so do secret keys).

2026-10-26: Cartirra on your page

  • Branded checkout button: data-cartirra-style="branded" on a checkout button, or data-cartirra-button when your page opens the checkout itself, shows "Checkout with Cartirra" (or "Pay with" / "Buy with") with the Cartirra mark, before the checkout opens. Dark or light, normal or full width. See Show Cartirra on your page.
  • "Secured by Cartirra" badge under your own button: <div data-cartirra-badge></div>.
  • Cartirra.button(element, options) and Cartirra.badge(element, options) for pages that render with JavaScript.
  • With test keys, the checkout shows a Test mode · No real money moves strip at the top.

2026-10-26: snake_case everywhere (before launch)

One breaking change, made before anyone integrates: the API now uses snake_case on the wire, like the rest of these docs. From now on, v1 changes are additive only.

  • Every request and response field, and every query and path parameter, is snake_case: client_secret, unit_price, success_url, payment_status, next_cursor. camelCase fields are refused with validation_failed, naming the snake_case field to use.
  • Error codes are lower snake_case (bill_not_open), and the error body has request_id. Field names in details.fields[].field are snake_case too.
  • Webhook payloads (data.object) and the events API are snake_case. So are the live-update socket messages (public_key, client_secret, table_token, bill_id).
  • Your metadata comes back exactly as you sent it. Keys Cartirra adds to it are snake_case: payment_link, recovered_from.
  • The checkout script's JavaScript options keep their camelCase names (publicKey, clientSecret, onSuccess).

2026-10-26: pay at table

Tables and bills (the Pay at table add-on: ₦10,000 per store a month, on Starter, Growth and Pro; included on Enterprise)

  • PUT /v1/stores/{store_id}/pay-at-table turns it on or off at a store; GET /v1/pay-at-table/stores lists them.
  • POST /v1/bills takes the bill's items (name, quantity, unit price, note) or just its items_total; guests see the items, and paying the whole bill gives an itemised receipt. bill.* webhooks carry items and items_total.
  • POST /v1/stores/{store_id}/tables and the other table endpoints: your tables, each with a QR link to print.
  • POST /v1/bills opens a bill for a table with the items total; Cartirra adds your service charges and VAT. Guests pay it from the table, all at once or split.
  • The board, payment lookup, outside payments, close, void, the refund queue and the day's reconciliation. See Pay at table.

Webhooks

  • bill.opened, bill.updated, bill.payment_received, bill.closed and bill.voided.

Orders

  • Orders have a kind (order, or bill_share for a payment toward a bill) and a bill_id. GET /v1/orders lists only orders, and order.* and payment.* webhooks are never sent for bill shares.

Payment links

  • New /v1/payment-links endpoints: create a link for a cart (title, lines, optional success_url, store, max_uses and expires_at), then list, retrieve, rename, turn it off or change its limit. Each link has a url to share; shoppers who open it pay through Cartirra Redirect, with no code on your side.
  • uses counts paid orders. A link that's off, expired or used up tells the shopper so. The sessions it opens carry metadata.payment_link.

Pay on delivery

  • POST /v1/orders/{id}/pay-on-delivery/collected and …/not-paid record what happened at hand-over. Collected marks the order paid and sends the receipt (the card-rate platform fee applies). Not paid cancels the order.
  • Orders and payments can show payment_method: "pay_on_delivery". These orders are processing from the start, with payment_status: "pending" until collected.

Checkout

  • A minimum order (business-wide, or per delivery zone) refuses payment below it with minimum_order_not_met.
  • Shoppers get a public tracking page for each order, linked from the confirmation screen and the emails.
  • Pro: one reminder email for a checkout the shopper stopped, with a link back to their cart. The sessions it opens carry metadata.recovered_from.
  • Pay for me: shoppers can ask someone else to pay, by a link they share (and that's emailed to the payer). The order waits up to 24 hours with payment_method: "pay_for_me" and payment_status: "pending", then shows the method the payer used (bank_transfer or card) once paid, or is cancelled if nobody pays. Turn it off with payment_methods.pay_for_me in checkout settings.

Additive only: existing integrations keep working.

2026-10-25: line modifiers

Checkout sessions

  • Each line in POST /v1/checkout-sessions takes optional modifiers: { name, quantity, price, group, sku }. An item costs unit_price plus each modifier's price × quantity; the line, that times its quantity. See Items with modifiers.
  • Sessions and orders return each line's modifiers (an empty list for plain items).
  • The cart check request carries each line's modifiers with an index, and its answer can reprice one or mark it unavailable. The session's changes gain modifier_price and modifier_removed, with the modifier's name in modifier.

Additive only: lines without modifiers work as before.

2026-10-24: customer webhooks

Webhooks

  • customer.created: a shopper agreed to share their details with you, or a guest placed their first order. It's sent before any order.
  • customer.updated: a shopper's shared name, email or phone changed.
  • customer.consent_revoked: a shopper stopped sharing their details. Their email and phone are removed from the customer; delete any copies you keep.

Each carries the customer as data.object. Additive only: existing integrations keep working.

Fixes

  • POST /v1/gift-cards documented its recipient with the wrong fields (type, phone, gift_message). It is { name, email }, as the API has always accepted, in a schema of its own (GiftCardRecipientDto).

2026-10-24: v1.0.0

The first published version of the Cartirra API contract.

Contract

  • The OpenAPI 3.1 document is published at https://api.cartirra.com/v1/openapi.json and in these docs. It's the source of truth for every endpoint, schema, error and webhook payload.
  • Every endpoint documents its success schema, the standard error responses and the permission it needs (x-permissions).
  • Webhook payloads are described in the document's webhooks section.

Keys

  • Rotation overlap: when you regenerate keys, the old pair can keep working for up to 72 hours, so you can deploy the new key without downtime.
  • Last used: Developers → API keys shows when each key last authenticated a request.

Reliability

  • Rate limits are counted per API key (600 requests per minute by default) rather than per IP address.
  • POST /v1/checkout-sessions, POST /v1/promotions and POST /v1/gift-cards accept an Idempotency-Key, so retries can't create duplicates.

Fixes

  • Secret keys can now update a delivery address (PUT /v1/orders/{id}/delivery-address) and manage gift cards. Before, these routes always answered 403.
  • Optional request fields that accept null (for example a line's sku, or a promotion's starts_at) are now typed correctly in the contract.