Errors
The error object of the Tax Filing API and the codes that say what went wrong.
On this page
An error is an HTTP status and a JSON object whose code never changes its meaning.
The error object
| Field | Meaning |
|---|---|
code | A stable code for the cause. Act on this. |
message | A sentence to read in your logs. It can change, so do not show it to the people who use your software and do not match on it. |
fields | On a 400, each field that is wrong and why. Absent otherwise. |
requestId | The identifier of this request. Quote it when you ask us for help. |
Every answer, an error or not, carries the header X-RDC-Request-Id with the same value as requestId.
Codes every product shares
| Status | Code | Meaning | Retry |
|---|---|---|---|
400 | invalid_request | The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. | No. Fix the request. |
401 | unauthorized | The token is missing, expired or not ours. | After you get a new token. |
403 | forbidden | The token does not give access to this company or operation. | No. |
404 | <thing>_not_found | The record does not exist for this company. | No. |
409 | revision_conflict | expectedRevision is older than the record. | Read the record again, then send a new operation. |
409 | operation_reused | This operationId was sent before with another body. | No. |
422 | A code of the product, such as blocked_by_checks | The request is well formed and a rule of the product refuses it. | No. The code says what to change. |
429 | rate_limited | Too many requests. Retry-After gives the seconds. | Yes, after the pause. |
503 | unavailable | The service cannot answer now. | Yes, with the same operationId. |
Codes of Tax Filing
| Status | Code | Meaning |
|---|---|---|
404 | company_not_found | The company does not exist in your account. |
404 | obligation_not_found | The obligation does not exist in your account. |
404 | return_not_found | The return does not exist in your account. |
404 | operation_not_found | No change was sent with this operationId. |
404 | approval_not_found | The return has not been approved yet. |
404 | submission_not_found | The return has not been filed. |
404 | receipt_not_found | The return has no receipt. A receipt exists for an accepted return. |
404 | delivery_not_found | The delivery does not exist in your account. |
404 | subscription_not_found | The subscription does not exist in your account. |
409 | invalid_status | The return is not in a status that allows this. |
409 | period_open | The period of the return is not over, so there is nothing to build yet. |
409 | source_unchanged | The ledger has no newer snapshot than the one the return was built from, so rebuilding or correcting changes nothing. |
409 | already_corrected | A correction of this return already exists. |
409 | endpoint_answering | The event endpoint already answers. |
409 | endpoint_not_answering | The event endpoint still does not answer. The event stays parked. |
409 | nothing_to_retry | The delivery is not waiting for a retry. |
409 | nothing_parked | The delivery is not parked. |
422 | blocked_by_findings | The return has an error finding. It cannot be signed, approved or filed while one remains. Nothing was changed. |
422 | not_a_signer | The person may not sign returns of this company. |
422 | not_an_approver | The person may not approve returns of this company. |
422 | self_approval | The person who signed the return cannot approve it. |
The full rule: Developer guide