content/shop/items/get/1

 

Returns list of all available items in shop with prices. Method also returns how price should be formated for specified country and what is correct currency code.

Call

https://www.islonline.com/api/islonline-content/1-0/islonline-content.php?method=content/shop/items/get/1

Parameters

country_code [string] (required)
    country code should be in the form of uppercased two letter code (ISO 3166-1 alpha-2). The result will be country specific (currency, prices, ...)
nodecimal [boolean] (required)
    if prices without decimal places is required this should be set to true. Default value is false

Return Values

JSON data object
    currency_symbol - country's currency code
    currency_symbol_in_front - if is set to true, the currency code is written before the price
    currency_decimal - character used to seperate decimal places
    currency_digit_grouping_symbol - character used to thousands, millions etc.
    currency_digits_after_decimal - how many decimal places price should have
    items
        item_code - shop item code
        detailed_description - item's long description
        short_description - item's short description
        filter - to which group item belongs
        sku - item's SKU code
        price_numeric - price in the form of number
        price_display - price formated for display
        quantity_params - details about quantity, duration, discounts etc.

Example

PARAMETERS
   response encoding: JSON
   country_code: US
 POST
   https://www.islonline.com/api/islonline-content/1-0/islonline-content.php?method=content/shop/items/get/1&he=JSON1
   POST: country_code=US
 JSON POST
   https://www.islonline.com/api/islonline-sso/1-0/islonline-sso.php?method=content/shop/items/get/1&he=JSON1
   POST: json={ "country_code" : "US" }

Was this article helpful?