[{"data":1,"prerenderedAt":1584},["ShallowReactive",2],{"versions":3,"nav-guides":8,"nav-ref-v1":86,"guide-\u002Fguides\u002Fquickstart":618,"guide-around-\u002Fguides\u002Fquickstart":1579},[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":16,"body":620,"description":18,"extension":1573,"group":11,"meta":1574,"navigation":1575,"order":17,"path":15,"seo":1576,"stem":1577,"__hash__":1578},"guides\u002Fguides\u002Fquickstart.md",{"type":621,"value":622,"toc":1559},"minimark",[623,641,668,673,676,784,795,872,880,895,900,927,1111,1125,1136,1140,1143,1202,1206,1224,1229,1233,1245,1256,1281,1285,1309,1327,1331,1334,1379,1383,1396,1424,1431,1435,1442,1505,1523,1527,1555],[624,625,626,627,631,632,636,637,640],"p",{},"You'll need a ",[628,629,630],"strong",{},"test secret key"," (",[633,634,635],"code",{},"sk_test_…",") from ",[628,638,639],{},"Developers → API keys"," in the dashboard. Keep it in an environment variable on your server:",[642,643,648],"pre",{"className":644,"code":645,"language":646,"meta":647,"style":647},"language-bash shiki shiki-themes github-light github-dark","export CARTIRRA_SECRET_KEY=sk_test_your_key_here\n","bash","",[633,649,650],{"__ignoreMap":647},[651,652,654,658,662,665],"span",{"class":653,"line":12},"line",[651,655,657],{"class":656},"szBVR","export",[651,659,661],{"class":660},"sVt8B"," CARTIRRA_SECRET_KEY",[651,663,664],{"class":656},"=",[651,666,667],{"class":660},"sk_test_your_key_here\n",[669,670,672],"h2",{"id":671},"_1-create-a-checkout-session","1. Create a checkout session",[624,674,675],{},"When the shopper is ready to pay, your server sends their cart to Cartirra. Prices come from your system, so send each line's unit price.",[642,677,679],{"className":644,"code":678,"language":646,"meta":647,"style":647},"curl -X POST https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fcheckout-sessions \\\n  -H \"Authorization: Bearer $CARTIRRA_SECRET_KEY\" \\\n  -H \"Idempotency-Key: $(uuidgen)\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"lines\": [\n      { \"name\": \"Jollof rice (large)\", \"quantity\": 2, \"unit_price\": { \"amount\": \"4500.00\", \"currency\": \"NGN\" } }\n    ],\n    \"metadata\": { \"cartId\": \"c_123\" },\n    \"success_url\": \"https:\u002F\u002Fshop.example.com\u002Fthanks\"\n  }'\n",[633,680,681,701,717,732,741,750,756,762,768,774,779],{"__ignoreMap":647},[651,682,683,687,691,695,698],{"class":653,"line":12},[651,684,686],{"class":685},"sScJk","curl",[651,688,690],{"class":689},"sj4cs"," -X",[651,692,694],{"class":693},"sZZnC"," POST",[651,696,697],{"class":693}," https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fcheckout-sessions",[651,699,700],{"class":689}," \\\n",[651,702,703,706,709,712,715],{"class":653,"line":17},[651,704,705],{"class":689},"  -H",[651,707,708],{"class":693}," \"Authorization: Bearer ",[651,710,711],{"class":660},"$CARTIRRA_SECRET_KEY",[651,713,714],{"class":693},"\"",[651,716,700],{"class":689},[651,718,719,721,724,727,730],{"class":653,"line":42},[651,720,705],{"class":689},[651,722,723],{"class":693}," \"Idempotency-Key: $(",[651,725,726],{"class":685},"uuidgen",[651,728,729],{"class":693},")\"",[651,731,700],{"class":689},[651,733,734,736,739],{"class":653,"line":47},[651,735,705],{"class":689},[651,737,738],{"class":693}," \"Content-Type: application\u002Fjson\"",[651,740,700],{"class":689},[651,742,744,747],{"class":653,"line":743},5,[651,745,746],{"class":689},"  -d",[651,748,749],{"class":693}," '{\n",[651,751,753],{"class":653,"line":752},6,[651,754,755],{"class":693},"    \"lines\": [\n",[651,757,759],{"class":653,"line":758},7,[651,760,761],{"class":693},"      { \"name\": \"Jollof rice (large)\", \"quantity\": 2, \"unit_price\": { \"amount\": \"4500.00\", \"currency\": \"NGN\" } }\n",[651,763,765],{"class":653,"line":764},8,[651,766,767],{"class":693},"    ],\n",[651,769,771],{"class":653,"line":770},9,[651,772,773],{"class":693},"    \"metadata\": { \"cartId\": \"c_123\" },\n",[651,775,776],{"class":653,"line":53},[651,777,778],{"class":693},"    \"success_url\": \"https:\u002F\u002Fshop.example.com\u002Fthanks\"\n",[651,780,781],{"class":653,"line":58},[651,782,783],{"class":693},"  }'\n",[624,785,786,787,790,791,794],{},"The response is the session. Keep its ",[633,788,789],{},"id"," and pass ",[633,792,793],{},"client_secret"," to your page:",[642,796,800],{"className":797,"code":798,"language":799,"meta":647,"style":647},"language-json shiki shiki-themes github-light github-dark","{\n  \"id\": \"cs_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b\",\n  \"status\": \"open\",\n  \"currency\": \"NGN\",\n  \"client_secret\": \"cs_0193…_secret_…\",\n  \"expires_at\": \"2026-10-24T10:30:00.000Z\"\n}\n","json",[633,801,802,807,821,833,845,857,867],{"__ignoreMap":647},[651,803,804],{"class":653,"line":12},[651,805,806],{"class":660},"{\n",[651,808,809,812,815,818],{"class":653,"line":17},[651,810,811],{"class":689},"  \"id\"",[651,813,814],{"class":660},": ",[651,816,817],{"class":693},"\"cs_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b\"",[651,819,820],{"class":660},",\n",[651,822,823,826,828,831],{"class":653,"line":42},[651,824,825],{"class":689},"  \"status\"",[651,827,814],{"class":660},[651,829,830],{"class":693},"\"open\"",[651,832,820],{"class":660},[651,834,835,838,840,843],{"class":653,"line":47},[651,836,837],{"class":689},"  \"currency\"",[651,839,814],{"class":660},[651,841,842],{"class":693},"\"NGN\"",[651,844,820],{"class":660},[651,846,847,850,852,855],{"class":653,"line":743},[651,848,849],{"class":689},"  \"client_secret\"",[651,851,814],{"class":660},[651,853,854],{"class":693},"\"cs_0193…_secret_…\"",[651,856,820],{"class":660},[651,858,859,862,864],{"class":653,"line":752},[651,860,861],{"class":689},"  \"expires_at\"",[651,863,814],{"class":660},[651,865,866],{"class":693},"\"2026-10-24T10:30:00.000Z\"\n",[651,868,869],{"class":653,"line":758},[651,870,871],{"class":660},"}\n",[873,874,875],"blockquote",{},[624,876,877,879],{},[633,878,793],{}," lets the widget act on this one session. Send it only to the shopper's browser, never log it, and never send your secret key to a browser.",[624,881,882,883,886,887,890,891,894],{},"Add an ",[633,884,885],{},"image_url"," (a public ",[633,888,889],{},"https:\u002F\u002F"," address) to a line to show the item's picture in the checkout, and ",[633,892,893],{},"description"," for a short line under its name.",[896,897,899],"h3",{"id":898},"items-with-modifiers","Items with modifiers",[624,901,902,903,906,907,910,911,914,915,918,919,922,923,926],{},"When the shopper customised an item (a protein, extras, \"no pepper\"), send the choices as ",[633,904,905],{},"modifiers"," on its line instead of folding them into the name or price. Each modifier has a ",[633,908,909],{},"name",", an optional ",[633,912,913],{},"group"," (shown as \"Protein: Chicken\"), a ",[633,916,917],{},"quantity"," ",[628,920,921],{},"per item"," (default 1) and a ",[633,924,925],{},"price"," per portion (omit it for a free choice):",[642,928,930],{"className":797,"code":929,"language":799,"meta":647,"style":647},"{\n  \"name\": \"Jollof rice (large)\",\n  \"quantity\": 2,\n  \"unit_price\": { \"amount\": \"4500.00\", \"currency\": \"NGN\" },\n  \"modifiers\": [\n    { \"group\": \"Protein\", \"name\": \"Chicken\", \"quantity\": 2, \"price\": { \"amount\": \"1000.00\", \"currency\": \"NGN\" } },\n    { \"name\": \"Plantain\", \"price\": { \"amount\": \"500.00\", \"currency\": \"NGN\" } },\n    { \"name\": \"No pepper\" }\n  ]\n}\n",[633,931,932,936,948,960,989,997,1054,1088,1102,1107],{"__ignoreMap":647},[651,933,934],{"class":653,"line":12},[651,935,806],{"class":660},[651,937,938,941,943,946],{"class":653,"line":17},[651,939,940],{"class":689},"  \"name\"",[651,942,814],{"class":660},[651,944,945],{"class":693},"\"Jollof rice (large)\"",[651,947,820],{"class":660},[651,949,950,953,955,958],{"class":653,"line":42},[651,951,952],{"class":689},"  \"quantity\"",[651,954,814],{"class":660},[651,956,957],{"class":689},"2",[651,959,820],{"class":660},[651,961,962,965,968,971,973,976,979,982,984,986],{"class":653,"line":47},[651,963,964],{"class":689},"  \"unit_price\"",[651,966,967],{"class":660},": { ",[651,969,970],{"class":689},"\"amount\"",[651,972,814],{"class":660},[651,974,975],{"class":693},"\"4500.00\"",[651,977,978],{"class":660},", ",[651,980,981],{"class":689},"\"currency\"",[651,983,814],{"class":660},[651,985,842],{"class":693},[651,987,988],{"class":660}," },\n",[651,990,991,994],{"class":653,"line":743},[651,992,993],{"class":689},"  \"modifiers\"",[651,995,996],{"class":660},": [\n",[651,998,999,1002,1005,1007,1010,1012,1015,1017,1020,1022,1025,1027,1029,1031,1034,1036,1038,1040,1043,1045,1047,1049,1051],{"class":653,"line":752},[651,1000,1001],{"class":660},"    { ",[651,1003,1004],{"class":689},"\"group\"",[651,1006,814],{"class":660},[651,1008,1009],{"class":693},"\"Protein\"",[651,1011,978],{"class":660},[651,1013,1014],{"class":689},"\"name\"",[651,1016,814],{"class":660},[651,1018,1019],{"class":693},"\"Chicken\"",[651,1021,978],{"class":660},[651,1023,1024],{"class":689},"\"quantity\"",[651,1026,814],{"class":660},[651,1028,957],{"class":689},[651,1030,978],{"class":660},[651,1032,1033],{"class":689},"\"price\"",[651,1035,967],{"class":660},[651,1037,970],{"class":689},[651,1039,814],{"class":660},[651,1041,1042],{"class":693},"\"1000.00\"",[651,1044,978],{"class":660},[651,1046,981],{"class":689},[651,1048,814],{"class":660},[651,1050,842],{"class":693},[651,1052,1053],{"class":660}," } },\n",[651,1055,1056,1058,1060,1062,1065,1067,1069,1071,1073,1075,1078,1080,1082,1084,1086],{"class":653,"line":758},[651,1057,1001],{"class":660},[651,1059,1014],{"class":689},[651,1061,814],{"class":660},[651,1063,1064],{"class":693},"\"Plantain\"",[651,1066,978],{"class":660},[651,1068,1033],{"class":689},[651,1070,967],{"class":660},[651,1072,970],{"class":689},[651,1074,814],{"class":660},[651,1076,1077],{"class":693},"\"500.00\"",[651,1079,978],{"class":660},[651,1081,981],{"class":689},[651,1083,814],{"class":660},[651,1085,842],{"class":693},[651,1087,1053],{"class":660},[651,1089,1090,1092,1094,1096,1099],{"class":653,"line":764},[651,1091,1001],{"class":660},[651,1093,1014],{"class":689},[651,1095,814],{"class":660},[651,1097,1098],{"class":693},"\"No pepper\"",[651,1100,1101],{"class":660}," }\n",[651,1103,1104],{"class":653,"line":770},[651,1105,1106],{"class":660},"  ]\n",[651,1108,1109],{"class":653,"line":53},[651,1110,871],{"class":660},[624,1112,1113,1114,1117,1118,1121,1122,1124],{},"One item costs ",[633,1115,1116],{},"unit_price"," plus each modifier's ",[633,1119,1120],{},"price × quantity"," (here ₦4,500 + ₦2,000 + ₦500 = ₦7,000), and the line costs that times its ",[633,1123,917],{}," (₦14,000). If the shopper changes the line's quantity in the checkout, every item keeps its modifiers. The checkout, the order, webhooks and the receipt list each modifier with what it adds. Up to 30 modifiers per line, each quantity 1–99.",[624,1126,1127,1128,1131,1132,1135],{},"If you set a cart check URL, Cartirra sends each line's modifiers with an ",[633,1129,1130],{},"index","; answer a line with ",[633,1133,1134],{},"\"modifiers\": [{ \"index\": 0, \"price\": { \"amount\": \"1200.00\", \"currency\": \"NGN\" } }, { \"index\": 1, \"available\": false }]"," to reprice a modifier or take one that's run out off the item. The shopper sees what changed before paying.",[896,1137,1139],{"id":1138},"what-the-shopper-can-change","What the shopper can change",[624,1141,1142],{},"The shopper can change each line's quantity (1–999) on the order summary, or remove a line, but never the last one. They always pay your unit price for what they keep, and the order lists exactly that.",[1144,1145,1146,1165,1182,1196],"ul",{},[1147,1148,1149,1152,1153,1156,1157,1160,1161,1164],"li",{},[628,1150,1151],{},"Lock the lines a deal depends on."," Send ",[633,1154,1155],{},"\"locked\": true"," on a line, such as the phone a bundle price or gift comes with, and the shopper can't change its quantity or remove it. The session's ",[633,1158,1159],{},"lines"," show ",[633,1162,1163],{},"locked: true",".",[1147,1166,1167,1170,1171,1174,1175,1178,1179,1164],{},[628,1168,1169],{},"Turn editing off for every line"," with ",[628,1172,1173],{},"Checkout → Checkout options → Edit cart"," in the dashboard, or ",[633,1176,1177],{},"\"options\": { \"edit_quantities\": false }"," on ",[633,1180,1181],{},"PATCH \u002Fv1\u002Fcheckout-settings",[1147,1183,1184,1187,1188,1191,1192,1195],{},[628,1185,1186],{},"Every item must cost something."," A line whose item costs ₦0 (unit price plus modifiers) is refused with ",[633,1189,1190],{},"validation_failed",", because a free item on its own line could be kept while the shopper removes what it came with. Give free items and gifts with a promotion (",[628,1193,1194],{},"Discounts"," in the dashboard) or a loyalty reward. Those are re-checked against the cart the shopper actually pays for. An item priced only by its modifiers (unit price ₦0, \"Large\" ₦3,000) is fine.",[1147,1197,1198,1201],{},[628,1199,1200],{},"A cart check URL"," can refuse a cart you can't sell, such as a gift without the item it comes with. If your URL doesn't answer within 3 seconds, the checkout goes on without it.",[669,1203,1205],{"id":1204},"_2-let-the-shopper-pay","2. Let the shopper pay",[624,1207,1208,1209,1212,1213,1216,1217,1219,1220,1223],{},"Your checkout page opens the Cartirra checkout widget with your ",[628,1210,1211],{},"public"," key (",[633,1214,1215],{},"pk_test_…",") and the session's ",[633,1218,793],{},". The shopper chooses delivery or pickup, then pays by bank transfer or card. ",[1221,1222,21],"a",{"href":20}," shows the script tag and options for Cartirra Popup, or how to send shoppers to Cartirra Redirect instead.",[624,1225,1226,1227,1164],{},"In test mode nothing is charged: the widget offers a simulated payment, so you can complete the flow end to end. See ",[1221,1228,46],{"href":45},[669,1230,1232],{"id":1231},"_3-get-told-about-the-order","3. Get told about the order",[624,1234,1235,1236,1238,1239,1241,1242,1244],{},"When the payment succeeds, Cartirra creates the order and sends ",[633,1237,538],{}," and ",[633,1240,544],{}," to your webhook endpoint. Use the event to fulfil the order, and verify the signature first (",[1221,1243,77],{"href":76},"). Fulfil the lines on the order, not the cart you sent: the shopper may have changed quantities or removed lines.",[624,1246,1247,1248,1251,1252,1255],{},"You can also read the session again: once it is ",[633,1249,1250],{},"completed",", its ",[633,1253,1254],{},"order_id"," is set.",[642,1257,1259],{"className":644,"code":1258,"language":646,"meta":647,"style":647},"curl https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fcheckout-sessions\u002Fcs_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b \\\n  -H \"Authorization: Bearer $CARTIRRA_SECRET_KEY\"\n",[633,1260,1261,1270],{"__ignoreMap":647},[651,1262,1263,1265,1268],{"class":653,"line":12},[651,1264,686],{"class":685},[651,1266,1267],{"class":693}," https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fcheckout-sessions\u002Fcs_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b",[651,1269,700],{"class":689},[651,1271,1272,1274,1276,1278],{"class":653,"line":17},[651,1273,705],{"class":689},[651,1275,708],{"class":693},[651,1277,711],{"class":660},[651,1279,1280],{"class":693},"\"\n",[669,1282,1284],{"id":1283},"_4-read-the-order","4. Read the order",[642,1286,1288],{"className":644,"code":1287,"language":646,"meta":647,"style":647},"curl https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Forders\u002Ford_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b \\\n  -H \"Authorization: Bearer $CARTIRRA_SECRET_KEY\"\n",[633,1289,1290,1299],{"__ignoreMap":647},[651,1291,1292,1294,1297],{"class":653,"line":12},[651,1293,686],{"class":685},[651,1295,1296],{"class":693}," https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Forders\u002Ford_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b",[651,1298,700],{"class":689},[651,1300,1301,1303,1305,1307],{"class":653,"line":17},[651,1302,705],{"class":689},[651,1304,708],{"class":693},[651,1306,711],{"class":660},[651,1308,1280],{"class":693},[624,1310,1311,1312,1315,1316,1319,1320,978,1323,1326],{},"The order carries its ",[633,1313,1314],{},"reference"," (what the shopper sees, such as ",[633,1317,1318],{},"ORD-1042","), ",[633,1321,1322],{},"status",[633,1324,1325],{},"payment_status",", the lines, the price breakdown and the fulfilment details.",[669,1328,1330],{"id":1329},"_5-move-it-along","5. Move it along",[624,1332,1333],{},"As you prepare and hand over the order, update its status so the shopper is kept informed:",[642,1335,1337],{"className":644,"code":1336,"language":646,"meta":647,"style":647},"curl -X POST https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Forders\u002Ford_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b\u002Fstatus \\\n  -H \"Authorization: Bearer $CARTIRRA_SECRET_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"status\": \"out_for_delivery\" }'\n",[633,1338,1339,1352,1364,1372],{"__ignoreMap":647},[651,1340,1341,1343,1345,1347,1350],{"class":653,"line":12},[651,1342,686],{"class":685},[651,1344,690],{"class":689},[651,1346,694],{"class":693},[651,1348,1349],{"class":693}," https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Forders\u002Ford_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b\u002Fstatus",[651,1351,700],{"class":689},[651,1353,1354,1356,1358,1360,1362],{"class":653,"line":17},[651,1355,705],{"class":689},[651,1357,708],{"class":693},[651,1359,711],{"class":660},[651,1361,714],{"class":693},[651,1363,700],{"class":689},[651,1365,1366,1368,1370],{"class":653,"line":42},[651,1367,705],{"class":689},[651,1369,738],{"class":693},[651,1371,700],{"class":689},[651,1373,1374,1376],{"class":653,"line":47},[651,1375,746],{"class":689},[651,1377,1378],{"class":693}," '{ \"status\": \"out_for_delivery\" }'\n",[896,1380,1382],{"id":1381},"pay-on-delivery","Pay on delivery",[624,1384,1385,1386,1170,1389,1238,1392,1395],{},"If you turn on pay on delivery, some orders arrive as ",[633,1387,1388],{},"processing",[633,1390,1391],{},"payment_method: \"pay_on_delivery\"",[633,1393,1394],{},"payment_status: \"pending\"",". When you hand one over, record what happened:",[642,1397,1399],{"className":644,"code":1398,"language":646,"meta":647,"style":647},"curl -X POST https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Forders\u002Ford_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b\u002Fpay-on-delivery\u002Fcollected \\\n  -H \"Authorization: Bearer $CARTIRRA_SECRET_KEY\"\n",[633,1400,1401,1414],{"__ignoreMap":647},[651,1402,1403,1405,1407,1409,1412],{"class":653,"line":12},[651,1404,686],{"class":685},[651,1406,690],{"class":689},[651,1408,694],{"class":693},[651,1410,1411],{"class":693}," https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Forders\u002Ford_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b\u002Fpay-on-delivery\u002Fcollected",[651,1413,700],{"class":689},[651,1415,1416,1418,1420,1422],{"class":653,"line":17},[651,1417,705],{"class":689},[651,1419,708],{"class":693},[651,1421,711],{"class":660},[651,1423,1280],{"class":693},[624,1425,1426,1427,1430],{},"Collected marks the order paid and sends the receipt. ",[633,1428,1429],{},"…\u002Fpay-on-delivery\u002Fnot-paid"," cancels it instead. A shopper who leaves two such orders unpaid isn't offered pay on delivery again.",[669,1432,1434],{"id":1433},"no-code-payment-links","No code: payment links",[624,1436,1437,1438,1441],{},"To sell without building a checkout, create a payment link for a cart and share its ",[633,1439,1440],{},"url"," (WhatsApp, Instagram, SMS):",[642,1443,1445],{"className":644,"code":1444,"language":646,"meta":647,"style":647},"curl -X POST https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fpayment-links \\\n  -H \"Authorization: Bearer $CARTIRRA_SECRET_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"title\": \"Party jollof for 10\",\n    \"lines\": [{ \"name\": \"Party jollof\", \"quantity\": 1, \"unit_price\": { \"amount\": \"25000.00\", \"currency\": \"NGN\" } }],\n    \"max_uses\": 20\n  }'\n",[633,1446,1447,1460,1472,1480,1486,1491,1496,1501],{"__ignoreMap":647},[651,1448,1449,1451,1453,1455,1458],{"class":653,"line":12},[651,1450,686],{"class":685},[651,1452,690],{"class":689},[651,1454,694],{"class":693},[651,1456,1457],{"class":693}," https:\u002F\u002Fapi.cartirra.com\u002Fv1\u002Fpayment-links",[651,1459,700],{"class":689},[651,1461,1462,1464,1466,1468,1470],{"class":653,"line":17},[651,1463,705],{"class":689},[651,1465,708],{"class":693},[651,1467,711],{"class":660},[651,1469,714],{"class":693},[651,1471,700],{"class":689},[651,1473,1474,1476,1478],{"class":653,"line":42},[651,1475,705],{"class":689},[651,1477,738],{"class":693},[651,1479,700],{"class":689},[651,1481,1482,1484],{"class":653,"line":47},[651,1483,746],{"class":689},[651,1485,749],{"class":693},[651,1487,1488],{"class":653,"line":743},[651,1489,1490],{"class":693},"    \"title\": \"Party jollof for 10\",\n",[651,1492,1493],{"class":653,"line":752},[651,1494,1495],{"class":693},"    \"lines\": [{ \"name\": \"Party jollof\", \"quantity\": 1, \"unit_price\": { \"amount\": \"25000.00\", \"currency\": \"NGN\" } }],\n",[651,1497,1498],{"class":653,"line":758},[651,1499,1500],{"class":693},"    \"max_uses\": 20\n",[651,1502,1503],{"class":653,"line":764},[651,1504,783],{"class":693},[624,1506,1507,1508,1511,1512,1170,1515,1518,1519,1522],{},"Each shopper who opens the link gets their own checkout for that cart. ",[633,1509,1510],{},"uses"," counts the paid orders. Set ",[633,1513,1514],{},"status: \"inactive\"",[633,1516,1517],{},"PATCH \u002Fv1\u002Fpayment-links\u002F{id}"," to stop it. Orders from a link have ",[633,1520,1521],{},"metadata.paymentLink"," on their checkout session.",[669,1524,1526],{"id":1525},"going-live","Going live",[1528,1529,1530,1533,1552],"ol",{},[1147,1531,1532],{},"Finish your business verification in the dashboard so live mode is switched on.",[1147,1534,1535,1536,1539,1540,1543,1544,1547,1548,1551],{},"Swap ",[633,1537,1538],{},"sk_test_"," for your ",[633,1541,1542],{},"sk_live_"," key and ",[633,1545,1546],{},"pk_test_"," for ",[633,1549,1550],{},"pk_live_",". Test and live data never mix, so live starts empty.",[1147,1553,1554],{},"Add a live webhook endpoint. Each mode has its own endpoint and signing secret.",[1556,1557,1558],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}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 .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}",{"title":647,"searchDepth":17,"depth":42,"links":1560},[1561,1565,1566,1567,1568,1571,1572],{"id":671,"depth":17,"text":672,"children":1562},[1563,1564],{"id":898,"depth":42,"text":899},{"id":1138,"depth":42,"text":1139},{"id":1204,"depth":17,"text":1205},{"id":1231,"depth":17,"text":1232},{"id":1283,"depth":17,"text":1284},{"id":1329,"depth":17,"text":1330,"children":1569},[1570],{"id":1381,"depth":42,"text":1382},{"id":1433,"depth":17,"text":1434},{"id":1525,"depth":17,"text":1526},"md",{},true,{"title":16,"description":18},"guides\u002Fquickstart","epz0aVupIOYMiP4RPKxHJ0wXvYtR-Lveab5_tQLUmjQ",[1580,1582],{"title":11,"path":10,"stem":1581,"children":-1},"guides\u002Fgetting-started",{"title":21,"path":20,"stem":1583,"children":-1},"guides\u002Fembed-checkout",1795864569766]