getVasSpuList(data: GetVasSpuListParams)
Requires:
@tuya-miniapp/cloud-api≥1.5.0
Description
Retrieve the list of value-added service commodities for the specified business, filter by bound target and tags, and optionally return SKU, pricing, and capability information.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request parameters |
Return Value
Type: Promise<GetVasSpuListResult>
Array of value-added service commodities; each item includes commodity information, redirect link, order parameters, and an optional SKU list
Referenced Types
type
GetVasSpuListResultResult of querying the value-added service product listenum
VasBindingObjectType| Value | Actual Value | Description |
|---|---|---|
VasBindingObjectType.PID | 0 | PID |
VasBindingObjectType.MINI_APP | 1 | Mini App |
VasBindingObjectType.APP | 2 | APP |
enum
VasPaymentScope| Value | Actual Value | Description |
|---|---|---|
VasPaymentScope.ALL | 0 | All |
VasPaymentScope.ONLY_IAP | 1 | IAP only |
VasPaymentScope.ONLY_NON_IAP | 2 | Non-IAP only |
VasPaymentScope.AUTO_IAP | 99 | Auto-select whether to use IAP |
Valid Values
VasBindingObjectType
| Value | Description | Since |
|---|---|---|
0 | PID | - |
1 | Mini App | - |
2 | APP | - |
VasPaymentScope
| Value | Description | Since |
|---|---|---|
0 | All | - |
1 | IAP only | - |
2 | Non-IAP only | - |
99 | Auto-select whether to use IAP | - |