目录

IAP

has.queryIapEnvStatus

has.queryIapEnvStatus(Object object)

Checks whether the signed-in account is located in a country or region where IAP Kit is available. Currently, only the Chinese mainland is supported.

Required permissions: Before development, you need to configure the client ID, configure the signing certificate fingerprint, enable merchant service, and enable and activate IAP Kit.

Since: 1.0.5

Parameters

The input parameter is an object containing the following fields.

Parameter Type Mandatory Description
success function No Callback triggered when the API call is successful.
fail function No Callback triggered when the API call fails.
complete function No Callback triggered when the API call is complete, regardless of success or failure.

Error code information

Error Code Error Message
401 Parameter error.
1001860000 The operation was canceled by the user.
1001860001 System internal error.
1001860004 Too frequent API calls.
1001860005 Network connection error.
1001860050 The HUAWEI ID is not signed in.
1001860054 The country or region of the signed-in HUAWEI ID does not support IAP.

Error codes

Error Code Error Message
50000201

queryIapEnvStatus error.

For details, see ArkTS API Error Codes.

Example:

has.queryIapEnvStatus({
  success: () => {
    console.info('queryIapEnvStatus success');
  },
  fail: (err) => {
    console.error('queryIapEnvStatus fail', err);
  },
  complete: (res) => {
    console.info('queryIapEnvStatus complete', res);
  }
});

has.createIap

has.createIap(Object object)

Initiates a purchase. Consumables, non-consumables, and auto-renewable subscriptions are supported. After a user initiates a purchase for a product already configured in AppGallery Connect, this API brings up the checkout screen of IAP to show information such as the product name and price.

Required permissions: Before development, you need to configure the client ID, configure the signing certificate fingerprint, enable merchant service, and enable and activate IAP Kit.

Since: 1.0.5

Parameters

The input parameter is an object containing the following fields.

Parameter Type Mandatory Description
productId string Yes ID of the product to purchase. The product IDs come from the product information you have configured in AppGallery Connect. For details, see Configuring Products.
productType number Yes

Type of products to be queried.

0: consumable

1: non-consumable

2: auto-renewable subscription

3: non-renewable subscription (Since: 1.0.10)

developerPayload string No

Information provided by the merchant.

If this parameter contains a value, it will be returned to the app unchanged in the payment-success callback result.

Note: The value length range is [0, 256].

reservedInfo string No

Additional information passed via a JSON string in key-value format.

Example: let reservedInfo = "{\"key1\":\"value1\",\"key2\":\"value2\"}";

Note: This parameter is reserved for you to pass additional information. You can choose to set it or not.

promotionalOfferId string No Promotional offer ID. The value is the promotion identifier set by you when configuring product information in the AppGallery Connect. For details, see Setting Promotional Prices. The parameter is valid only when being passed with jwsRepresentation.
applicationUserName string No Obfuscated string that uniquely identifies a user's account. This parameter can be passed when promotionalOfferId is passed.
jwsRepresentation string No Signature data containing purchase parameters, such as the promotion information, in JWS format. For details, see Generating a Signed Purchase Parameter for a Promotion.
success function No Callback triggered when the API call is successful.
fail function No Callback triggered when the API call fails.
complete function No Callback triggered when the API call is complete, regardless of success or failure.

Return value of success

Parameter Type Description
purchaseData string JSON string containing the payment result. For details about the parameters, see PurchaseData.

Error code information

Error Code Error Message
102 Param error.
401 Parameter error.
1001860000 The operation was canceled by the user.
1001860001 System internal error.
1001860002 The application is not authorized.
1001860003 Invalid product information.
1001860004 Too frequent API calls.
1001860005 Network connection error.
1001860007 The app to which the product belongs is not released in a specified location.
1001860051 Failed to purchase a product because the user already owns the product.
1001860054 The country or region of the signed-in HUAWEI ID does not support IAP.
1001860056 The user is not allowed to make purchase.
1001860059 Invalid promotional offer id.
1001860060 Invalid purchase signature.
50000301 createIap error.

Example:

has.createIap({
  // Replace it with the actual product ID.
  productId: 'product_id',
  productType: 0,
  developerPayload: '',
  reservedInfo: JSON.stringify({ key1: 'value1' }),
  promotionalOfferId: '',
  applicationUserName: '',
  jwsRepresentation: '',
  success: (res) => {
    console.info('createIap success', res);
  },
  fail: (err) => {
    console.error('createIap fail', err);
  },
  complete: (res) => {
    console.info('createIap complete', res);
  }
});

