curl --request GET \
--url https://api.hyperline.co/v1/accounting/rules/{id} \
--header 'Authorization: Bearer <token>'{
"id": "arl_abc123def456",
"code": "R-001",
"name": "Recurring subscriptions",
"ledger_id": "led_abc123def456",
"category": "accounting_software",
"priority": 100,
"product_ids": [
"<string>"
],
"product_types": [
"<string>"
],
"customer_ids": [
"<string>"
],
"currencies": [
"<string>"
],
"countries": [
"<string>"
],
"coupon_ids": [
"<string>"
],
"client_provider_ids": [
"<string>"
],
"payment_method_types": [
"<string>"
],
"interval_period": "<string>",
"interval_count": 123,
"revenue_ledger_account_id": "<string>",
"deferred_revenue_ledger_account_id": "<string>",
"deferred_discount_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>",
"payments_clearing_ledger_account_id": "<string>",
"output_tax_ledger_account_id": "<string>",
"bad_debt_expense_ledger_account_id": "<string>",
"customer_credits_ledger_account_id": "<string>",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"revenue_ledger_account": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"client_provider_id": "<string>",
"provider": {
"name": "<string>"
}
}
}Retrieve a single accounting rule by its identifier.
curl --request GET \
--url https://api.hyperline.co/v1/accounting/rules/{id} \
--header 'Authorization: Bearer <token>'{
"id": "arl_abc123def456",
"code": "R-001",
"name": "Recurring subscriptions",
"ledger_id": "led_abc123def456",
"category": "accounting_software",
"priority": 100,
"product_ids": [
"<string>"
],
"product_types": [
"<string>"
],
"customer_ids": [
"<string>"
],
"currencies": [
"<string>"
],
"countries": [
"<string>"
],
"coupon_ids": [
"<string>"
],
"client_provider_ids": [
"<string>"
],
"payment_method_types": [
"<string>"
],
"interval_period": "<string>",
"interval_count": 123,
"revenue_ledger_account_id": "<string>",
"deferred_revenue_ledger_account_id": "<string>",
"deferred_discount_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>",
"payments_clearing_ledger_account_id": "<string>",
"output_tax_ledger_account_id": "<string>",
"bad_debt_expense_ledger_account_id": "<string>",
"customer_credits_ledger_account_id": "<string>",
"created_at": "2023-12-25",
"updated_at": "2023-12-25",
"revenue_ledger_account": {
"id": "<string>",
"code": "<string>",
"name": "<string>",
"client_provider_id": "<string>",
"provider": {
"name": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the accounting rule.
"arl_abc123def456"
Auto-generated rule code (e.g. R-001).
"R-001"
Optional user-defined name for the rule.
"Recurring subscriptions"
Identifier of the ledger this rule belongs to.
"led_abc123def456"
Rule category (e.g. accounting_software, invoice_posted).
"accounting_software"
Override order. Higher priority wins when multiple rules match.
100
Product IDs to match. Empty means match all.
Product types to match (seat, flat_fee, dynamic, etc.).
Customer IDs for customer-specific overrides.
Currency codes to match (e.g. EUR, USD).
Country codes for jurisdiction-based overrides.
Coupon IDs to match. Empty means match all.
Client provider IDs to match. Empty means match all.
Payment method types to match. Empty means match all.
Billing interval period filter (month, year, etc.).
Billing interval count filter.
Revenue ledger account ID.
Timestamp when the rule was created.
Timestamp when the rule was last updated.
Show child attributes
Was this page helpful?