registration

POST /v1/merchants/registration

Use the registration API to register a secondary merchant with Alipay.

Request parameters

registrationRequestId String  REQUIRED

The unique ID used to identify a registration request. 

More information:

  • Maximum length: 64 characters

registrationNotifyUrl Url  

The URL provided by a merchant to receive the registration notification.  

passThroughInfo String  

A key-value structure that is only used for site transparent data transmission. 

More information:

  • Maximum length: 2048 characters

merchantInfo MerchantRegistrationInfo  REQUIRED

Merchant information

Show child parameters

productCodes Array<ProductCodeType>  REQUIRED

Product code. For in-store payments, the valid value of ProductCodeType is:

productCodes: ["IN_STORE_PAYMENT"]

storeInfo StoreRegistrationInfo  

Store information

Show child parameters

Response parameters

result Result  REQUIRED

The request result, which contains information related to the request result, such as status and error codes.

Show child parameters

passThroughInfo String  

A key-value structure that is only used for site transparent data transmission. 

More information:

  • Maximum length: 2048 characters
API Explorer

Request

URL
Request Body

Response

Response Body

More information

See the following list for important details on main parameters:

  • For a secondary merchant registration request, merchantId and referanceMerchantId must be globally unique for in-store payments. If the registration is repeated, an error of REPEAT_REGISTRATION is returned.
  • If the type of field is Enum, the value of field must be a value within the specified range of Enum. For example, attachmentType, contactType, registrationType, businessType and productCodes are of the enum type. If the value passed in is outside Enum, an error of PARAM_ILLEGAL is returned.
  • If the Mandatory field is not passed in, an error of PARAM_ILLEGAL is returned.
  • storeInfo is only required when the productCodes is IN_STORE_PAYMENT. An error of PARAM_ILLEGAL is returned if storeInfo is not passed in.
  • For String type fields, if the parameter length exceeds the specified maximum length or is less than the minimum length, an error of PARAM_ILLEGAL is returned.
  • The url of website must be a valid URL, otherwise an error of PARAM_ILLEGAL is returned.
  • The address must be an address that can be recognized by Google Maps.
  • merchantInfo.registrationDetail.attachments.file must be a URL that a file can download.
  • For merchantInfo.merchantMCC values, see MCC List for details. 

Result/Error codes

CodeValueMessage
SUCCESSSSuccess
ACCESS_DENIEDFThe access is denied.
INVALID_APIFThe called API is invalid or not active.
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 HTTP method.
PARAM_ILLEGALFIllegal parameters exist. For example, a non-numeric input, or an invalid date.
PROCESS_FAILFA general business failure has occurred. Do not retry.
REPEAT_REQ_INCONSISTENTFRepeated requests are inconsistent.
REGISTRATION_UNDER_REVIEWFA previously submitted registration is currently under review. No new registration or modification is allowed.
REPEAT_REGISTRATIONFRepeated registration for merchant
RECORD_NOT_FOUNDFThe system is not able to find the registration record for the given referenceMerchantId and/or referenceStoreId.
REQUEST_TRAFFIC_EXCEED_LIMITUThe request traffic exceeds the limit.
UNKNOWN_EXCEPTIONUAn API call failed due to unknown reasons.