has.finishIap

has.finishIap(Object object)

Finalizes the purchase transaction. This API is called after the purchased product is delivered.

Required permissions: Before development, you need to configure the client ID, configure the signing certificate fingerprint, enable merchant service, and enable and activate IAP Kit.

Since: 1.0.5

Parameters

The input parameter is an object containing the following fields.

Parameter Type Mandatory Description
productType number Yes

Type of products to be queried.

0: consumable

1: non-consumable

2: auto-renewable subscription

3: non-renewable subscription (Since: 1.0.10)

purchaseToken string Yes

Purchase token returned in the purchase order.

For a single purchase, the value corresponds to a purchase order. For a subscription purchase, the value corresponds to a subscription ID.

The value is returned by the createIap or queryIap API.

purchaseOrderId string Yes

Order ID returned after a purchase.

The value is returned by the createIap or queryIap API.

success function No Callback triggered when the API call is successful.
fail function No Callback triggered when the API call fails.
complete function No Callback triggered when the API call is complete, regardless of success or failure.

Error code information

Error Code Error Message
102 Param error.
401 Parameter error.
1001860001 System internal error.
1001860002 The application is not authorized.
1001860004 Too frequent API calls.
1001860005 Network connection error.
1001860050 The HUAWEI ID is not signed in.
1001860052 The purchase cannot be finished because the user has not paid for it.
1001860053 The purchase has been finished and cannot be finished again.
1001860054 The country or region of the signed-in HUAWEI ID does not support IAP.
50000401 finishIap error.

Example:

has.finishIap({
  productType: 0,
  // Replace it with the actual purchaseToken.
  purchaseToken: '***',
  // Replace it with the actual purchaseOrderId.
  purchaseOrderId: '***',
  success: () => {
    console.info('finishIap success');
  },
  fail: (err) => {
    console.error('finishIap fail', err);
  },
  complete: (res) => {
    console.info('finishIap complete', res);
  }
});

has.queryIap

has.queryIap(Object object)

Queries information about the purchased products, including consumables and non-consumables. Only one type of products can be queried per API call.

Required permissions: Before development, you need to configure the client ID, configure the signing certificate fingerprint, enable merchant service, and enable and activate IAP Kit.

Since: 1.0.5

Parameters

The input parameter is an object containing the following fields.

Parameter Type Default Value Mandatory Description
productType number - Yes

Type of products to be queried.

0: consumable

1: non-consumable

2: auto-renewable subscription

3: non-renewable subscription (Since: 1.0.10)

continuationToken string - No

Data location flag for a query in pagination mode.

This parameter is optional for the first query. If a user owns a large number of products and a continuationToken is returned in the response, the app must call this API again and pass the received continuationToken. If not all products have been retrieved, additional calls must continue to be made until no continuationToken is returned, indicating that all products have been fetched.

queryType number 1 No

Query type. The default value is 1.

0: all purchase records of consumables, non-consumables, or auto-renewable subscriptions

1: all purchased consumables, non-consumables, or auto-renewable subscriptions that have not been delivered

2: purchased non-consumables or active auto-renewable subscriptions

In the sandbox environment:

If productType is set to 1, only information about the purchased non-consumables that have not been delivered will be returned.

If productType is set to 2, only information about the active auto-renewable subscriptions is returned.

success function - No Callback triggered when the API call is successful.
fail function - No Callback triggered when the API call fails.
complete function - No Callback triggered when the API call is complete, regardless of success or failure.

Return value of success

Parameter Type Description
purchaseDataList string[] Array of PurchaseData strings.
continuationToken string

Data location flag for a query in pagination mode.

If a user owns a large number of products and a continuationToken is returned in the response, the app must call this API again and pass the received continuationToken. If not all products have been retrieved, additional calls must continue to be made until no continuationToken is returned, indicating that all products have been fetched.

Error code information

Error Code Error Message
102 Param error.
401 Parameter error.
1001860001 System internal error.
1001860002 The application is not authorized.
1001860004 Too frequent API calls.
1001860005 Network connection error.
1001860050 The HUAWEI ID is not signed in.
1001860054 The country or region of the signed-in HUAWEI ID does not support IAP.
50000501 queryIap error.

