Skip to main content

Share Account Id

This API used for merchant/partner to get user's account id.

if the user agrees to share the account id, the result will be sent to merchant/partner via Webhook Notification.


POST /binancepay/openapi/shareinfo/accountId

Request Parameters#

subMerchantIdstringNmaximum length 19The sub merchant account id, issued when sub merchant been created at Binance.
requestIdstringYletter or digit, no other symbol allowed, maximum length 32The unique ID assigned by the merchant to identify a share account id request.
webhookUrlstringNmaximum length 256. Can only start with http or https.The URL for share result notification. If the webhookUrl is passed in the parameter, the webhook url configured on the merchant platform will not take effect, and the currently passed url will be called back first.

Sample Request Body#

{    "requestId": "9109c2bd482ef6bccc819c45af104a78"}

Response Parameters#

statusstringY"SUCCESS" or "FAIL"status of the API request
codestringY-request result code, refer to
dataDataObjectN-response body, refer to
errorMessagestringNmaximum length 256

Child Attribute#


merchantIdlongYnumbermerchant Id in binance
idstringYmaximum length 19unique id generated by binance
requestIdstringY-unique id assigned by the merchant to identify a share account id request.
expireTimelongY-expire time in milli seconds. default 1 hour
qrcodeContentstringYmaximum length 256qr content info
qrcodeUrlstringYmaximum length 256qr code img link

Sample Response#

applied success#

{    "status": "SUCCESS",    "code": "000000",    "data": {        "merchantId": 352520168,        "id": "219014596974616576",        "requestId": "9109c2bd482ef6bccc819c45af104a78",        "expireTime": 1680675385835,        "qrcodeContent": "",        "qrcodeUrl": ""    }}

Result Code#

UNKNOWN_ERROR400000An unknown error occurred while processing the request.Try again later
INVALID_REQUEST400001Parameter format is wrong or parameter transferring doesn't follow the rules.Please check whether the parameters are correct.
INVALID_SIGNATURE400002Incorrect signature resultCheck whether the signature parameter and method comply with signature algorithm requirements.
INVALID_TIMESTAMP400003Timestamp for this request is outside of the time window.Sync server clock
INVALID_API_KEY_OR_IP400004API identity key not found or invalid.Check API identity key
BAD_API_KEY_FMT400005API identity key format invalid.Check API identity key.
BAD_HTTP_METHOD400006Request method not supported.Check Request method.
MEDIA_TYPE_NOT_SUPPORTED400007Media type not supported.Check Request Media type.
INVALID_REQUEST_BODY400008Request body is not a valid json object.Check Request body
MANDATORY_PARAM_EMPTY_OR_MALFORMED400100A parameter was missing/empty/null, or malformed.
INVALID_PARAM_WRONG_LENGTH400101A parameter was not valid, was empty/null, or too long/short, or wrong format.
INVALID_PARAM_WRONG_VALUE400102A parameter was not valid, the value is out of range.
INVALID_PARAM_ILLEGAL_CHAR400103A parameter was not valid, contains illegal characters
PAYMENT_INVALID_PARAM400702Invalid request parameter
MERCHANT_ACCESS_FORBIDDEN400606Account has no accessibility to this function
PAYMENT_DIRECT_DEBIT_CONTRACT_CODE_INVALID406301requestId is invalid or duplicated