HTTP Error Messages

Cette page est en cours de traduction. Elle sera mise à jour dès que son contenu sera disponible en français.


The following is the list of HTTP error codes for which a precision was added as well as additional messages to ensure that you can better understand why the request resulted in a HTTP error:

 

HTTP status code

Type

Messages

Description of the error

400 Bad request

 

 

 

 

 

 

 

Client error

 

 

 

 

 

 

 

The {Missing Field Name} field is required.

Error returned when a mandatory field is not included in a request.

Request is invalid.

Error returned when the request does not respect the JSON structure.

Return status ID is invalid.

Error returned when a return status ID is invalid and does not respect the GUID structure.

Return ID: {ReturnId} is invalid.

Error returned when a return ID provided in the body of a request is invalid.

Cannot pass "FirstName" and "LastName" parameters together with "Name." Pass either "FirstName" and "LastName" or "Name" only.

Error returned when sending a request to create a Forms document using the firstName, lastName and name parameters:

  • For Individual and Sole Proprietor contact types, provide only the firstName and lastName parameters.
  • For all other contact types, provide only the name parameter.

Cannot pass both "newClient" and "existingClientCode" parameters at the same time.

Error returned when the newClient parameter is provided in the same request as the existingClientCode parameter. The newClient parameter is used to create a new contact while the existingClientCode parameter is used for an existing contact.

  • T1: Invalid sin. Expected format is #########
  • T2: Invalid business number. Expected format is #########RC####
  • T3: Invalid account number. Expected format is T########
  • TF: Invalid tax reference number. Expected format is {expectedFormat}

Note: The expected format of the tax reference number for the Forms product varies depending on the type of contact. Here is the expected format of each type:

  • Individual and Sole proprietor = "#########"
  • Trust & Estate - Testamentary and Trust Inter-Vivos = "T########"
  • Corporation = "#########RC####"
  • Non-profit Organization = "#########RR####"
  • Partnership = "#########RZ####"
  • Other = "#########AA####"

Error returned when a request is sent to create a Forms document for a new contact and the tax reference number provided does not comply with the format expected.

The date entered in the "overridePrintedDate" parameter must be in the ISO-8601 format: YYYY-MM-DD.

Error returned when the date entered in the overridePrintedDate parameter is provided in a format other than the ISO-8601 format.

The date entered for the “sinceDate” parameter must be in the ISO-8601 format (YYYY-MM-DD HH:MM:SS +/-HH:MM).

Error returned when the date entered for the SinceDate parameter is provided in a format other than the ISO-8601 format.

The print format with ID: '{id}' was not found for {product}-{Year}.

Error returned when a print format ID does not exist for the product and version requested.

Print format ID: {id} is invalid.

Error returned when a print format ID is invalid and does not respect the structure of a GUID.

Cannot include more than 20 documents per request.

Error returned when more than 20 documents are included in a request using the "Print a batch of documents to PDF endpoint"

Cannot roll forward more than 200 documents per request.

Error returned when more than 200 documents are included in a request using the "Roll forward" endpoint.

Preparer profile with ID: '{id}' not found for {product} product.

Error returned when a preparer profile ID cannot be found for the specified product.

Electronic services identification profile with ID: '{id}' not found.

Error returned when an electronic services identification profile cannot be found.

The data type is invalid.

Error returned when an invalid data type is input with the "Print document slips to PDF" endpoint.

newClient object is required if the parameter existingClientCode isn't included in the request.

Error returned when the user does not include the object newClient while the existingClientCode is also not included in the request.

Return Status ID not found in the system.

Error returned when a return status Id that does not exist is included in the request.

Cursor parameter value is invalid.

Error returned when the value provided for the cursor parameter is invalid.

Year or period included in the request is invalid.

Error returned when the year or period covered is invalid for the Documents endpoint.

The {formName} form is invalid for this version of the {product} product.

Error returned when the form name is invalid for the product.

Return status ID {returnStatusId} is inactive and cannot be assigned to the return(s).

Error returned when attempting to set an inactive return status using the returnstatus endpoints. Only active return statuses can be assigned.

Resource {resourceId} not found in the system.

  • Error returned when using OAuth as an authentication method and targeting a resource to which the user does not have contact security access or return visibility access.

  • Error when a provided resource such as a Document Id or Return Id is not found. For example, the GUID of the document Id provided in the request body is invalid or does not belong to the product type or is deleted.

Review filter : ‘{filterName}’ is invalid.

Error returned when an invalid filter name is input with the “Review Filter” endpoint.

The '{dataType}' data type cannot be used with the '{formName}' form.

Error returned when using the data type requested is not supported for a particular form.

The '{formName}' form is not supported for printing in this version of the {product} product.

Error returned when using a form that is not supported by the version of the document.

Cannot filter the column with ID: {columnID}.

Error returned when attempting to filter on a column that does not support filtering. See the List of column IDs to use for filtering and sorting for more details.

Cannot sort the column with ID: {columnID}.

Error returned when attempting to sort on a column that does not support sorting. See the List of column IDs to use for filtering and sorting for more details.