Example:

has.queryIap({
  productType: 0,
  queryType: 1,
  success: (res) => {
    console.info('queryIap success', res);
  },
  fail: (err) => {
    console.error('queryIap fail', err);
  },
  complete: (res) => {
    console.info('queryIap complete', res);
  }
});

has.queryIapProducts

has.queryIapProducts(Object object)

Obtains the product details configured in AppGallery Connect.

Required permissions: Before development, you need to configure the client ID, configure the signing certificate fingerprint, enable merchant service, and enable and activate IAP Kit.

Since: 1.0.10

Parameters

The input parameter is an object containing the following fields.

Parameter Type Mandatory Description
productType number Yes

Type of products to be queried.

0: consumable

1: non-consumable

2: auto-renewable subscription

3: non-renewable subscription

productIds string[] Yes

ID list of products to be queried.

Each product ID must exist and be unique in your app.

The product IDs come from the product information you have configured in AppGallery Connect. For details, see Configuring Products.

Note: A maximum of 200 product IDs can be queried at a time. If you need to query more items, it is advised to split the requests into batches.

success function No Callback triggered when the API call is successful.
fail function No Callback triggered when the API call fails.
complete function No Callback triggered when the API call is complete, regardless of success or failure.

Return value of success

Product array.

Error code information

Error Code Error Message
102 Param error.
401 Parameter error.
1001860001 System internal error.
1001860002 The application is not authorized.
1001860003 Invalid product information.
1001860004 Too frequent API calls.
1001860005 Network connection error.
1001860007 The app to which the product belongs is not released in a specified location.
1001860050 The HUAWEI ID is not signed in.
1001860054 The country or region of the signed-in HUAWEI ID does not support IAP.
50000901 queryIapProducts error.

Example:

has.queryIapProducts({
  productType: 0,
  productIds: ['xxx-1', 'xxx-2'],
  success: (res) => {
    console.info('queryIapProducts success', res);
  },
  fail: (err) => {
    console.error('queryIapProducts fail', err);
  },
  complete: (res) => {
    console.info('queryIapProducts complete', res);
  }
});

has.isIapSandboxActivated

has.isIapSandboxActivated(Object object)

Checks whether the sandbox environment is available.

Required permissions: Before development, you need to configure the client ID, configure the signing certificate fingerprint, enable merchant service, and enable and activate IAP Kit.

Since: 1.0.10

Parameters

The input parameter is an object containing the following fields.

Parameter Type Mandatory Description
success function No Callback triggered when the API call is successful.
fail function No Callback triggered when the API call fails.
complete function No Callback triggered when the API call is complete, regardless of success or failure.

Return value of success

A boolean value, indicating whether the sandbox testing capability is active.

Error code information

Error Code Error Message
401 Parameter error.
1001860001 System internal error.
1001860002 The application is not authorized.
1001860004 Too frequent API calls.
1001860005 Network connection error.
1001860050 The HUAWEI ID is not signed in.
1001860054 The country or region of the signed-in HUAWEI ID does not support IAP.
1001860057 The app provision type is not debug.
1001860058 The HUAWEI ID is not test account.
50000701 isIapSandboxActivated error.

Example:

has.isIapSandboxActivated({
  success: (res) => {
    console.info('isIapSandboxActivated success', res);
  },
  fail: (err) => {
    console.error('isIapSandboxActivated fail', err);
  },
  complete: (res) => {
    console.info('isIapSandboxActivated complete', res);
  }
});

has.showIapManagedSubscriptions

has.showIapManagedSubscriptions(Object object)

Redirects to the subscription status screen or the subscription details screen.

Required permissions: Before development, you need to configure the client ID, configure the signing certificate fingerprint, enable merchant service, and enable and activate IAP Kit.

Since: 1.0.10

Parameters

The input parameter is an object containing the following fields.

Parameter Type Mandatory Description
uiParameter UIWindowParameter Yes UIWindowParameter object, which contains the window display mode.
groupId string No

Subscription group ID, which you have defined in AppGallery Connect. For details, see Auto-renewable Subscriptions.

NOTE

- If groupId is passed, the subscription details screen will be displayed.

- If groupId is not passed, the subscription status screen will be displayed. If a user has only one subscription data record in an app, the screen for showing the details of this subscription will be displayed.

