Autoflex
Was dit behulpzaam?

Error codes

What are the HTTP error codes for the API?

General error codes

Below a list of all the different error codes for the API per VERB

General

General error codes regarding the API

NL: Algemene foutmeldingen

ReasonHTTP codeError message
Internal error, create Jira Issue500Internal server error
Query parameter provided more than once400Invalid request, query parameter is provided more than once: ...
Query parameter not supported400Invalid request, query parameter is not supported: ...
Endpoint does not exist (spelling)400Invalid endpoint: ...
Method not supported400Method: ... not supported for endpoint: ...

POST

NL: Toevoegen van 1 item

ReasonHTTP codeError message
Request body empty400Empty body
Request body invalid400Body is not valid JSON
Field not in model403Field: .... not found in model
Readonly field403Field: .... is readonly do not supply in request
Required field403Field: .... is required and not supplied in request
Primary ID field supplied403Field: .... is primary ID do not supply in request
Related ID not found404Field: .... value: .... ID not found
Required element403Field: ... minimum 1 element is required in array
Field value length too long for datatype varchar403Field: .... valuelength: .... too long for datatype: varchar: ....
Field value length too long for datatype text403Field: .... valuelength: .... too long for datatype: text: ....
Field value has a wrong format for datatype timestamp403Field: .... has an invalid value: .... for datatype: timestamp(ISO 8601)
Field value is invalid for datatype float 8403Field: .... has an invalid value: .... for datatype: float8
Field value is invalid for datatype int4403Field: .... has an invalid value: .... for datatype: int4
Field value is invalid for datatype varchar403Field: .... has an invalid value: .... for datatype: varchar
Field value is invalid for datatype bytea403Field: .... has an invalid value: .... for datatype: bytea
Duplicate Unique value409Field: .... value: .... has a duplicate illegal value
Field not valid according to custom_validation403Field: ... has an invalid value: ... for validation: ...
Field date must be after date of other field403Field: .... value: .... date must be after Field: ... value: ...

GET (Single record)

NL: Ophalen van 1 item

ReasonHTTP codeError message
Field not in model403Field: .... not found in model
Primary ID field invalid403Primary ID is invalid
Primary ID field not found404Field: .... value: .... not found
No Primary ID provided400These parameter(s): ... , ... are required

PUT

NL: Updaten van 1 item

ReasonHTTP codeError message
Request body empty400Empty body
Request body invalid400Body is not valid JSON
Primary ID is not an valid ID400Primary ID is not an valid ID
No Primary ID provided403No Primary ID provided
Field not in model403Field: .... not found in model
Readonly field403Field: .... is readonly do not supply in request
Required field403Field: .... is required and not supplied in request
Required field is empty403Field: .... is required and cannot be empty
Related ID not found404Field: .... value: .... ID not found
Required element403Field: ... minimum 1 element is required in array
Primairy id field not found in data404Field: .... value: .... not found
Field value length too long for datatype varchar403Field: .... valuelength: .... too long for datatype: varchar: ....
Field value length too long for datatype text403Field: .... valuelength: .... too long for datatype: text: ....
Field value has a wrong format for datatype timestamp403Field: .... has an invalid value: .... for datatype: timestamp(ISO 8601)
Field value is invalid for datatype float 8403Field: .... has an invalid value: .... for datatype: float8
Field value is invalid for datatype int4403Field: .... has an invalid value: .... for datatype: int4
Field value is invalid for datatype varchar403Field: .... has an invalid value: .... for datatype: varchar
Field not valid according to custom_validation403Field: .... has an invalid value: .... for validation: ....
Duplicate Unique value409Field: .... Value: .... has a duplicate illegal value
System record409This is a system record, fields cannot be changed
Blocked record409This is a blocked record, fields cannot be changed, only update: is_blocked
Archived record409This is an archived record, fields cannot be changed, only update: is_archived
Field value cannot be updated409Cannot update ....

GET (multiple records)

NL: Opvragen van meerdere items

ReasonHTTP codeError message
No required parameters400These parameter(s): ... , ... are required
Field not in model403Field: .... not found in model
Query parameter not supported400Invalid request, query parameter is not supported: ...
Parameter Page must be greater than 0400Parameter invalid page value must be greater than 0

DELETE

NL: Verwijderen van 1 item

