How to use API "new account virtual"?
Hello,
Any example for this feature: https://developers.binary.com/api/#new_account_virtual
Testing default code:{ "new_account_virtual": "1", "email": "test@mydomain.com", "client_password": "abc123", "residence": "id", "verification_code": "Ag76JL9+B/g=" }
Always got this error:{ "echo_req": { "email": "test@mydomain.com", "client_password": "abc123", "verification_code": "Ag76JL9+B/g=", "new_account_virtual": "1", "residence": "id" }, "error": { "details": { "verification_code": "does not match the regex pattern ^\w{15,128}$" }, "message": "Input validation failed: verification_code", "code": "InputValidationFailed" }, "msg_type": "new_account_virtual" }
Please advise
Thank you
This discussion has been closed.
Comments
@fatoni as stated in documentation for
new_account_virtual
, you should getverification_code
from https://developers.binary.com/api/#verify_email call first@Raunak , Thanks and noted!