Failure_reason in Advanced Trade API 's create order endpoint

hi team,

when I create an order with insufficient fund, the failure_reason always return ‘UNKNOWN_FAIL_REASON’ (not INSUFFICIENT_FUND), while the ‘error’ field in ‘error_response’ object has the correct value ‘INSUFFICIENT_FUND’. and ‘preview_failure_reason’ has value ‘PREVIEW_INSUFFICIENT_FUND’.
I’m curious which field should be used by design? seems ‘failure_reason’ and ‘error’ have more overlaps values. and what’s the relationship between ‘failure_reason, error’ and ‘preview_failure_reason’? thanks for helping to clarifying about this.


Hello @sp213231! Thank you for taking an interest in trying out Coinbase APIs. For the details regarding your concern, we will check on this for you with our team. We will get back to you once we have more information. Keep in touch!

1 Like

Hi @sp213231! Thank you so much for your patience as we looked into your query. As for your concern, we want to let you know that failure_reason, preview_failure_reason, and error are now deprecated. These deprecated objects will soon be removed from the documentation.

If you have any more questions/concerns, please feel free to reach out.