The column with ID: {columnID} is invalid.

Error returned when attempting to sort or filter on a columnID that does not exist.

The sortOrder {sortOrderDeclared} is invalid.

Error returned when the sortOrder input is invalid.

The perPage parameter value entered must be within the accepted range (1-500)

Error returned when the value provided with the perPage parameter is not between 1 and 500.

The value used to filter on the column with id {columnID} is invalid.

Error returned when filtering on a column using a string value that does not correspond to an existing value.

The type of value entered with the '{columnID} column ID is invalid. Provide a {valueType} value type.

Error returned when filtering on a column with the wrong type of value. See the List of column IDs to use for filtering and sorting for the type of value to use per column.

Label ID is invalid.

Error returned when the Label ID in the request body is not valid and does not fit the structure of a GUID.

Label with ID: ‘{id}’ not found for [product] product.

Error returned when the Label in the request body does not exist for the product specified in the URL.

Label ID {labelId} is inactive and cannot be assigned to the return(s).

Error returned when the Label in the request body is inactive.

Label ID {labelId} is inactive and cannot be assigned to the document(s).

Error returned when attempting to assign an inactive label to the document(s).

A production label cannot be associated with a planner document.

Error returned when attempting to assign a Production label on a planner document or several documents where at least one is a planner.

The details must not contain more than 255 characters.

Error returned when attempting to set details with more than 255 characters to one or a batch of documents.

Cannot include more than 100 documents per request.

Error returned when more than 100 documents are included in a request using the "Set Details“ endpoint.

The provided documents cannot belong to different tax years.

Error returned when attempting to couple a document with another where both documents belong to different tax years.

The provided documents cannot belong to different product types.

Error returned when attempting to couple a document with another where both documents belong to different product types.

This contact type does not match the existing contact type.

Error returned when the contact type provided does not match with the contact type of the existing contact provided. This error should not occur for a new contact.

T1 planner document can only be created for {Latest}.

Error returned when attempting to create a Planner document, using the documents endpoint, in a year that does not support the Planner mode. The only year that supports the Planner mode is the latest T1 version.

Provided document IDs must be unique.

Error returned when attempting to couple a Spouse or a Dependant to a document where both hold the same document Id.

The main taxpayer is already coupled with a spouse.

Error returned when attempting to couple a Spouse to a document which already contains a main taxpayer and a spouse.

Tax reference number is already in use by another contact.

Error returned when the tax reference number is already in use by another contact.

Client code is already in use by another contact.

Error returned when the client code is already in use by another contact.

The taxpayer must be spouse or dependant.

Error returned when the property taxpayer is set to a value other than spouse or dependant.

401 Unauthorized Client error

Client error

You are not authorized to execute this action.

Error returned when an authentication is required to use an endpoint:

  • Error returned when the Web API key is not provided or is invalid when using the Web API Keys authentication method.

  • Error returned when either one of the session, access token, refresh token is not valid or the user does not have access to the API Administration security role.

403 Forbidden

Client error

Insufficient privileges to execute this request.

Error returned when the access is insufficient:

  • Error returned when the Web API key provided is of Read-only type and the action requires the user to write in the system while using the Web API Keys authentication method. For example, creating a new document requires a Read-write type Web API key.

  • Error returned when the user fails to obtain access to all the security roles required to trigger a certain endpoint while using the OAuth 2.0 authentication method. For example, retrieving the list of T1 labels while the user does not have access to the Tax – Access T1 Product security role.

The sorting functionality is currently not available. Remove the {sortColumn} parameter from the request and launch the request again.

Error returned when the sort function is currently not available. The parameters sortColumn and sortOrder must be removed from the request and it must be resent.

You do not have access to this product.

Error returned when the request targets a product for which the Web API is not active.

The user ID {id} provided is not valid.

Error returned when the user id provided is invalid.

You do not have access to the TP1 product.

Error returned when attempting to use the TP1 product when the TP1 product is not active for the site.

You do not have access to the TP-646 product.

Error returned when attempting to use the TP-646 product when the TP-646 product is not active for the site.

404 Not found

Client error

Requested endpoint not found.

Error returned when targeting an endpoint that does not exist or when including an invalid or incorrect parameters in the route of the request.

Resource not found in the system.

Error returned when creating a document for an existing contact to which the user does not have contact security access.

405 Method not allowed

Client error

The requested resource does not support http method '{Method}'.

Error returned when the HTTP verb used to send the request is not supported by the endpoint.

409 Conflict

Client error

Concurrent access. Re-submit request.

Error returned when the sent request could not be executed because of another action that occurred at the same time.

429 Too many requests

Client error

Request limit has been reached. Try again later.

Error returned when the number of requests limit per minute or second was reached.

500 Internal Server Error

Server error

Something went wrong while processing your request. We apologize for the inconvenience.

Error returned when the server could not correctly handle the request.

503 Service Unavailable

Server error

The service is currently not available. Try again later.

Error returned when the server is unable to handle the request due to a temporary overload or scheduled maintenance.