Skip to content

No tax rule for the date

HTTP 422no_rule_for_date

When the API answers 422 no_rule_for_date, and how to fix it.

Version v1.1, updated

The type field of every no_rule_for_date response links to this page.

On this page

The tax code of a line has no rule at the document date. tax_code and date name them, and errors[].field names the line.

At a glance

  • Status: 422 Unprocessable Content

  • Code: no_rule_for_date

  • Retry: No. Fix the cause first: the same request gets the same answer.

Causes and fixes

Likely cause

How to fix it

The code is not one of the tax codes of the company.

Use a code that GET /v1/tax-codes lists. Never copy the codes of an example.

The code was not valid yet, or no longer, at the document date.

List the codes at that date with GET /v1/tax-codes?date=YYYY-MM-DD, and use one valid then.

Example

422 no_rule_for_dateJSON
{
  "code": "no_rule_for_date",
  "date": "2026-09-28",
  "detail": "No tax rule of the company exists for this tax code at the document date.",
  "errors": [
    {
      "field": "lines[0].tax_code",
      "message": "has no tax rule of the company at the document date"
    }
  ],
  "instance": "/v1/invoices",
  "request_id": "a1b2c3d4-0000-4000-8000-0000000000ee",
  "status": 422,
  "tax_code": "STANDARD",
  "title": "No tax rule for the date",
  "type": "https://birp.io/developers/errors/no_rule_for_date"
}
  • invoices
  • me-and-tax-codes
  • tax-rules-unavailable