Parameter |
Mandatory/Optional |
Type |
Description |
|---|---|---|---|
webServiceURL |
Mandatory |
String |
NFC API URL that you provided. |
token |
Mandatory |
String |
Token, which is used to download the DevicePass package from your server. |
serialNumber |
Mandatory |
String |
Unique NFC pass ID that you defined. |
passVersion |
Optional |
String |
DevicePass package version. |
spPublickey |
Mandatory |
String |
Public key that you have provided in AppGallery Connect. NFC pass data will not be sent to the Huawei server. Therefore, the device needs to verify the signature using this parameter. |
nfcType |
Mandatory |
String |
NFC pass type, with a fixed value of 1, indicating that NFC capabilities are enabled. If the value is not 1, the NFC capabilities will be unavailable for a pass instance. |
You are advised to set serialNumber in this table to a value different from that of serialNumber of a pass instance. Your server needs to bind the two serial numbers. The passVersion parameter in this table is not associated with the passVersion parameter of a pass instance. For details, please refer to Implementing NFC Capability APIs on Your Server.