success function No Callback triggered when the API call is successful.
fail function No Callback triggered when the API call fails.
complete function No Callback triggered when the API call is complete, regardless of success or failure.

Error code information

Error Code Error Message
102 Param error.
401 Parameter error.
1001860001 System internal error.
1001860002 The application is not authorized.
1001860004 Too frequent API calls.
1001860005 Network connection error.
1001860050 The HUAWEI ID is not signed in.
1001860054 The country or region of the signed-in HUAWEI ID does not support IAP.
50000801 showIapManagedSubscriptions error.

Example:

has.showIapManagedSubscriptions({
  uiParameter: {
    windowScreenMode: 1
  },
  groupId: 'xxx',
  success: () => {
    console.info('showIapManagedSubscriptions success');
  },
  fail: (err) => {
    console.error('showIapManagedSubscriptions fail', err);
  },
  complete: (res) => {
    console.info('showIapManagedSubscriptions complete', res);
  }
});

PurchaseData

Represents the order information and subscription status information in JWS format.

Since: 1.0.5

Parameter Type Mandatory Description
type number Yes

Product type.

0: consumable

1: non-consumable

2: auto-renewable subscription

3: non-renewable subscription (Since: 1.0.10)

jwsPurchaseOrder string No Order information in JWS format. Follow the instructions in Verifying the Signature in the Returned Result to decode and perform signature verification for the returned result to obtain purchase data in JSON format. Check the parameters in the JSON string in PurchaseOrderPayload.
jwsSubscriptionStatus string No Subscription status information in JWS format. You can decode the signature verification by referring to Verifying the Signature in the Returned Result to obtain the JSON string containing the subscription status information.

PurchaseOrderPayload

Represents the purchase order model, which supports consumables, non-consumables, and auto-renewable subscriptions.

Since: 1.0.5

Parameter Type Mandatory Description
environment string Yes

Environment type.

- NORMAL: normal environment

- SANDBOX: sandbox environment

purchaseOrderId string Yes Order ID of a purchase.
purchaseToken string Yes Purchase token. In a consumable/non-consumable purchase, each purchase token matches a specific order. In a subscription purchase, each purchase token matches a subscription ID.
applicationId string Yes App ID.
productId string Yes Product ID.
productType string Yes

Product type. The options are as follows:

0: consumable

1: non-consumable

2: auto-renewable subscription

3: non-renewable subscription (Since: 1.0.10)

purchaseTime number Yes

Purchase time (UTC timestamp, in milliseconds).

If the purchase is not complete, this parameter is left empty.

finishStatus string No

Delivery status. The options are as follows:

1: The product is delivered.

2: The product is not delivered.

needFinish boolean No

Whether the delivery should be acknowledged to complete the purchase process. The options are as follows:

- true: Delivery acknowledgement is required.

- false: Delivery acknowledgement is optional.

price number Yes Price, in cents.
currency string Yes Currency. For details, please refer to the ISO 4217 standard. For example, CNY, USD, and MYR.
developerPayload string No Information stored on the merchant side, which an app passes when calling the payment API.
purchaseOrderRevocationReasonCode string No

Reason for revoking an order.

0: others.

1: order revoked at the user's request.

revocationTime number No Order revocation time (UTC timestamp, in milliseconds).
offerTypeCode string No

Offer type.

1: introductory offers for new users.

2: promotional offers for specific user groups.

offerId string No Promotional offer ID.
countryCode string Yes Country/region code, which is used to identify the country or region. For details, please refer to the ISO 3166 standard.
signedTime number Yes Signature time (UTC timestamp, in milliseconds).

SubGroupStatusPayload

Represents the subscription status information related to a subscription group.

Since: 1.0.5

Parameter Type Mandatory Description
environment string Yes

Environment type.

- NORMAL: normal environment

- SANDBOX: sandbox environment

applicationId string Yes App ID.
packageName string Yes App package name.
subGroupId string Yes Subscription group ID.
lastSubscriptionStatus object No Final subscription status (SubscriptionStatus) within a subscription group. For example, if a user switches from subscription A to B and then to C, this parameter indicates the status of subscription C.
historySubscriptionStatusList object[] No List of all historical subscription statuses (SubscriptionStatus) within a subscription group. For example, if a user switches from subscription A to B and then to C, this parameter indicates the statuses of subscriptions C, B, and A.

SubscriptionStatus

Represents subscription status information.

Since: 1.0.5

