What error codes does Bond provide.
Bond has defined a set of error codes to help you understand the cause of an error. The error code is a category of causes. This means that two different messages can have the same error code.
Below are two examples of the create_transfer_schema
error code, both for missing fields, and each with a different message.
Amount error example
POST /api/v0/core/transfer
{
"Message": "Missing Required Field(s): 'amount'",
"Status": 400,
"Code": "create_transfer_schema",
"Type": "Request Error",
}
Card ID error example
POST /api/v0/core/transfer
{
"Message": "Missing Required Field(s): 'card_id'",
"Status": 400,
"Code": "create_transfer_schema",
"Type": "Request Error",
}
As you can see, the resolution of each error is different, but the reason for the error code is the same.
When discussing errors on the forums or with support, it is often useful to use an error code as a common point of reference.