Error Objects#
The DIDWW API returns JSON:API error responses with a top-level errors array.
Each error includes a human-readable title and detail, a machine-readable
code, and the HTTP status represented as a string.
Inspect every entry in errors; a validation response can describe more than
one invalid field. The application-specific code is not necessarily the HTTP
status code. For example, validation errors use code 100 with status 422.
When supplied, source.pointer identifies the affected field or relationship
using a JSON Pointer into the request document.
See OpenAPI Reference for the typed error schema and documented status codes for each endpoint. The compressed Export file-download endpoint is not a JSON:API success response; see Download Export File.
Validation Error Object#
A validation error occurs when a request contains invalid or missing data.
Name |
Type |
Nullable |
Description |
|---|---|---|---|
|
string |
False |
Short error description. |
|
string |
False |
Detailed error description. |
|
string |
False |
Always returns |
|
string |
False |
Path to the error attribute or relationship in the request payload. |
Can’t Be Blank Error Object#
This validation error occurs when a required attribute is missing from the request.
Name |
Type |
Nullable |
Description |
|---|---|---|---|
|
string |
False |
Always returns |
|
string |
False |
Field-specific message describing which required attribute is missing. |
|
string |
False |
Always returns |
|
string |
False |
Path to the missing attribute in the request payload. |
|
string |
False |
HTTP status code |
Bad Request Error Object#
This error occurs when the request contains an invalid or not allowed parameter or attribute.
Name |
Type |
Nullable |
Description |
|---|---|---|---|
|
string |
False |
Short error description, for example |
|
string |
False |
Detailed message describing which parameter or attribute is not allowed. |
|
string |
False |
Error-specific code, for example |
|
string |
False |
HTTP status code |
Not Found Error Object#
This error occurs when the requested resource cannot be found.
Name |
Type |
Nullable |
Description |
|---|---|---|---|
|
string |
False |
Record not found. |
|
string |
False |
The record identified by |
|
string |
False |
Always returns |
|
string |
False |
HTTP status code |
Insufficient Balance Error Object#
This error occurs when your account balance is too low to complete the request.
Name |
Type |
Nullable |
Description |
|---|---|---|---|
|
string |
False |
Insufficient balance. |
|
string |
False |
Insufficient balance. |
|
string |
False |
HTTP status code or error code returned by the API, for example |
|
string |
False |
HTTP status code |
|
string |
False |
Total cost of the current order only. |
|
string |
False |
Customer balance including credit at the time of the check. |
Example#
1{
2 "errors": [
3 {
4 "title": "Insufficient balance",
5 "detail": "Insufficient balance",
6 "code": "400",
7 "status": "400",
8 "meta": {
9 "total_cost": "5.67",
10 "available_balance": "1.5"
11 }
12 }
13 ]
14}
Conflict Error Object#
This error occurs when a request conflicts with the current state of the resource (for example, when trying to delete a resource that has dependencies).
Name |
Type |
Nullable |
Description |
|---|---|---|---|
|
string |
False |
Conflict. |
|
string |
False |
Resource-specific message describing the conflict. |
|
string |
False |
Always returns |
|
string |
False |
HTTP status code |