Error Objects
The DIDWW API returns error objects in JSONAPI format. Each error includes a title, detail, code, and status to help you diagnose issues.
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
{
"errors": [
{
"title": "Insufficient balance",
"detail": "Insufficient balance",
"code": "400",
"status": "400",
"meta": {
"total_cost": "5.67",
"available_balance": "1.5"
}
}
]
}
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 |