Alipay+ DocsAlipay+ Docs

registrationAlipay+ → MPP

The registration API is used by Alipay+ to register a new merchant or update an existing registration at the Mobile Payment Provider (MPP) side. For merchants that support online payments, the MPP receives the merchant information, while for merchants that support in-store payments, the MPP receives both the merchant information and the store information.

Note: In the following sections, MPP is also known as Payment Service Partner (PSP). For example, pspId refers to the unique ID that identifies an MPP. 

Structure

A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see:

Note:

Set the data type of each field (except array) as String. This means that you must use double quotation marks (" ") to enclose the field value. Examples:

  • If the data type of a field is Integer and its value is 20, set it as "20".
  • If the data type of a field is Boolean and its value is true, set it as "true". 

Request parameters

registrationRequestId String  REQUIRED

The unique ID that is assigned by Alipay+ to identify a registration request.

More information:

  • This field is an API idempotency field.For requests that are initiated with the same registrationRequestId, the MPP needs to return the same result.
  • Maximum length: 64 characters

productCodes Array<String>  REQUIRED

The list of product codes to specify the payment products that the merchant support. Valid values are:

merchantInfo MerchantRegistrationInfo object REQUIRED

The merchant information for registration, including merchant category code and registration information. 

Show child parameters

registrationNotifyUrl URL  

The URL that is provided by the merchant to receive registration notifications from the MPP. 

Note: Specified by Alipay+ if the information is passed by the merchant. 

More information:

  • Maximum length: 2048 characters

passThroughInfo String  

The information that is passed through by Alipay+ to the MPP. The value of this parameter is in a set of key-value pairs.

Note: Specified by Alipay+ if the ACQP wants to pass information to the MPP. 

More information:

  • Maximum length: 20000 characters

Response parameters

result Result object REQUIRED

The result of the business processing, including the result status, result code, and the result message.

Show child parameters

passThroughInfo String  

The information that is passed through by the MPP to Alipay+. The value of this parameter is in a set of key-value pairs.

Note: Specify this parameter if the MPP wants to pass information to the ACQP. 

More information:

  • Maximum length: 20000 characters
API Explorer

Request

Request Body

Response

Response Body

More information

How to return the result

Depending on different statuses, the result code is returned by the following rules:

  • If and only if the registration is successfully received and approved by the MPP synchronously, set the value of result.resultCode to SUCCESS.
  • If the registration information is successfully received but still in review, set the value of result.resultCode to REGISTRATION_IN_PROCESS. Note that this value can only be used by MPPs who perform the Approval Mode. Such MPPs can call the notifyRegistrationStatus API to notify Alipay+ of the registration result asynchronously. 

For more information about what is Approval Mode, see Merchant registration

Result/Error codes

CodeValueMessage
SUCCESSSThe registration is successfully accepted and approved by the MPP.
ACCESS_DENIEDFAccess is denied.
INVALID_CLIENTFThe client is invalid.
INVALID_SIGNATUREFThe signature is invalid.
KEY_NOT_FOUNDFThe key is not found.
MEDIA_TYPE_NOT_ACCEPTABLEFThe server does not implement the media type that is acceptable to the client.
METHOD_NOT_SUPPORTEDFThe server does not implement the requested HTTPS method.
NO_INTERFACE_DEFFAPI is not defined.
PARAM_ILLEGALFIllegal parameters. For example, non-numeric input, invalid date.
PROCESS_FAILFA general business failure occurred. Do not retry.
REGISTRATION_UNDER_REVIEWFA previously submitted registration is currently under review. No new registration or modification is allowed.
REPEAT_REGISTRATIONFRegistration for the merchant is repeated.
REGISTRATION_IN_PROCESSUThe registration request is successfully accepted, but the registration result is unknown.
REQUEST_TRAFFIC_EXCEED_LIMITUThe request traffic exceeds the limit.
UNKNOWN_EXCEPTIONUAn API call failed, which is caused by unknown reasons.