Parameter Type Mandatory Description
subGroupGenerationId string Yes

Subscription group generation ID.

- This ID remains unchanged when a user switches between different subscription products in the same group.

- This ID will change when a user purchases the product again after the subscription expires and the retention period ends.

subscriptionId string Yes

Subscription ID. The ID will change when:

- A user switches from a subscription to another.

- A user purchases the product again after the subscription expires and the retention period ends.

purchaseToken string Yes Purchase token. In a consumable/non-consumable purchase, each purchase token matches a specific order. In a subscription purchase, each purchase token matches a subscription ID.
status string Yes

Subscription status.

1: active.

2: expired.

3: billing retry.

5: revoked.

expiresTime number Yes Expiration time of an auto-renewable subscription. The value is a UTC timestamp, in milliseconds.
lastPurchaseOrder object No Latest purchase order for a subscription. For details about the parameters contained in the purchase order, see PurchaseOrderPayload.
recentPurchaseOrderList object[] No List of the recently purchased subscriptions, including the purchase orders generated upon renewal and balance conversion. For details about the parameters contained in the purchase order, see PurchaseOrderPayload.
renewalInfo object No Latest future billing plan of the current subscription. For details about the parameters contained in the billing plan, see SubRenewalInfo.

SubRenewalInfo

Represents the renewal information about a subscription.

Since: 1.0.5

Parameter Type Mandatory Description
environment string Yes

Environment type.

- NORMAL: normal environment

- SANDBOX: sandbox environment

subGroupGenerationId string Yes

Subscription group generation ID.

- This ID remains unchanged when a user switches between different subscription products in the same group.

- This ID will change when a user purchases the product again after the subscription expires and the retention period ends.

nextRenewPeriodProductId string No ID of the product to be renewed in the next billing cycle.
productId string Yes ID of the product that is currently active.
autoRenewStatusCode string Yes

Auto-renewal status.

0: disabled.

1: enabled.

hasInBillingRetryPeriod boolean Yes

Whether the system is still attempting to retry the billing.

- true: yes

- false: no

priceIncreaseStatusCode string No

Price increase status code.

1: The user has not agreed to a price increase.

2: The user has agreed to a price increase.

offerTypeCode string No

Offer type.

1: introductory offers for new users.

2: promotional offers for specific user groups.

offerId string No Promotional offer ID.
renewalPrice number No Price for the next renewal, in currency sub-units. The specific sub-unit, like cents, varies by currency. This field is not returned if the subscription is revoked.
currency string No Currency. For details, please refer to the ISO 4217 standard. For example, CNY, USD, and MYR.
renewalTime number No Renewal time (UTC timestamp, in milliseconds).
expirationIntent string No

Reason for subscription renewal failure.

1: The user canceled the subscription.

2: The product is invalid.

3: The subscription agreement is invalid.

4: An exception occurred during billing.

5: The user did not agree to the price increase.

6: The failure reason is unknown.

UIWindowParameter

UI window parameters.

Since: 1.0.10

Parameter Type Mandatory Description
windowScreenMode number Yes

UI window mode.

1: pop-up.

2: full-screen.

Product

Details of a product.

Since: 1.0.10

Parameter Type Mandatory Description
id string Yes Product ID.
type number Yes

Product type.

0: consumable

1: non-consumable

2: auto-renewable subscription

3: non-renewable subscription

name string Yes

Product name, which you set when adding a product.

The name is displayed on the checkout screen of IAP Kit.

description string Yes Product description, which you set when adding a product.
price string Yes

Displayed price of a product, in the format Currency+Price, for example, EUR 0.15.

In some countries or regions, the value format is Currency symbol+Price, for example, ¥0.15 in the Chinese mainland.

The price includes the tax.

- For a consumable or non-consumable with a promotional price, this parameter indicates the promotional price. If the product has no promotional price, this parameter indicates its original price.

- For an auto-renewable subscription, this parameter indicates its original price.

Note: This parameter has been deprecated. You are advised to use localPrice instead.

localPrice string No

Displayed price of a product, in the format Currency+Price, for example, EUR 0.15.

In some countries or regions, the value format is Currency symbol+Price, for example, ¥0.15 in the Chinese mainland.

The price includes the tax.

- For a consumable or non-consumable with a promotional price, this parameter indicates the promotional price. If the product has no promotional price, this parameter indicates its original price.

