Delete Bank Account

DELETE

https://api.sfox.com/v1/user/bank

Disconnect a bank account linked to an end user's account.


If you would like to remove a bank account, or would like to link a different bank account to an sFOX account, you would call this endpoint with the User Authentication Token for authorization.

This will disconnect the bank account completely. After completing this action, you must link another bank account to deposit or withdraw fiat.

Request

Authentication: This endpoint requires a User Auth Token for authentication. Requests using your Connect API Key will be rejected.

Example Requests

curl -X DELETE \
-H "Authorization: Bearer ${USER_AUTH_TOKEN}"  \
'https://api.sfox.com/v1/user/bank'

Response

Responses

200: OK

This status is returned when the bank is successfully disconnected. There is no body on the response.

400: Bad Request

If no bank has been linked to the sFOX account

{
    "error": "User does not have an valid bank account"
}

Last updated