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_failedonlines[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.deductionsnames thereward_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.jsfires your page's Meta, Google and TikTok pixels, and pushes todataLayer, at each checkout step:begin_checkout,add_shipping_info,add_payment_infoandpurchase. A newonEventoption 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-sessionstakes an optionalattribution: 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:monthsordays,terms,covered_by(merchantormanufacturer) and the manufacturer asprovider. 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 withfeature_not_available. POST /v1/orders/{id}/warrantiesadds one to a paid order afterwards (for one of its lines, or an item by name);GET /v1/warrantieslists them bystate(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}/voidvoids one.- Shoppers are reminded 30 and 7 days before a warranty ends.
- Webhooks:
warranty.created,warranty.updatedandwarranty.voided. New permissionswarranties:readandwarranties: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-issueslists them (filter bystatus,order_idorstore_id);PATCH /v1/order-issues/{id}moves one toin_review, thenresolvedorrejectedwith aresolution_notethe 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_reportedandorder.issue_updated. New permissionsorder_issues:readandorder_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, ordata-cartirra-buttonwhen 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)andCartirra.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 withvalidation_failed, naming the snake_case field to use. - Error codes are lower snake_case (
bill_not_open), and the error body hasrequest_id. Field names indetails.fields[].fieldare 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
metadatacomes 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-tableturns it on or off at a store;GET /v1/pay-at-table/storeslists them.POST /v1/billstakes the bill'sitems(name, quantity, unit price, note) or just itsitems_total; guests see the items, and paying the whole bill gives an itemised receipt.bill.*webhooks carryitemsanditems_total.POST /v1/stores/{store_id}/tablesand the other table endpoints: your tables, each with a QR link to print.POST /v1/billsopens 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.closedandbill.voided.
Orders
- Orders have a
kind(order, orbill_sharefor a payment toward a bill) and abill_id.GET /v1/orderslists onlyorders, andorder.*andpayment.*webhooks are never sent for bill shares.
2026-10-25: payment links, pay on delivery, pay for me, minimum order and order tracking
Payment links
- New
/v1/payment-linksendpoints: create a link for a cart (title, lines, optionalsuccess_url, store,max_usesandexpires_at), then list, retrieve, rename, turn it off or change its limit. Each link has aurlto share; shoppers who open it pay through Cartirra Redirect, with no code on your side. usescounts paid orders. A link that's off, expired or used up tells the shopper so. The sessions it opens carrymetadata.payment_link.
Pay on delivery
POST /v1/orders/{id}/pay-on-delivery/collectedand…/not-paidrecord 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 areprocessingfrom the start, withpayment_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"andpayment_status: "pending", then shows the method the payer used (bank_transferorcard) once paid, or is cancelled if nobody pays. Turn it off withpayment_methods.pay_for_mein checkout settings.
Additive only: existing integrations keep working.
2026-10-25: line modifiers
Checkout sessions
- Each line in
POST /v1/checkout-sessionstakes optionalmodifiers:{ name, quantity, price, group, sku }. An item costsunit_priceplus each modifier'sprice × quantity; the line, that times itsquantity. 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'schangesgainmodifier_priceandmodifier_removed, with the modifier's name inmodifier.
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-cardsdocumented itsrecipientwith 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.jsonand 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
webhookssection.
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/promotionsandPOST /v1/gift-cardsaccept anIdempotency-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 answered403. - Optional request fields that accept
null(for example a line'ssku, or a promotion'sstarts_at) are now typed correctly in the contract.