Resolve accounting rule
Preview which account codes would be resolved for a given context.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Identifier of the ledger this rule belongs to.
"led_abc123def456"
Rule category (e.g. accounting_software, invoice_posted).
invoice_posted, invoice_settled, revenue_recognition, credit_note_created, accounting_software "accounting_software"
Product ID to resolve against.
"prod_abc123def456"
Product type to resolve against.
flat_fee, dynamic, addon, seat, one_off, credit, bundle "flat_fee"
Currency code to resolve against.
EUR, AED, AFN, XCD, ALL, AMD, AOA, ARS, USD, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, XOF, BMD, BND, BOB, BRL, BSD, BTN, NOK, BWP, BYR, BZD, CAD, CDF, XAF, CHF, NZD, CLP, CNY, COP, CRC, CUP, CVE, ANG, CZK, DJF, DKK, DOP, DZD, EGP, MAD, ERN, ETB, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, XPF, NGN, NIO, NPR, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STD, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, UYU, UZS, VEF, VND, VUV, WST, YER, ZAR, ZMW, ZWL "EUR"
Country code to resolve against.
AD, AE, AF, AG, AI, AL, AM, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BF, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ES-CE, ES-ML, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, IC, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PT-20, PT-30, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XK, YE, YT, ZA, ZM, ZW "FR"
Tax scheme to resolve against.
standard, reverse_charge, exempt, not_eligible, manual "reverse_charge"
Tax territory country code to resolve against.
AD, AE, AF, AG, AI, AL, AM, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BF, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ES-CE, ES-ML, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, IC, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PT-20, PT-30, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XK, YE, YT, ZA, ZM, ZW "FR"
Tax rate class to resolve against.
standard_rate, reduced_rate, reduced_rate_alt, super_reduced_rate, parking_rate, exempt, reverse_charge "standard_rate"
Customer ID to resolve against.
"cus_abc123def456"
Coupon ID to resolve against.
"cpn_abc123def456"
Client provider ID to resolve against.
"clp_abc123def456"
Payment method type to resolve against.
card, transfer, transfer_automated, direct_debit, direct_debit_ach, direct_debit_bacs, apple_pay, google_pay, paypal, stripe_link, external "card"
Bank account ID to resolve against.
"bac_abc123def456"
Invoice kind to resolve against. Accepts invoice or document; any other invoice kind is matched as invoice.
invoice, document "invoice"
Billing interval period filter (months, years, etc.).
days, weeks, quarters, months, years, once, all "months"
Billing interval count filter.
1
Invoice custom property values to resolve against, keyed by custom property slug. Unknown slugs and null values are ignored. Rules with custom property filters never match without them.
Response
Revenue ledger account ID used for invoice line revenue routing.
"lac_abc123def456"
Deferred revenue ledger account ID used before revenue is recognized.
"lac_abc123def456"
Deferred discount ledger account ID used before discounts are recognized.
"lac_abc123def456"
Contra revenue ledger account ID used for amounts that reduce revenue.
"lac_abc123def456"
Discount ledger account ID used for recognized discounts.
"lac_abc123def456"
Accounts receivable ledger account ID used for invoice posting.
"lac_abc123def456"
Cash ledger account ID used for payment settlement.
"lac_abc123def456"
Payments clearing ledger account ID used while payments settle.
"lac_abc123def456"
Output tax ledger account ID used for tax liability.
"lac_abc123def456"
Ledger account ID debited when an invoice becomes uncollectible. Use an asset account for doubtful-receivable reclassification or an expense account for direct write-off.
"lac_abc123def456"
Allowance for doubtful accounts ledger account ID, set on credit_note_created rules.
"lac_abc123def456"
Expense ledger account ID debited for payment provider fees when a payment settles.
"lac_abc123def456"
Expense ledger account ID debited for payment processing fees when a payment settles. Takes precedence over provider_fees_expense_ledger_account_id when set by the same or a higher priority rule.
"lac_abc123def456"
Payment processing fees revenue ledger account ID, set on invoice_settled rules.
"lac_abc123def456"
Customer credits ledger account ID used for credit balances.
"lac_abc123def456"
Revenue recognition method.
none, point_in_time, over_time, usage_based, milestone, manual "over_time"
Recognition period granularity. Used when rev_rec_method is over_time.
day, month, quarter, year "month"
Date revenue is recognized on. Used when rev_rec_method is point_in_time.
invoice_date, service_start_date, service_end_date, custom_date "service_end_date"
Method used to recognize discounts.
immediate, deferred, use_net_amount "deferred"
Journal ID used to route entries in the accounting provider.
"jou_abc123def456"
Trace of which rules contributed which resolved fields.