ReasonHTTP codeError message
Primary ID is not an valid ID400Primary ID is not an valid ID
No Primary ID provided403No Primary ID provided
Primary id field not found in data404Field: .... value: .... not found
Related ID in use at ...406Field: .... in use at: ....
Record is a system record, cannot be deleted409This is a system-record, record cannot be deleted

Specific error messages per endpoint

ReasonHTTP codeError message
GET /authenticate
Not logged in401Not authorized
Logged out, token is invalid401Not authorized
external user can not login to autoflex_cloud and new app403An external user cannot login, contact the autoflex servicedesk
Gebruiker heeft geen emailadres400Geen emailadres bekend voor userid ' + bodyObject'userid'
Gebruiker heeft een ongelding emailadres403Field: emailaddress value: .... not valid
GET /authenticate/acces
Not logged in401Not authorized
Logged out, token is invalid401Not authorized
GET /authenticate/component
Not logged in401Not authorized
Logged out, token is invalid401Not authorized
GET /authenticate/logout
Not logged in401Not authorized
Logged out, token is invalid200Not authorized
GET /authenticate/modules
Not logged in401Not authorized
Logged out, token is invalid401Not authorized
GET /authenticate/fingerprint
Not logged in401Missing authorization
Logged out, token is invalid401Not authorized
POST /authenticate/forgotpassword
Not logged in401Token invalid
Logged out, token is invalid401Token invalid
GET /document/info
Document not available403No external document found
POST/PUT/DELETE /orderline
Record can not be updated, because of status parent409... is ..., cannot add/update/delete
POST/PUT/DELETE /order
Record can not be updated, because of status409... is ..., cannot add/update/delete
GET /contact/checkaddress
Postcode not in format 1234 AB403Field: .... has an invalid value: .... for validation: ....
Postcode empty, CountryId empty403Field: ... is required and not supplied in request
Huisnummer is no number403Field: .... has an invalid value: .... for datatype: int4
Length larger than 10 for fields: Postcode, Huisnummer, toevoeging403Field: ... valuelength: ... too long for type ... (...)
Country id no valid value custumvalidation403Field: .... has an invalid value: .... for validation: ....
POST /vehicleroleline
One vehicle can only have one owner403Vehicleroleline is invalid a Vehicle can only have one owner
POST /contactcommunication
is_prefered_email meer dan 1 keer voor type email409Field: is_prefered_email value: 1 has a duplicate illegal value
is_prefered_email heeft waarde 1 voor niet type email (=4)409Field: is_prefered_email value: 1 is not alowed
DELETE /vehicle
Published vehicle cannot be deleted, stop publishing first403Vehicle with id: ... has publish status: published delete not allowed
PUT /vehicle
Required field license_plate updaten via formatlicenseplate409The change of the licenseplate is not allowed via put, use /updatelicenseplate.
GET /empoyee/email
No username in the request406Value username missing.
PUT /vehicle/publishstart
Not all required fields are filled in403Field: tax_kind value: null is required vehicle not published
Vehicle site is nog filled in403Vehicleadvertisementsite is required, vehicle not published
GET /vehicle/publishstart
Not all required fields are filled in403Field: tax_kind value: null is required vehicle not published
Vehicle site is nog filled in403Vehicleadvertisementsite is required, vehicle not published
POST/PUT /flatrateline
article_id + quantity gevuld en geen turnovergroup_id gevuld403Field: turnover_group_id is required and not supplied in request
article_id gevuld en is_manual_input = 1403Field: is_manual_input has an invalid value 1
is_no_article_price = 1 en geen article_id gevuld403Field: is_no_article_price has an invalid value 1
is_no_article_price = 1 en geen price of price = 0403Field: price is required and not supplied in request
article_number gevuld zonder is_manual_input en zonder article_id403Field: article_id is required and not supplied in request
article_numer en article_id gevuld en is_manual_input = 1403Field: is_manual_input has an invalid value 1
sort_order verkeerde waarde (bestaat al)403Field: sort_order has an invalid value ...
article_id gevuld en geen article_number gevuld403Field: article_number is required and not supplied in request
article_number gevuld maar hoort niet bij article_id403Field: article_number has an invalid value ...
unit_type is gevuld, article_kind niet403Field: article_kind is required and not supplied in request
article_kind is gevuld unit_type niet403Field: unit_type is required and not supplied in request
GET model/{name}
Response body invalid400Body is not valid JSON