getVirtualItems

fun getVirtualItems(    callback: GetVirtualItemsCallback,     limit: Int = 50,     offset: Int = 0,     locale: String? = null,     additionalFields: List<String>? = listOf(),     country: String? = null,     requestGeoLocale: Boolean? = null)

Returns a list of virtual items according to pagination settings. The list includes items for which display in the store is enabled in the settings. For each virtual item, complete data is returned.

See also

Parameters

limit

Limit for the number of elements on the page in the range from 1 to 50.

offset

Number of element from which list is generated (count starts from 0).

locale

Response language. The following languages are supported: Arabic (ar), Bulgarian (bg), Czech (cs), German (de), Spanish (es), French (fr), Hebrew (he), Italian (it), Japanese (ja), Korean (ko), Polish (pl), Portuguese (pt), Romanian (ro), Russian (ru), Thai (th), Turkish (tr), Vietnamese (vi), Chinese Simplified (cn), Chinese Traditional (tw), English (en, default).

additionalFields

The list of additional fields. Available fields: media_list, order, long_description.

callback

Status callback.

requestGeoLocale

If true, requests the locale based on user's current IP. The backend returns the locale as VirtualItemsResponse.geoLocale. IMPORTANT: Setting country argument overrides the returned locale.

Sources

Link copied to clipboard