- For an auto-renewable subscription, this parameter indicates its original price.

microPrice number Yes

Product price in micro unit, which equals the actual product price multiplied by 1,000,000.

For example, if the actual price of a product is US$1.99, the product price in micro unit is 1,990,000 (1.99*1000000).

- For a consumable, non-consumable, or non-renewable subscription with a promotional price, this parameter indicates the promotional price in micro unit. If the product has no promotional price, this parameter indicates its original price in micro unit.

- For an auto-renewable subscription, this parameter indicates its original price in micro unit.

originalLocalPrice string Yes

Original price of a product, in the format Currency+Price, for example, EUR 0.15.

In some countries or regions, the value format is Currency symbol+Price, for example, ¥0.15 in the Chinese mainland.

The price includes the tax.

- For a consumable, non-consumable, or non-renewable subscription, this parameter indicates the original price regardless of whether a promotional price is set.

- For an auto-renewable subscription, this parameter will not be returned.

originalMicroPrice number Yes

Original price in micro unit of a product.

It equals the original product price multiplied by 1,000,000.

For example, if the original price of a product is US$1.99, the product price in micro unit is 1,990,000 (1.99*1000000).

- For a consumable, non-consumable, or non-renewable subscription, this parameter indicates the original price in micro unit regardless of whether a promotional price is set.

- For an auto-renewable subscription, this parameter will not be returned.

currency string Yes Currency used to pay for a product, for example, CNY.
status number No

Product status.

0: valid.

1: canceled, that is, deleted. Products in this status cannot be purchased by new users or renewed by existing subscribers.

3: offline. Offline subscriptions cannot be purchased by new users, but existing subscribers can still renew their plans.

subscriptionInfo SubscriptionInfo No Information about an auto-renewable subscription.
promotionalOffers PromotionalOffer[] No List of promotional offers supported by a subscription.
jsonRepresentation string No Original JSON character string of product details.

SubscriptionInfo

Subscription information.

Since: 1.0.10

Parameter Type Mandatory Description
periodUnit number Yes

Unit of the subscription billing cycle.

0: day.

1: week.

2: month.

3: year.

4: minute. (Reserved parameter, which is not supported currently.)

periodCount number Yes Number of billing cycles for a subscription.
groupId string Yes Subscription group ID.
groupLevel number Yes Product level.
hasEligibilityForIntroOffer boolean No

Whether a user has already enjoyed the promotion of a subscription in the same group. The options are as follows:

true: yes

false: no

- Other values: No relevant information is obtained.

introductoryOffer SubscriptionOffer No Promotion information.

SubscriptionOffer

Promotion information.

Since: 1.0.10

Parameter Type Mandatory Description
paymentMode number Yes

Payment method for a promotion.

1: free trial.

2: pay-per-use.

3: upfront payment.

periodUnit number Yes

Unit of the subscription billing cycle.

0: day.

1: week.

2: month.

3: year.

4: minute. (Reserved parameter, which is not supported currently.)

periodCount number Yes Period count of a promotion.
localPrice string Yes

Promotional price of a product, in the format Currency+Price, for example, EUR 0.15.

In some countries or regions, the value format is Currency symbol+Price, for example, ¥0.15 in the Chinese mainland.

microPrice number Yes

Promotional price in micro unit.

Promotional price in micro unit, which equals the product price multiplied by 1,000,000.

offerType number Yes

Promotion type.

0: introductory offers for new users.

1: promotional offers for specific user groups.

PromotionalOffer

Promotional offer information that you can define for a subscription.

Since: 1.0.10

Parameter Type Mandatory Description
offerId string Yes Promotional offer ID.
paymentMode number Yes

Payment method for a promotion.

1: free trial.

2: pay-per-use.

3: upfront payment.

periodUnit number No

Unit of the subscription billing cycle.

0: day.

1: week.

2: month.

3: year.

4: minute. (Reserved parameter, which is not supported currently.)

periodCount number No Number of billing cycles for a subscription.
localPrice string Yes

Discounted price of a product, in the format Currency+Price, for example, EUR 0.15.

In some countries or regions, the value format is Currency symbol+Price, for example, ¥0.15 in the Chinese mainland.

microPrice number Yes Discounted price in micro unit, which equals the actual product price multiplied by 1,000,000. For example, if the actual price of a product is US$1.99, the product price in micro unit is 1,990,000 (1.99*1000000).