[{"data":1,"prerenderedAt":357},["ShallowReactive",2],{"navigation_docs":3,"-guides-taxes":132,"-guides-taxes-surround":352},[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":69,"body":134,"description":345,"extension":346,"links":347,"meta":348,"navigation":349,"path":70,"seo":350,"stem":71,"__hash__":351},"docs\u002F3.guides\u002F13.taxes.md",{"type":135,"value":136,"toc":341},"minimark",[137,142,258,269,273,276,319,334,337],[138,139,141],"h2",{"id":140},"create-a-tax-rate","Create a tax rate",[143,144,149],"pre",{"className":145,"code":146,"language":147,"meta":148,"style":148},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST https:\u002F\u002Fapi.pimabill.com\u002Fapi\u002Ftaxes \\\n  -H \"Authorization: Bearer sk_live_a1b2c3d4...\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"VAT\",\n    \"code\": \"vat_18\",\n    \"rate\": 18,\n    \"description\": \"Uganda VAT\",\n    \"appliedByDefault\": true\n  }'\n","bash","",[150,151,152,175,193,207,219,225,231,237,243,249],"code",{"__ignoreMap":148},[153,154,157,161,165,168,171],"span",{"class":155,"line":156},"line",1,[153,158,160],{"class":159},"sBMFI","curl",[153,162,164],{"class":163},"sfazB"," -X",[153,166,167],{"class":163}," POST",[153,169,170],{"class":163}," https:\u002F\u002Fapi.pimabill.com\u002Fapi\u002Ftaxes",[153,172,174],{"class":173},"sTEyZ"," \\\n",[153,176,178,181,185,188,191],{"class":155,"line":177},2,[153,179,180],{"class":163},"  -H",[153,182,184],{"class":183},"sMK4o"," \"",[153,186,187],{"class":163},"Authorization: Bearer sk_live_a1b2c3d4...",[153,189,190],{"class":183},"\"",[153,192,174],{"class":173},[153,194,196,198,200,203,205],{"class":155,"line":195},3,[153,197,180],{"class":163},[153,199,184],{"class":183},[153,201,202],{"class":163},"Content-Type: application\u002Fjson",[153,204,190],{"class":183},[153,206,174],{"class":173},[153,208,210,213,216],{"class":155,"line":209},4,[153,211,212],{"class":163},"  -d",[153,214,215],{"class":183}," '",[153,217,218],{"class":163},"{\n",[153,220,222],{"class":155,"line":221},5,[153,223,224],{"class":163},"    \"name\": \"VAT\",\n",[153,226,228],{"class":155,"line":227},6,[153,229,230],{"class":163},"    \"code\": \"vat_18\",\n",[153,232,234],{"class":155,"line":233},7,[153,235,236],{"class":163},"    \"rate\": 18,\n",[153,238,240],{"class":155,"line":239},8,[153,241,242],{"class":163},"    \"description\": \"Uganda VAT\",\n",[153,244,246],{"class":155,"line":245},9,[153,247,248],{"class":163},"    \"appliedByDefault\": true\n",[153,250,252,255],{"class":155,"line":251},10,[153,253,254],{"class":163},"  }",[153,256,257],{"class":183},"'\n",[259,260,261,264,265,268],"p",{},[150,262,263],{},"rate"," is a percentage. A tax with ",[150,266,267],{},"appliedByDefault: true"," applies to every invoice unless something more specific says otherwise.",[138,270,272],{"id":271},"which-taxes-apply","Which taxes apply",[259,274,275],{},"The most specific assignment wins, checked in this order:",[277,278,279,291,300,310],"ol",{},[280,281,282,286,287,290],"li",{},[283,284,285],"strong",{},"Charge",": taxes on a usage charge (",[150,288,289],{},"POST \u002Fapi\u002Ftaxes\u002Fcharge\u002F{chargeId}",")",[280,292,293,296,297,290],{},[283,294,295],{},"Plan",": taxes on a plan (",[150,298,299],{},"POST \u002Fapi\u002Ftaxes\u002Fplan\u002F{planId}",[280,301,302,305,306,309],{},[283,303,304],{},"Customer",": taxes for one customer (",[150,307,308],{},"POST \u002Fapi\u002Ftaxes\u002Fcustomer\u002F{customerId}","), for example a different rate in another country",[280,311,312,315,316],{},[283,313,314],{},"Default",": every tax with ",[150,317,318],{},"appliedByDefault",[259,320,321,322,325,326,329,330,333],{},"Assign with ",[150,323,324],{},"{ \"taxId\": \"tax_123\" }"," in the body, list with ",[150,327,328],{},"GET"," on the same path, and remove with ",[150,331,332],{},"DELETE ...\u002F{taxId}",". To exempt a customer, give them their own assignment (such as a 0% tax) so the defaults no longer apply.",[259,335,336],{},"Taxes are calculated after coupons and add-ons, and before prepaid wallet credit is used.",[338,339,340],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}",{"title":148,"searchDepth":177,"depth":177,"links":342},[343,344],{"id":140,"depth":177,"text":141},{"id":271,"depth":177,"text":272},"Tax rates applied to invoices, by default or per customer, plan or charge.","md",null,{},true,{"title":69,"description":345},"2YoLoQZiZQtYCewMu7Xi8MB3U1I5CnBmExfumft8z3w",[353,355],{"title":65,"path":66,"stem":67,"description":354,"children":-1},"Discounts, one-time charges, and credits against invoices.",{"title":73,"path":74,"stem":75,"description":356,"children":-1},"A secure page where your customers see their plan, invoices and payments, and pay what they owe.",1793401245173]