[{"data":1,"prerenderedAt":294},["ShallowReactive",2],{"navigation_docs":3,"-guides-ledger":132,"-guides-ledger-surround":289},[4,30,47,128],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":14,"path":15,"stem":16},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F2.quickstart",{"title":18,"path":19,"stem":20},"Authentication","\u002Fgetting-started\u002Fauthentication","1.getting-started\u002F3.authentication",{"title":22,"path":23,"stem":24},"Self-Hosting","\u002Fgetting-started\u002Fself-hosting","1.getting-started\u002F4.self-hosting",{"title":26,"path":27,"stem":28},"Build an Integration","\u002Fgetting-started\u002Fbuild-an-integration","1.getting-started\u002F5.build-an-integration",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Sdks","\u002Fsdks","2.sdks",[35,39,43],{"title":36,"path":37,"stem":38},"TypeScript SDK","\u002Fsdks\u002Ftypescript","2.sdks\u002F1.typescript",{"title":40,"path":41,"stem":42},"Python SDK","\u002Fsdks\u002Fpython","2.sdks\u002F2.python",{"title":44,"path":45,"stem":46},"PHP SDK","\u002Fsdks\u002Fphp","2.sdks\u002F3.php",{"title":48,"path":49,"stem":50,"children":51,"page":29},"Guides","\u002Fguides","3.guides",[52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124],{"title":53,"path":54,"stem":55},"Customers","\u002Fguides\u002Fcustomers","3.guides\u002F1.customers",{"title":57,"path":58,"stem":59},"Usage-Based Billing","\u002Fguides\u002Fusage-billing","3.guides\u002F10.usage-billing",{"title":61,"path":62,"stem":63},"Wallets","\u002Fguides\u002Fwallets","3.guides\u002F11.wallets",{"title":65,"path":66,"stem":67},"Coupons, Add-ons and Credit Notes","\u002Fguides\u002Fcoupons-add-ons-credit-notes","3.guides\u002F12.coupons-add-ons-credit-notes",{"title":69,"path":70,"stem":71},"Taxes","\u002Fguides\u002Ftaxes","3.guides\u002F13.taxes",{"title":73,"path":74,"stem":75},"Customer Portal","\u002Fguides\u002Fcustomer-portal","3.guides\u002F14.customer-portal",{"title":77,"path":78,"stem":79},"Ledger","\u002Fguides\u002Fledger","3.guides\u002F15.ledger",{"title":81,"path":82,"stem":83},"Plan Limits and Access","\u002Fguides\u002Fplan-limits-and-access","3.guides\u002F16.plan-limits-and-access",{"title":85,"path":86,"stem":87},"Currencies and Exchange Rates","\u002Fguides\u002Fcurrencies","3.guides\u002F17.currencies",{"title":89,"path":90,"stem":91},"Charge a Customer","\u002Fguides\u002Fcharge-a-customer","3.guides\u002F18.charge-a-customer",{"title":93,"path":94,"stem":95},"One-time Products & Partial Payments","\u002Fguides\u002Fone-time-products-and-partial-payments","3.guides\u002F19.one-time-products-and-partial-payments",{"title":97,"path":98,"stem":99},"Plans & Pricing","\u002Fguides\u002Fplans-and-pricing","3.guides\u002F2.plans-and-pricing",{"title":101,"path":102,"stem":103},"Subscriptions","\u002Fguides\u002Fsubscriptions","3.guides\u002F3.subscriptions",{"title":105,"path":106,"stem":107},"Invoices & Payments","\u002Fguides\u002Finvoices-and-payments","3.guides\u002F4.invoices-and-payments",{"title":109,"path":110,"stem":111},"Payment Providers","\u002Fguides\u002Fpayment-providers","3.guides\u002F5.payment-providers",{"title":113,"path":114,"stem":115},"Analytics","\u002Fguides\u002Fanalytics","3.guides\u002F6.analytics",{"title":117,"path":118,"stem":119},"Webhooks","\u002Fguides\u002Fwebhooks","3.guides\u002F7.webhooks",{"title":121,"path":122,"stem":123},"Sandbox","\u002Fguides\u002Fsandbox","3.guides\u002F8.sandbox",{"title":125,"path":126,"stem":127},"Money Movement","\u002Fguides\u002Fmoney-movement","3.guides\u002F9.money-movement",{"title":129,"path":130,"stem":131},"API Reference","\u002Fapi-reference","4.api-reference",{"id":133,"title":77,"body":134,"description":282,"extension":283,"links":284,"meta":285,"navigation":286,"path":78,"seo":287,"stem":79,"__hash__":288},"docs\u002F3.guides\u002F15.ledger.md",{"type":135,"value":136,"toc":276},"minimark",[137,141,146,207,210,214,219,265,268],[138,139,140],"p",{},"Each organisation has a double-entry ledger. Settled payments, refunds, collections, payouts, transfers, wallet credits and platform commission are posted to it automatically as journal entries, so your finance team can reconcile every amount.",[142,143,145],"h2",{"id":144},"reading-the-ledger","Reading the ledger",[147,148,149,162],"table",{},[150,151,152],"thead",{},[153,154,155,159],"tr",{},[156,157,158],"th",{},"Endpoint",[156,160,161],{},"Returns",[163,164,165,177,187,197],"tbody",{},[153,166,167,174],{},[168,169,170],"td",{},[171,172,173],"code",{},"GET \u002Fapi\u002Fledger\u002Faccounts",[168,175,176],{},"The ledger's accounts and their balances per currency",[153,178,179,184],{},[168,180,181],{},[171,182,183],{},"GET \u002Fapi\u002Fledger\u002Fentries",[168,185,186],{},"Journal entries with their lines, newest first",[153,188,189,194],{},[168,190,191],{},[171,192,193],{},"GET \u002Fapi\u002Fledger\u002Fhealth",[168,195,196],{},"The latest integrity checks",[153,198,199,204],{},[168,200,201],{},[171,202,203],{},"POST \u002Fapi\u002Fledger\u002Fsync",[168,205,206],{},"Posts anything not yet in the ledger now (it also runs on its own)",[138,208,209],{},"Every entry balances: its debits equal its credits in each currency. Entries are never edited; a correction is a new entry.",[142,211,213],{"id":212},"integrity-checks","Integrity checks",[138,215,216,218],{},[171,217,193],{}," reports four checks:",[147,220,221,231],{},[150,222,223],{},[153,224,225,228],{},[156,226,227],{},"Check",[156,229,230],{},"Meaning",[163,232,233,241,249,257],{},[153,234,235,238],{},[168,236,237],{},"Debits equal credits in every currency",[168,239,240],{},"The ledger as a whole balances",[153,242,243,246],{},[168,244,245],{},"Every journal entry balances",[168,247,248],{},"No single entry is lopsided",[153,250,251,254],{},[168,252,253],{},"Account balances match their lines",[168,255,256],{},"Cached balances agree with the entries",[153,258,259,262],{},[168,260,261],{},"Wallet balances match the ledger",[168,263,264],{},"Customer wallets agree with the ledger (informational)",[138,266,267],{},"A failed check is shown in the dashboard's Ledger page, and the platform operator is alerted.",[138,269,270,271,275],{},"The ledger can be turned off for an organisation by its plan; see ",[272,273,274],"a",{"href":82},"Plan limits and access",".",{"title":277,"searchDepth":278,"depth":278,"links":279},"",2,[280,281],{"id":144,"depth":278,"text":145},{"id":212,"depth":278,"text":213},"Every payment, payout, fee and wallet movement as double-entry journal entries, checked for integrity.","md",null,{},true,{"title":77,"description":282},"kgvoK3pZ0rDvH75nEYURAR_640TRaaQN9B53eEwBKg8",[290,292],{"title":73,"path":74,"stem":75,"description":291,"children":-1},"A secure page where your customers see their plan, invoices and payments, and pay what they owe.",{"title":81,"path":82,"stem":83,"description":293,"children":-1},"What happens when your organisation reaches a plan limit, or its access is restricted.",1793401245273]