About the migration from WAPI to SAPI for withdraw

Hi, today I got the notification that the WAPI will be delisted and that we need to migrate to SAPI, so I checked the documentation about /sapi/v1/capital/withdraw/apply and I noticed that the reply for the WAPI version response is :

{
“msg”: “success”,
“success”: true,
“id”:“7213fea8e94b4a5593d507237e5a555b”
}

However, the SAPI version response is:

{
“id”:“7213fea8e94b4a5593d507237e5a555b”
}

There is no mention about MSG success TRUE/FALSE or not so how can we detect that we had a failure with the withdraw request when using the SAPI version ? Can someone kindly advise ?

Hello, if you’ve received response with the withdraw id, then it means it has been successful, otherwise there would be an error message.

So there will be a msg member back in the response like previously using the WAPI or it will simply generate an exception? I am trying to get around how to update my current code from the WAPI to the SAPI withdraw (using C#)

Ok I think I finally got it :slight_smile: thank you