[{"data":1,"prerenderedAt":1209},["ShallowReactive",2],{"versions":3,"nav-guides":8,"nav-ref-v1":86,"guide-\u002Fguides\u002Fad-tracking":618,"guide-around-\u002Fguides\u002Fad-tracking":1204},[4],{"id":5,"label":5,"file":6,"status":7},"v1","cartirra-v1.json","current",[9,14,19,24,29,34,39,44,49,55,60,65,70,75,80],{"path":10,"title":11,"group":11,"order":12,"description":13},"\u002Fguides\u002Fgetting-started","Getting started",1,"What the Cartirra API does, how requests look, and the three things to set up first.",{"path":15,"title":16,"group":11,"order":17,"description":18},"\u002Fguides\u002Fquickstart","Quickstart",2,"Create a checkout session from your server, let the shopper pay, and read the order. About ten minutes, all in test mode.",{"path":20,"title":21,"group":11,"order":22,"description":23},"\u002Fguides\u002Fembed-checkout","Cartirra Popup and Redirect",2.5,"Open the checkout over your own page with one script tag (Cartirra Popup), or send shoppers to Cartirra's checkout page (Cartirra Redirect). Then confirm the order on your server.",{"path":25,"title":26,"group":11,"order":27,"description":28},"\u002Fguides\u002Fad-tracking","Track checkouts in your ads",2.6,"Your Meta, Google and TikTok pixels see every checkout step and purchase, in the browser and from Cartirra's server, counted once.",{"path":30,"title":31,"group":11,"order":32,"description":33},"\u002Fguides\u002Fpay-at-table","Pay at table",2.7,"Tables with QR codes, bills guests pay from their phone (all at once or split), the live board, refunds and the day's reconciliation. An add-on, per store.",{"path":35,"title":36,"group":11,"order":37,"description":38},"\u002Fguides\u002Fwarranties","Warranties",2.8,"Give a warranty with an item at checkout, or add one after the sale. The shopper keeps it in their Cartirra account and is reminded before it ends. Growth and above.",{"path":40,"title":41,"group":11,"order":42,"description":43},"\u002Fguides\u002Fauthentication","Authentication",3,"Secret and public keys, test and live mode, rotating keys without downtime, and keeping them safe.",{"path":45,"title":46,"group":11,"order":47,"description":48},"\u002Fguides\u002Ftest-mode","Test mode",4,"Build and test your integration with test keys. Payments, refunds and payouts are simulated; no real money moves.",{"path":50,"title":51,"group":52,"order":53,"description":54},"\u002Fguides\u002Fpagination","Pagination and filtering","Core concepts",10,"Lists are newest first and use cursors. Ask for up to 100 items a page and follow next_cursor.",{"path":56,"title":57,"group":52,"order":58,"description":59},"\u002Fguides\u002Fidempotency","Idempotency",11,"Retry creates and refunds safely. The same Idempotency-Key always gets the same response, and the action happens once.",{"path":61,"title":62,"group":52,"order":63,"description":64},"\u002Fguides\u002Ferrors","Errors and troubleshooting",12,"One error shape everywhere. Branch on code, show message, and quote request_id when you contact support.",{"path":66,"title":67,"group":52,"order":68,"description":69},"\u002Fguides\u002Frate-limits","Rate limits",13,"Each secret key gets its own request budget. Back off on 429 using Retry-After.",{"path":71,"title":72,"group":52,"order":73,"description":74},"\u002Fguides\u002Fversioning","Versioning",14,"The version is in the path. Within v1 we only add things, and anything removed is announced with Deprecation and Sunset headers first.",{"path":76,"title":77,"group":77,"order":78,"description":79},"\u002Fguides\u002Fwebhooks","Webhooks",20,"Cartirra posts signed events to your endpoint when orders, payments, refunds, payouts and customers change. Verify, deduplicate, answer fast.",{"path":81,"title":82,"group":83,"order":84,"description":85},"\u002Fguides\u002Fchangelog","Changelog","Resources",30,"Changes to the Cartirra API and these docs. Within v1, changes are additive only.",{"title":87,"version":88,"tags":89,"webhooks":536},"Cartirra API","1.0.0",[90,112,136,171,239,313,345,355,369,384,409,432,446,456,481,496,511,526],{"name":91,"slug":92,"description":93,"operations":94},"Checkout sessions","checkout-sessions","Open a checkout for a cart; the shopper pays in Cartirra Popup on your page or through Cartirra Redirect.",[95,101,107],{"operationId":96,"slug":97,"method":98,"path":99,"summary":100,"tag":91},"createCheckoutSession","create-checkout-session","post","\u002Fv1\u002Fcheckout-sessions","Create a checkout session",{"operationId":102,"slug":103,"method":104,"path":105,"summary":106,"tag":91},"getCheckoutSession","get-checkout-session","get","\u002Fv1\u002Fcheckout-sessions\u002F{id}","Retrieve a checkout session",{"operationId":108,"slug":109,"method":98,"path":110,"summary":111,"tag":91},"expireCheckoutSession","expire-checkout-session","\u002Fv1\u002Fcheckout-sessions\u002F{id}\u002Fexpire","Expire a checkout session",{"name":113,"slug":114,"description":115,"operations":116},"Payment links","payment-links","Carts you share as a link (WhatsApp, Instagram, SMS): no code needed.",[117,122,126,131],{"operationId":118,"slug":119,"method":104,"path":120,"summary":121,"tag":113},"listPaymentLinks","list-payment-links","\u002Fv1\u002Fpayment-links","List payment links",{"operationId":123,"slug":124,"method":98,"path":120,"summary":125,"tag":113},"createPaymentLink","create-payment-link","Create a payment link",{"operationId":127,"slug":128,"method":104,"path":129,"summary":130,"tag":113},"getPaymentLink","get-payment-link","\u002Fv1\u002Fpayment-links\u002F{id}","Retrieve a payment link",{"operationId":132,"slug":133,"method":134,"path":129,"summary":135,"tag":113},"updatePaymentLink","update-payment-link","patch","Update a payment link",{"name":137,"slug":138,"description":139,"operations":140},"Tables","tables","Pay at table: your tables and the QR code printed on each.",[141,146,152,157,161,166],{"operationId":142,"slug":143,"method":104,"path":144,"summary":145,"tag":137},"listPayAtTableStores","list-pay-at-table-stores","\u002Fv1\u002Fpay-at-table\u002Fstores","List Pay at table stores",{"operationId":147,"slug":148,"method":149,"path":150,"summary":151,"tag":137},"setStorePayAtTable","set-store-pay-at-table","put","\u002Fv1\u002Fstores\u002F{store_id}\u002Fpay-at-table","Turn Pay at table on or off at a store",{"operationId":153,"slug":154,"method":104,"path":155,"summary":156,"tag":137},"listTables","list-tables","\u002Fv1\u002Fstores\u002F{store_id}\u002Ftables","List tables",{"operationId":158,"slug":159,"method":98,"path":155,"summary":160,"tag":137},"createTables","create-tables","Add tables",{"operationId":162,"slug":163,"method":134,"path":164,"summary":165,"tag":137},"updateTable","update-table","\u002Fv1\u002Ftables\u002F{id}","Update a table",{"operationId":167,"slug":168,"method":98,"path":169,"summary":170,"tag":137},"rotateTableQr","rotate-table-qr","\u002Fv1\u002Ftables\u002F{id}\u002Frotate-qr","Replace a table’s QR link",{"name":172,"slug":173,"description":174,"operations":175},"Bills","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.",[176,181,185,190,195,200,205,210,215,220,224,229,234],{"operationId":177,"slug":178,"method":104,"path":179,"summary":180,"tag":172},"listBills","list-bills","\u002Fv1\u002Fbills","List bills",{"operationId":182,"slug":183,"method":98,"path":179,"summary":184,"tag":172},"openBill","open-bill","Open a bill",{"operationId":186,"slug":187,"method":104,"path":188,"summary":189,"tag":172},"getBillBoard","get-bill-board","\u002Fv1\u002Fbills\u002Fboard","Retrieve the table board",{"operationId":191,"slug":192,"method":104,"path":193,"summary":194,"tag":172},"lookupBillPayments","lookup-bill-payments","\u002Fv1\u002Fbills\u002Fpayments","Find a table payment",{"operationId":196,"slug":197,"method":104,"path":198,"summary":199,"tag":172},"getBillReconciliation","get-bill-reconciliation","\u002Fv1\u002Fbills\u002Freconciliation","Retrieve the day’s reconciliation",{"operationId":201,"slug":202,"method":104,"path":203,"summary":204,"tag":172},"listBillRefunds","list-bill-refunds","\u002Fv1\u002Fbills\u002Frefunds","List the refund queue",{"operationId":206,"slug":207,"method":98,"path":208,"summary":209,"tag":172},"refundBillRefund","refund-bill-refund","\u002Fv1\u002Fbills\u002Frefunds\u002F{id}\u002Frefund","Send a queued refund",{"operationId":211,"slug":212,"method":98,"path":213,"summary":214,"tag":172},"dismissBillRefund","dismiss-bill-refund","\u002Fv1\u002Fbills\u002Frefunds\u002F{id}\u002Fdismiss","Dismiss a queued refund",{"operationId":216,"slug":217,"method":104,"path":218,"summary":219,"tag":172},"getBill","get-bill","\u002Fv1\u002Fbills\u002F{id}","Retrieve a bill",{"operationId":221,"slug":222,"method":134,"path":218,"summary":223,"tag":172},"updateBill","update-bill","Update a bill",{"operationId":225,"slug":226,"method":98,"path":227,"summary":228,"tag":172},"recordBillOutsidePayment","record-bill-outside-payment","\u002Fv1\u002Fbills\u002F{id}\u002Foutside","Record a payment outside Cartirra",{"operationId":230,"slug":231,"method":98,"path":232,"summary":233,"tag":172},"closeBill","close-bill","\u002Fv1\u002Fbills\u002F{id}\u002Fclose","Close a bill",{"operationId":235,"slug":236,"method":98,"path":237,"summary":238,"tag":172},"voidBill","void-bill","\u002Fv1\u002Fbills\u002F{id}\u002Fvoid","Void a bill",{"name":240,"slug":241,"description":242,"operations":243},"Orders","orders","Orders placed through checkout: read them and move them through fulfilment, and answer problems shoppers report.",[244,249,254,259,264,269,274,279,284,289,294,298,303,308],{"operationId":245,"slug":246,"method":104,"path":247,"summary":248,"tag":240},"getOrderRelated","get-order-related","\u002Fv1\u002Forders\u002F{id}\u002Frelated","Retrieve order extras",{"operationId":250,"slug":251,"method":104,"path":252,"summary":253,"tag":240},"listOrders","list-orders","\u002Fv1\u002Forders","List orders",{"operationId":255,"slug":256,"method":104,"path":257,"summary":258,"tag":240},"getOrder","get-order","\u002Fv1\u002Forders\u002F{id}","Retrieve an order",{"operationId":260,"slug":261,"method":104,"path":262,"summary":263,"tag":240},"listOrderActivity","list-order-activity","\u002Fv1\u002Forders\u002F{id}\u002Factivity","List order activity",{"operationId":265,"slug":266,"method":98,"path":267,"summary":268,"tag":240},"updateOrderStatus","update-order-status","\u002Fv1\u002Forders\u002F{id}\u002Fstatus","Update order status",{"operationId":270,"slug":271,"method":98,"path":272,"summary":273,"tag":240},"acceptOrder","accept-order","\u002Fv1\u002Forders\u002F{id}\u002Faccept","Accept an order",{"operationId":275,"slug":276,"method":149,"path":277,"summary":278,"tag":240},"updateOrderDeliveryAddress","update-order-delivery-address","\u002Fv1\u002Forders\u002F{id}\u002Fdelivery-address","Update delivery address",{"operationId":280,"slug":281,"method":98,"path":282,"summary":283,"tag":240},"cancelOrder","cancel-order","\u002Fv1\u002Forders\u002F{id}\u002Fcancel","Cancel an order",{"operationId":285,"slug":286,"method":104,"path":287,"summary":288,"tag":240},"listOrderIssues","list-order-issues","\u002Fv1\u002Forder-issues","List problem reports",{"operationId":290,"slug":291,"method":104,"path":292,"summary":293,"tag":240},"getOrderIssue","get-order-issue","\u002Fv1\u002Forder-issues\u002F{id}","Retrieve a problem report",{"operationId":295,"slug":296,"method":134,"path":292,"summary":297,"tag":240},"updateOrderIssue","update-order-issue","Update a problem report",{"operationId":299,"slug":300,"method":98,"path":301,"summary":302,"tag":240},"markPayOnDeliveryCollected","mark-pay-on-delivery-collected","\u002Fv1\u002Forders\u002F{id}\u002Fpay-on-delivery\u002Fcollected","Mark pay on delivery collected",{"operationId":304,"slug":305,"method":98,"path":306,"summary":307,"tag":240},"markPayOnDeliveryNotPaid","mark-pay-on-delivery-not-paid","\u002Fv1\u002Forders\u002F{id}\u002Fpay-on-delivery\u002Fnot-paid","Mark pay on delivery not paid",{"operationId":309,"slug":310,"method":98,"path":311,"summary":312,"tag":240},"rejectOrder","reject-order","\u002Fv1\u002Forders\u002F{id}\u002Freject","Reject an order",{"name":36,"slug":314,"description":315,"operations":316},"warranties","Warranties on what you sold: sent on checkout lines or added afterwards. Shoppers keep them in their Cartirra account.",[317,322,327,331,336,341],{"operationId":318,"slug":319,"method":104,"path":320,"summary":321,"tag":36},"listWarranties","list-warranties","\u002Fv1\u002Fwarranties","List warranties",{"operationId":323,"slug":324,"method":104,"path":325,"summary":326,"tag":36},"getWarranty","get-warranty","\u002Fv1\u002Fwarranties\u002F{id}","Retrieve a warranty",{"operationId":328,"slug":329,"method":134,"path":325,"summary":330,"tag":36},"updateWarranty","update-warranty","Update a warranty",{"operationId":332,"slug":333,"method":98,"path":334,"summary":335,"tag":36},"voidWarranty","void-warranty","\u002Fv1\u002Fwarranties\u002F{id}\u002Fvoid","Void a warranty",{"operationId":337,"slug":338,"method":104,"path":339,"summary":340,"tag":36},"listOrderWarranties","list-order-warranties","\u002Fv1\u002Forders\u002F{id}\u002Fwarranties","List an order's warranties",{"operationId":342,"slug":343,"method":98,"path":339,"summary":344,"tag":36},"createWarranty","create-warranty","Add a warranty to an order",{"name":346,"slug":347,"description":348,"operations":349},"Payments","payments","The payment behind an order (bank transfer or card).",[350],{"operationId":351,"slug":352,"method":104,"path":353,"summary":354,"tag":346},"getPayment","get-payment","\u002Fv1\u002Fpayments\u002F{id}","Retrieve a payment",{"name":356,"slug":357,"description":358,"operations":359},"Refunds","refunds","Return money to the shopper, in full or in part.",[360,365],{"operationId":361,"slug":362,"method":104,"path":363,"summary":364,"tag":356},"listRefunds","list-refunds","\u002Fv1\u002Forders\u002F{id}\u002Frefunds","List refunds",{"operationId":366,"slug":367,"method":98,"path":363,"summary":368,"tag":356},"createRefund","create-refund","Create a refund",{"name":370,"slug":371,"description":372,"operations":373},"Receipts","receipts","Receipts and credit notes issued for orders.",[374,379],{"operationId":375,"slug":376,"method":104,"path":377,"summary":378,"tag":370},"getOrderReceipt","get-order-receipt","\u002Fv1\u002Forders\u002F{id}\u002Freceipt","Retrieve a receipt",{"operationId":380,"slug":381,"method":104,"path":382,"summary":383,"tag":370},"listOrderCreditNotes","list-order-credit-notes","\u002Fv1\u002Forders\u002F{id}\u002Fcredit-notes","List credit notes",{"name":385,"slug":386,"description":387,"operations":388},"Customers","customers","Shoppers who shared their details with your business.",[389,394,399,404],{"operationId":390,"slug":391,"method":104,"path":392,"summary":393,"tag":385},"listCustomerActivity","list-customer-activity","\u002Fv1\u002Fcustomers\u002F{id}\u002Factivity","List customer activity",{"operationId":395,"slug":396,"method":104,"path":397,"summary":398,"tag":385},"listCustomerAddresses","list-customer-addresses","\u002Fv1\u002Fcustomers\u002F{id}\u002Faddresses","List customer addresses",{"operationId":400,"slug":401,"method":104,"path":402,"summary":403,"tag":385},"listCustomers","list-customers","\u002Fv1\u002Fcustomers","List customers",{"operationId":405,"slug":406,"method":104,"path":407,"summary":408,"tag":385},"getCustomer","get-customer","\u002Fv1\u002Fcustomers\u002F{id}","Retrieve a customer",{"name":410,"slug":411,"description":412,"operations":413},"Promotions","promotions","Discount codes and automatic promotions.",[414,419,423,428],{"operationId":415,"slug":416,"method":104,"path":417,"summary":418,"tag":410},"listPromotions","list-promotions","\u002Fv1\u002Fpromotions","List promotions",{"operationId":420,"slug":421,"method":98,"path":417,"summary":422,"tag":410},"createPromotion","create-promotion","Create a promotion",{"operationId":424,"slug":425,"method":104,"path":426,"summary":427,"tag":410},"getPromotion","get-promotion","\u002Fv1\u002Fpromotions\u002F{id}","Retrieve a promotion",{"operationId":429,"slug":430,"method":134,"path":426,"summary":431,"tag":410},"updatePromotion","update-promotion","Update a promotion",{"name":433,"slug":434,"description":435,"operations":436},"Gift cards","gift-cards","Issue and list gift cards.",[437,442],{"operationId":438,"slug":439,"method":104,"path":440,"summary":441,"tag":433},"listGiftCards","list-gift-cards","\u002Fv1\u002Fgift-cards","List gift cards",{"operationId":443,"slug":444,"method":98,"path":440,"summary":445,"tag":433},"createGiftCard","create-gift-card","Issue a gift card",{"name":447,"slug":448,"description":449,"operations":450},"Reviews","reviews","Ratings shoppers left on completed orders.",[451],{"operationId":452,"slug":453,"method":104,"path":454,"summary":455,"tag":447},"listReviews","list-reviews","\u002Fv1\u002Freviews","List reviews",{"name":457,"slug":458,"description":459,"operations":460},"Balance","balance","Your Cartirra balance and its movements.",[461,466,471,476],{"operationId":462,"slug":463,"method":104,"path":464,"summary":465,"tag":457},"getBalance","get-balance","\u002Fv1\u002Fbalance","Retrieve balance",{"operationId":467,"slug":468,"method":104,"path":469,"summary":470,"tag":457},"listBalanceTransactions","list-balance-transactions","\u002Fv1\u002Fbalance\u002Ftransactions","List balance transactions",{"operationId":472,"slug":473,"method":104,"path":474,"summary":475,"tag":457},"getBalanceTransaction","get-balance-transaction","\u002Fv1\u002Fbalance\u002Ftransactions\u002F{id}","Retrieve a balance transaction",{"operationId":477,"slug":478,"method":104,"path":479,"summary":480,"tag":457},"getDeposit","get-deposit","\u002Fv1\u002Fbalance\u002Fdeposits\u002F{id}","Retrieve a deposit",{"name":482,"slug":483,"description":484,"operations":485},"Payouts","payouts","Money sent from your balance to your bank account.",[486,491],{"operationId":487,"slug":488,"method":104,"path":489,"summary":490,"tag":482},"listPayouts","list-payouts","\u002Fv1\u002Fpayouts","List payouts",{"operationId":492,"slug":493,"method":104,"path":494,"summary":495,"tag":482},"getPayout","get-payout","\u002Fv1\u002Fpayouts\u002F{id}","Retrieve a payout",{"name":497,"slug":498,"description":499,"operations":500},"Stores","stores","Your business's stores.",[501,506],{"operationId":502,"slug":503,"method":104,"path":504,"summary":505,"tag":497},"listStores","list-stores","\u002Fv1\u002Fstores","List stores",{"operationId":507,"slug":508,"method":104,"path":509,"summary":510,"tag":497},"getStore","get-store","\u002Fv1\u002Fstores\u002F{store_id}","Retrieve a store",{"name":512,"slug":513,"description":514,"operations":515},"Events","events","Everything Cartirra sent (or would send) to your webhook endpoint.",[516,521],{"operationId":517,"slug":518,"method":104,"path":519,"summary":520,"tag":512},"listEvents","list-events","\u002Fv1\u002Fevents","List events",{"operationId":522,"slug":523,"method":104,"path":524,"summary":525,"tag":512},"getEvent","get-event","\u002Fv1\u002Fevents\u002F{id}","Retrieve an event",{"name":527,"slug":528,"description":529,"operations":530},"Account","account","The business and mode your key belongs to.",[531],{"operationId":532,"slug":533,"method":104,"path":534,"summary":535,"tag":527},"getContext","get-context","\u002Fv1\u002Fme\u002Fcontext","Retrieve key context",[537,540,543,546,549,552,555,558,561,564,567,570,573,576,579,582,585,588,591,594,597,600,603,606,609,612,615],{"event":538,"slug":539,"summary":538},"order.created","order-created",{"event":541,"slug":542,"summary":541},"order.updated","order-updated",{"event":544,"slug":545,"summary":544},"payment.succeeded","payment-succeeded",{"event":547,"slug":548,"summary":547},"payment.failed","payment-failed",{"event":550,"slug":551,"summary":550},"payment.expired","payment-expired",{"event":553,"slug":554,"summary":553},"refund.succeeded","refund-succeeded",{"event":556,"slug":557,"summary":556},"refund.failed","refund-failed",{"event":559,"slug":560,"summary":559},"payout.paid","payout-paid",{"event":562,"slug":563,"summary":562},"payout.failed","payout-failed",{"event":565,"slug":566,"summary":565},"webhook.test","webhook-test",{"event":568,"slug":569,"summary":568},"customer.created","customer-created",{"event":571,"slug":572,"summary":571},"customer.updated","customer-updated",{"event":574,"slug":575,"summary":574},"bill.opened","bill-opened",{"event":577,"slug":578,"summary":577},"bill.updated","bill-updated",{"event":580,"slug":581,"summary":580},"bill.payment_received","bill-payment-received",{"event":583,"slug":584,"summary":583},"bill.closed","bill-closed",{"event":586,"slug":587,"summary":586},"bill.voided","bill-voided",{"event":589,"slug":590,"summary":589},"customer.consent_revoked","customer-consent-revoked",{"event":592,"slug":593,"summary":592},"order.issue_reported","order-issue-reported",{"event":595,"slug":596,"summary":595},"order.issue_updated","order-issue-updated",{"event":598,"slug":599,"summary":598},"warranty.created","warranty-created",{"event":601,"slug":602,"summary":601},"warranty.updated","warranty-updated",{"event":604,"slug":605,"summary":604},"warranty.voided","warranty-voided",{"event":607,"slug":608,"summary":607},"order.accepted","order-accepted",{"event":610,"slug":611,"summary":610},"order.rejected","order-rejected",{"event":613,"slug":614,"summary":613},"loyalty.tier_changed","loyalty-tier-changed",{"event":616,"slug":617,"summary":616},"loyalty.reward_redeemed","loyalty-reward-redeemed",{"id":619,"title":26,"body":620,"description":28,"extension":1198,"group":11,"meta":1199,"navigation":1200,"order":27,"path":25,"seo":1201,"stem":1202,"__hash__":1203},"guides\u002Fguides\u002Fad-tracking.md",{"type":621,"value":622,"toc":1189},"minimark",[623,627,632,732,766,770,787,819,822,829,884,888,895,929,933,940,988,994,997,1012,1015,1022,1027,1033,1096,1146,1150,1185],[624,625,626],"p",{},"If you advertise on Meta (Facebook and Instagram), Google or TikTok, your ads measure results by the purchases your pixels see. The Cartirra checkout tells them about each step, just as a checkout on your own site would.",[628,629,631],"h2",{"id":630},"what-fires-and-when","What fires, and when",[633,634,635,654],"table",{},[636,637,638],"thead",{},[639,640,641,645,648,651],"tr",{},[642,643,644],"th",{},"Step",[642,646,647],{},"GA4 \u002F Google Tag Manager",[642,649,650],{},"Meta",[642,652,653],{},"TikTok",[655,656,657,678,693,712],"tbody",{},[639,658,659,663,669,674],{},[660,661,662],"td",{},"The checkout opens with the cart",[660,664,665],{},[666,667,668],"code",{},"begin_checkout",[660,670,671],{},[666,672,673],{},"InitiateCheckout",[660,675,676],{},[666,677,673],{},[639,679,680,683,688,691],{},[660,681,682],{},"The shopper chooses delivery, pickup or dine-in",[660,684,685],{},[666,686,687],{},"add_shipping_info",[660,689,690],{},"—",[660,692,690],{},[639,694,695,698,703,708],{},[660,696,697],{},"The shopper chooses how to pay",[660,699,700],{},[666,701,702],{},"add_payment_info",[660,704,705],{},[666,706,707],{},"AddPaymentInfo",[660,709,710],{},[666,711,707],{},[639,713,714,717,722,727],{},[660,715,716],{},"The payment succeeds",[660,718,719],{},[666,720,721],{},"purchase",[660,723,724],{},[666,725,726],{},"Purchase",[660,728,729],{},[666,730,731],{},"CompletePayment",[624,733,734,735,738,739,742,743,746,747,750,751,753,754,757,758,761,762,765],{},"Each step carries the value, the currency (",[666,736,737],{},"NGN",") and the items: id (your line's ",[666,740,741],{},"sku",", or ",[666,744,745],{},"line-1",", ",[666,748,749],{},"line-2","…), name, quantity and price. ",[666,752,721],{}," also carries ",[666,755,756],{},"transaction_id",", the Cartirra order id (",[666,759,760],{},"ord_…","). Test-mode checkouts add ",[666,763,764],{},"cartirra_test: true",", so you can filter them out.",[628,767,769],{"id":768},"cartirra-popup-your-pages-pixels-fire","Cartirra Popup: your page's pixels fire",[624,771,772,773,777,778,781,782,786],{},"When you open ",[774,775,776],"a",{"href":20},"Cartirra Popup"," with ",[666,779,780],{},"cartirra.js",", the steps fire ",[783,784,785],"strong",{},"on your page",", through the pixels you already have:",[788,789,790,805],"ul",{},[791,792,793,796,797,800,801,804],"li",{},[666,794,795],{},"fbq"," (Meta Pixel), ",[666,798,799],{},"gtag"," (Google tag) and ",[666,802,803],{},"ttq"," (TikTok Pixel), each only if it's on the page;",[791,806,807,810,811,814,815,818],{},[666,808,809],{},"window.dataLayer",", for Google Tag Manager: ",[666,812,813],{},"{ event: 'purchase', ecommerce: { … } }",", after clearing the previous ",[666,816,817],{},"ecommerce",", as Google recommends.",[624,820,821],{},"Keep your pixels installed on the page that opens the checkout. Cartirra doesn't load any pixel on your page.",[624,823,824,825,828],{},"To send the steps somewhere else, use ",[666,826,827],{},"onEvent",":",[830,831,836],"pre",{"className":832,"code":833,"language":834,"meta":835,"style":835},"language-js shiki shiki-themes github-light github-dark","Cartirra.open({\n  publicKey: 'pk_live_…',\n  clientSecret,\n  onEvent(event) {\n    \u002F\u002F { name: 'purchase', eventId: 'ord_…', value: 5000, currency: 'NGN', items: [...], test: false }\n    myAnalytics.track(event.name, event)\n  },\n})\n","js","",[666,837,838,845,850,855,860,866,872,878],{"__ignoreMap":835},[839,840,842],"span",{"class":841,"line":12},"line",[839,843,844],{},"Cartirra.open({\n",[839,846,847],{"class":841,"line":17},[839,848,849],{},"  publicKey: 'pk_live_…',\n",[839,851,852],{"class":841,"line":42},[839,853,854],{},"  clientSecret,\n",[839,856,857],{"class":841,"line":47},[839,858,859],{},"  onEvent(event) {\n",[839,861,863],{"class":841,"line":862},5,[839,864,865],{},"    \u002F\u002F { name: 'purchase', eventId: 'ord_…', value: 5000, currency: 'NGN', items: [...], test: false }\n",[839,867,869],{"class":841,"line":868},6,[839,870,871],{},"    myAnalytics.track(event.name, event)\n",[839,873,875],{"class":841,"line":874},7,[839,876,877],{},"  },\n",[839,879,881],{"class":841,"line":880},8,[839,882,883],{},"})\n",[628,885,887],{"id":886},"cartirra-redirect-connect-your-pixels-in-the-dashboard","Cartirra Redirect: connect your pixels in the dashboard",[624,889,890,891,894],{},"Cartirra Redirect's checkout page isn't on your site, so it can't use your page's pixels. Connect them in ",[783,892,893],{},"Checkout → Ad tracking",": your Meta pixel ID, your GA4 measurement ID (with an optional Google Ads conversion ID and label) and your TikTok pixel code. The checkout page loads those pixels and fires the same steps.",[624,896,897,898,901,902,905,906,746,909,746,912,915,916,746,919,746,922,746,925,928],{},"When ",[666,899,900],{},"Cartirra.open"," falls back to Cartirra Redirect, or you call ",[666,903,904],{},"Cartirra.redirect",", the shopper's click IDs (",[666,907,908],{},"fbclid",[666,910,911],{},"gclid",[666,913,914],{},"ttclid","), UTM tags and ad cookies (",[666,917,918],{},"_fbp",[666,920,921],{},"_fbc",[666,923,924],{},"_ga",[666,926,927],{},"_ttp",") go with them. That way purchases still match the ad they clicked.",[628,930,932],{"id":931},"server-events-purchases-ad-blockers-cant-stop","Server events: purchases ad blockers can't stop",[624,934,935,936,939],{},"Ad blockers and privacy settings stop many browser pixels. Turn on ",[783,937,938],{},"Send purchases from our server too"," for a platform, and Cartirra sends each paid order to that platform's server-side API:",[633,941,942,955],{},[636,943,944],{},[639,945,946,949,952],{},[642,947,948],{},"Platform",[642,950,951],{},"API",[642,953,954],{},"What you need",[655,956,957,967,978],{},[639,958,959,961,964],{},[660,960,650],{},[660,962,963],{},"Conversions API",[660,965,966],{},"A Conversions API access token (Events Manager → your pixel → Settings)",[639,968,969,972,975],{},[660,970,971],{},"Google",[660,973,974],{},"GA4 Measurement Protocol",[660,976,977],{},"A Measurement Protocol API secret (Admin → Data streams → your stream)",[639,979,980,982,985],{},[660,981,653],{},[660,983,984],{},"Events API",[660,986,987],{},"An Events API access token (Events Manager → your pixel → Settings)",[624,989,990,991,993],{},"The server event uses the order id as its event ID, the same ID as the browser's ",[666,992,721],{},", so each platform counts the purchase once.",[624,995,996],{},"To match a purchase to an ad, Cartirra sends:",[788,998,999,1006,1009],{},[791,1000,1001,1002,1005],{},"the shopper's email and phone, ",[783,1003,1004],{},"SHA-256 hashed"," after normalising, never in plain text;",[791,1007,1008],{},"the ad cookies and click IDs the checkout found on your page;",[791,1010,1011],{},"the shopper's IP address and browser.",[624,1013,1014],{},"Before server events turn on, you confirm that your privacy policy covers sharing purchase events with ad platforms. Nothing is sent about a shopper who has stopped sharing their details with you.",[624,1016,1017,1018,1021],{},"Each event is retried for about 30 minutes if a platform is down. ",[783,1019,1020],{},"Recent server events",", on the same page, shows every event sent and each platform's answer.",[1023,1024,1026],"h3",{"id":1025},"opening-sessions-from-your-server","Opening sessions from your server",[624,1028,1029,1030,1032],{},"The checkout reads click IDs and cookies on the page that opens it. If you know more, for example a ",[666,1031,911],{}," you saved when the shopper landed, pass it when you create the session. The shopper's own browser fills in anything you leave out.",[830,1034,1038],{"className":1035,"code":1036,"language":1037,"meta":835,"style":835},"language-bash shiki shiki-themes github-light github-dark","curl https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fcheckout-sessions \\\n  -H \"Authorization: Bearer sk_live_…\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"lines\": [{ \"name\": \"Suya platter\", \"quantity\": 2, \"sku\": \"SUYA-1\", \"unit_price\": { \"amount\": \"2500\", \"currency\": \"NGN\" } }],\n    \"attribution\": { \"gclid\": \"Cj0KCQ…\", \"utm_source\": \"google\", \"utm_campaign\": \"october\" }\n  }'\n","bash",[666,1039,1040,1054,1064,1073,1081,1086,1091],{"__ignoreMap":835},[839,1041,1042,1046,1050],{"class":841,"line":12},[839,1043,1045],{"class":1044},"sScJk","curl",[839,1047,1049],{"class":1048},"sZZnC"," https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fcheckout-sessions",[839,1051,1053],{"class":1052},"sj4cs"," \\\n",[839,1055,1056,1059,1062],{"class":841,"line":17},[839,1057,1058],{"class":1052},"  -H",[839,1060,1061],{"class":1048}," \"Authorization: Bearer sk_live_…\"",[839,1063,1053],{"class":1052},[839,1065,1066,1068,1071],{"class":841,"line":42},[839,1067,1058],{"class":1052},[839,1069,1070],{"class":1048}," \"Content-Type: application\u002Fjson\"",[839,1072,1053],{"class":1052},[839,1074,1075,1078],{"class":841,"line":47},[839,1076,1077],{"class":1052},"  -d",[839,1079,1080],{"class":1048}," '{\n",[839,1082,1083],{"class":841,"line":862},[839,1084,1085],{"class":1048},"    \"lines\": [{ \"name\": \"Suya platter\", \"quantity\": 2, \"sku\": \"SUYA-1\", \"unit_price\": { \"amount\": \"2500\", \"currency\": \"NGN\" } }],\n",[839,1087,1088],{"class":841,"line":868},[839,1089,1090],{"class":1048},"    \"attribution\": { \"gclid\": \"Cj0KCQ…\", \"utm_source\": \"google\", \"utm_campaign\": \"october\" }\n",[839,1092,1093],{"class":841,"line":874},[839,1094,1095],{"class":1048},"  }'\n",[624,1097,1098,1101,1102,746,1105,746,1108,746,1110,746,1113,746,1115,746,1118,746,1120,746,1123,746,1126,746,1129,746,1132,746,1135,746,1138,1141,1142,1145],{},[666,1099,1100],{},"attribution"," takes ",[666,1103,1104],{},"fbp",[666,1106,1107],{},"fbc",[666,1109,908],{},[666,1111,1112],{},"ga_client_id",[666,1114,911],{},[666,1116,1117],{},"ttp",[666,1119,914],{},[666,1121,1122],{},"utm_source",[666,1124,1125],{},"utm_medium",[666,1127,1128],{},"utm_campaign",[666,1130,1131],{},"utm_term",[666,1133,1134],{},"utm_content",[666,1136,1137],{},"landing_url",[666,1139,1140],{},"ip"," and ",[666,1143,1144],{},"user_agent",". The first value given for each field is kept.",[628,1147,1149],{"id":1148},"testing","Testing",[788,1151,1152,1166,1175],{},[791,1153,1154,1157,1158,1161,1162,1165],{},[783,1155,1156],{},"Meta and TikTok:"," add the test event code from Events Manager's ",[783,1159,1160],{},"Test events"," tab, then press ",[783,1163,1164],{},"Send test event",". It shows there within seconds.",[791,1167,1168,1171,1172,1174],{},[783,1169,1170],{},"Google:"," ",[783,1173,1164],{}," checks the event with GA4's validation server and shows any problem it finds.",[791,1176,1177,1180,1181,1184],{},[783,1178,1179],{},"Test-mode checkouts"," send nothing from the server unless you turn on ",[783,1182,1183],{},"Send test-mode checkouts to the test tools",". Then they go to Meta's and TikTok's test tools and to GA4 DebugView, never to your live reports.",[1186,1187,1188],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":835,"searchDepth":17,"depth":42,"links":1190},[1191,1192,1193,1194,1197],{"id":630,"depth":17,"text":631},{"id":768,"depth":17,"text":769},{"id":886,"depth":17,"text":887},{"id":931,"depth":17,"text":932,"children":1195},[1196],{"id":1025,"depth":42,"text":1026},{"id":1148,"depth":17,"text":1149},"md",{},true,{"title":26,"description":28},"guides\u002Fad-tracking","IjOD02gMNjocn-R9hOo63qv37c6aBE8wtsFWx92e54o",[1205,1207],{"title":21,"path":20,"stem":1206,"children":-1},"guides\u002Fembed-checkout",{"title":31,"path":30,"stem":1208,"children":-1},"guides\u002Fpay-at-table",1795864569818]