目录

Parameters

Parameter

Mandatory/Optional

Type

Description

passVersion

Mandatory for model creation

String

Version of HwWalletObject. The value contains a maximum of 64 bytes, consisting of only letters, digits, dots (.), hyphens (-), and underscores (_).

organizationName

Mandatory for model creation

String

Merchant name. The value contains a maximum of 64 bytes.

passTypeIdentifier

Mandatory for model and instance creation

String

Service ID, which can be obtained by submitting an application in AppGallery Connect.

passStyleIdentifier

Mandatory for model and instance creation

String

Model ID. Model ID must be unique across all models with the same appId. The value contains a maximum of 64 bytes, consisting of only letters, digits, dots (.), hyphens (-), and underscores (_).

organizationPassId

Mandatory for instance creation

String

ID of a pass on your server. The pass ID must be unique across all passes with the same appId. The value contains a maximum of 64 bytes, consisting of only letters, digits, dots (.), hyphens (-), and underscores (_).

serialNumber

Mandatory for instance creation

String

ID of an instance on the Huawei server. Instance ID must be unique across all instances with the same appId. The value contains a maximum of 64 bytes, consisting of only letters, digits, dots (.), hyphens (-), and underscores (_). The value of this parameter can be the same as that of organizationPassId.

fields

Optional

Fields

Information displayed on a pass.

linkDevicePass

Optional

LinkDevicePass

Parameter for enabling NFC capabilities. When linkDevicePass is specified for a pass object, the corresponding pass is NFC-enabled. Otherwise, the pass is not NFC-enabled.

Example

{
    "passVersion": "2.0",
    "organizationName": "Huawei",
    "passTypeIdentifier": "hwpass.com.huawei.wallet.loyalty",
    "passStyleIdentifier": "loyaltyModel",
    "organizationPassId": "356688116",
    "serialNumber": "23234314194",
    "fields": {},
    "linkDevicePass": {}
}