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"
Currency code to resolve against.
"EUR"
Country code to resolve against.
"FR"
Customer ID to resolve against.
"cus_abc123def456"
Billing interval period filter (month, year, etc.).
"month"
Billing interval count filter.
1
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"
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"
Bad debt expense ledger account ID used for provider-side write-off routing.
"lac_abc123def456"
Trace of which rules contributed which resolved fields.

