Antom, leading provider of tailored payment solutionsAntom, leading provider of tailored payment solutions

alipay.intl.user.query.getUserInfo

1The API is used by the merchant to get user info from the authSite.

Request

Service address

Environment

URL

Production

https://open.alipaymo.com/api/alipay/intl/user/query/getUserInfo.htm

1 Request Partameter

1.1 Header

NoNameDescriptionTypeLengthRequiredSample
1versionAPI versionstring8ME2.0.0
2functionAPI interfacestring128MEalipay.intl.function
3clientIdClient IDstring32ME211020000000000000044
4reqTimeRequest timedatetime/M2001-07-04T12:08:56+05:30
5reqMsgIdRequest message IDstring64ME1234567asdfasdf1123fda
6reserveReserved for future implementationstring256O{}

7

accessToken

access token

string

64

M

281003132DLOSEqtdlwpxHP2X7xmu649

1.2 Body

NoNameDescriptionTypeLengthRequiredSample
1

merchantId

merchant Id

String

64

M

2182400000001037

2 Response Parameter

2.1 Header

NoNameDescriptionTypeLengthRequiredSample
1versionAPI versionstring8ME2.0.0
2functionAPI interfacestring128MEalipay.intl.function
3clientIdClient IDstring32ME211020000000000000044
4reqTimeRequest timedatetime/M2001-07-04T12:08:56+05:30
5reqMsgIdRequest message IDstring64ME1234567asdfasdf1123fda
6reserveReserved for future implementationstring256O{}

7

accessToken

access token

string

64

M

281003132DLOSEqtdlwpxHP2X7xmu649

2.2 Body

NoNameDescriptionTypeLengthRequiredSample
1

resultInfo

the result informatio

Result

/

M


{

"resultStatus": "A",

"resultCode": "ACCEPT",

"resultCodeId": "00010100",

"resultMsg": "ACCEPT"

}

2

mobileNo

mobile info

MobileNoInfo

/

M

3 Addtional Information

3.1 Result

NoNameDescriptionTypeLengthRequiredSample

Remarks

1

resultStatus

Result status

string

2

M

U

The status of the request can be:
S: success,F: failure,U: unknown
Can be added if these 3 statuses are insufficient for business requirements

2

resultCodeId

Result code Id

string

8

M

00000000

3

resultCode

resultCode

String

64

M

SUCCESS

When resultStatus is S, this field must be SUCCESS. 
When resultStatus F or U, the field can be a global return code can also return code to the business. 
If the return code is business related, refer the service interface element for more information.

4

resultMsg

Result message

string

256

O

Unexpected system error

When the result is S, this field may be empty.
When the result is F or U, description of error must be provided.

3.2 MobileNoInfo

NoNameDescriptionTypeLengthRequiredSample

Remarks

1

phoneNo

phone number

string

28

M

13564582896

2

countryCode

country code

string

8

M

86

4 Request Sample

copy
{
    "request": {
        "body": {
            "merchantId": "2182400000001037"
        },
        "head": {
            "function": "alipay.intl.user.query.getUserInfo",
            "version": "2.0.0",
            "accessToken": "281003132DLOSEqtdlwpxHP2X7xmu649",
            "reqMsgId": "20200401-tongyao-000000005",
            "reqTime": "2020-02-19T15:55:58-08:00",
            "clientId": "5C5XSR3USG0CQJ05",
            "reserve": "none"
        }
    },
    "signature": "testing_signature"
}

5 Response Sample

copy
{
    "response": {
        "head": {
            "clientId": "5C5XSR3USG0CQJ05",
            "function": "alipay.intl.user.query.getUserInfo",
            "accessToken": "281003132DLOSEqtdlwpxHP2X7xmu649",
            "reqMsgId": "20200401-tongyao-000000005",
            "respTime": "2020-04-03T06:31:35+00:00",
            "version": "2.0.0"
        },
        "body": 
                 "mobileNo": {
                "countryCode": "86",
                "phoneNo": "13564582896"
            },
            "resultInfo": {
                "resultCode": "SUCCESS",
                "resultCodeId": "00000000",
                "resultMsg": "success.",
                "resultStatus": "S"
            }
        }
    },
    "signature": "TopoTOtIqj6kgM4vT9gWvKIt9GfynnDanKdcUZTzMzOD0sX9Y/xft5rrsVvaIHfzMTvxMCvoLXhCggEazNXFpDqnPiZdwfwkK+deFNctlBTI5/PuVj/W88dV3ba3QQyDrbcCkpJ09tbs6iW0Yt1iexbCOgQjQ+UokAqiJyZDLPRsE7t657kJ4qyYRqi6qNLXpR4cbqboAe4Xfoc7UgpY379gh999FL7LPMjhWeayoKfYCtdG2ikeDhOiAI9LbUGxZwL/zK5oCUn0ftFypDQl+WC6GTN5KHMQ/MbLvIoKTFhf+ghQd18jK/mm7otzEvINBKEtBbb03ex+qSYU9bqHNg=="
}

6 Result Info

6.1 Functional Logic Result Code

NO

ResultCodeIdResultCodeResultStatusRemarks

1

12002005USER_NOT_EXIST

F

User does not exist

2

12002006USER_STATUS_ABNORMAL

F

User status is not normal.

3

00000019PROCESS_FAIL

F

General business failure.

6.2 Basic Result Code

NoResultCodeIdResultCodeResultStatusRemarks
100000000SUCCESSSSuccess
200000019PROCESS_FAILFGeneral business failure. No retry.
300000901UNKNOWN_EXCEPTIONUAPI failed due to unknown reason.
400000004PARAM_ILLEGALFIllegal parameters. For example, non-numeric input, invalid date.
500000007INVALID_SIGNATUREFSignature is invalid.
600000008KEY_NO_FOUNDFKey is not found.
700000013NO_INTERFACE_DEFFAPI is not defined
800000014API_IS_INVALIDFAPI is invalid (or not active)
900000016OAUTH_FAILEDFoAuth authentication failed
1000000021ACCESS_DENIEDFAccess denied
1112014152CLIENT_FORBIDDEN_ACCESS_APIFClient is not authorized to use this API
1212014155UNKNOWN_CLIENTFUnknown client
1312014156INVALID_CLIENT_STATUSFInvalid client status
1400000024REQUEST_TRAFFIC_EXCEED_LIMITFRequest traffic exceed limit.