Skip to main content

DeFi API Errors

Each DeFi API error response returns an object with the following parameters.


Error response schema​

The error response schema is the same for each API method.

NameTypeDescription
codeintegerError code.
typestringError type.
messagestringError message.
Sample error response
{
"code": 400,
"type": "bad_request_error",
"message": "body.from.DirectionByTokenIdFrom.refund_address is required"
}

Error codes​

Each API method contains a list of all possible errors in the Error codes section.