Data dictionary
BaseError
Field | Data type | Required | Description |
code | string | Yes | Error code. For more information, refer to the Result codes section of the specific SPI or API specification. |
errorMsg | string | No | Error description. |
BaseServiceResult
Field | Data type | Required | Description |
showReactNativePage | boolean | No | Whether to show a React Native page. Valid values are:
|
moduleName | string | No | The name of the module that contains the React Native page to be opened. The value corresponds to the string that is specified in the Specify this parameter when showReactNativePage is set to |
jsMainModulePath | string | No | The name of the main module that contains the Specify this parameter when showReactNativePage is set to |
bundleURLPath | string | No | The name of the bundle that contains all the JavaScript code for the application to run. For example, Specify this parameter when showReactNativePage is set to |
extendedInfo | Map<string, string> | No | An extended attribute that is used to provide additional information if necessary. |
error | No | Common error. Specify this parameter if the request fails. |
BaseSuccess
Field | Data type | Required | Description |
code | string | Yes | Success code. For more information, refer to the Result codes section of the specific API specification. |
msg | string | No | Success message. |
MemberInfo
Note: If the strategy request parameter is set to localUserIdOnly
, specify userId only. For other strategy values, it is recommended to specify optional parameters if they are available.
Field | Data type | Required | Description |
userId | string | Yes | The unique ID that is assigned by the super app to identify a user. |
avatar | string | No | The URL of the user's avatar. |
extendedInfo | Map<string, any> | No | An extended attribute that is used to provide additional information if necessary. This parameter is specified in key-value pairs with the following valid key:
|
MemberInfoFetchResult
MemberInfoFetchResult extends the BaseServiceResult data model and includes the following declared parameters:
Field | Data type | Required | Description |
memberInfo | No | The actual object that contains the user information. |
MemberInfoScope
Field | Data type | Required | Description |
appId | string | No | The unique ID that is assigned by Mini Program Platform to identify a mini program. This parameter is specified if the user information request is from mini programs. |
scopes | Array<string> | No | The type of user information that is requested. The only valid value is |
extendInfo | Map<string, any> | No | An extended attribute that is used to provide additional information if necessary. |
OAuthResult
OAuthResult extends the BaseServiceResult data model and includes the following declared parameters:
Field | Data type | Required | Description |
authCode | string | Yes | The authorization code that is generated by the super app. |
authErrorScopes | Map<string, string> | No | The authorization scopes that are failed to be granted. The parameter value is in the key-value format. The key is the scope and the value is a numeric error code that is specified in the Error codes section of OAuthService. For example, Specify this parameter if any requested scopes are denied. |
authSuccessScopes | Array<string> | No | The authorization scopes that are successfully granted. Specify this parameter if any requested scopes are granted. |
OAuthScopeQueryResult
OAuthScopeQueryResult extends the BaseServiceResult data model and includes the following declared parameters:
Field | Data type | Required | Description |
authorizedScopes | Array<string> | Yes | A list of scopes that the super app supports. The super app can implement and define the scopes to meet your specific requirements. However, it is recommended to follow the guidelines and implement the values that are stated in the Scopes section of OAuthService. |
PaymentRequest
Field | Data type | Required | Description |
type | PaymentType | Yes | The type of payment certificate. Valid values are:
|
paymentString | string | Yes | The payment certificate, which corresponds to the value of the type parameter. |
PaymentResult
PaymentResult extends the BaseServiceResult data model and includes the following declared parameters:
Field | Data type | Required | Description |
resultCode | string | Yes | The result code for the payment request. Valid values are:
|
resultMessage | string | No | The result message for the payment request. |
ScannerOption
Field | Data type | Required | Description |
type | ScannerCodetype | Yes | The type of code that the mini program requests to scan. Valid values are:
|
hideAlbum | boolean | Yes | Whether the mini program needs to display an album entry on the code scan page for users to read and scan from albums. Valid values are:
The value defaults to |
extendedInfo | Map<string, any> | No | An extended attribute that is used to provide additional information if necessary. |
ScannerResult
ScannerResult extends the BaseServiceResult data model and includes the following declared parameters:
Field | Data type | Required | Description |
code | string | No | The scan result, which is a code string extracted from the QR code or barcode image. Specify this parameter if the scanning operation is successful. Return |