curl --request POST \
--url https://api.hyperline.co/v1/accounting/rules/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ledger_id": "<string>",
"category": "invoice_posted",
"product_id": "<string>",
"product_type": "<string>",
"currency": "<string>",
"country": "<string>",
"customer_id": "<string>",
"interval_period": "<string>",
"interval_count": 123
}
'{
"revenue_ledger_account_id": "<string>",
"deferred_revenue_ledger_account_id": "<string>",
"contra_revenue_ledger_account_id": "<string>",
"discount_ledger_account_id": "<string>",
"ar_ledger_account_id": "<string>",
"cash_ledger_account_id": "<string>",
"trace": [
{
"rule_id": "<string>",
"applied_fields": [
"<string>"
]
}
]
}Preview which account codes would be resolved for a given context.
curl --request POST \
--url https://api.hyperline.co/v1/accounting/rules/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ledger_id": "<string>",
"category": "invoice_posted",
"product_id": "<string>",
"product_type": "<string>",
"currency": "<string>",
"country": "<string>",
"customer_id": "<string>",
"interval_period": "<string>",
"interval_count": 123
}
'{
"revenue_ledger_account_id": "<string>",
"deferred_revenue_ledger_account_id": "<string>",
"contra_revenue_ledger_account_id": "<string>",
"discount_ledger_account_id": "<string>",
"ar_ledger_account_id": "<string>",
"cash_ledger_account_id": "<string>",
"trace": [
{
"rule_id": "<string>",
"applied_fields": [
"<string>"
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Trace of which rules contributed which fields.
Show child attributes
Was this page helpful?