Skip to main content

Retrieving products list from the product catalog

This method allows retrieving a list of consumable or non-consumable products available in your app — including payment conditions for those products.

tip

If you are in doubt read the instruction in the usage scenarios.

Interaction parameters

GET
https://public-api.rustore.ru/public/applications/{appId}/catalog/products
AttributeTypeDescriptionMandatoryLocationExample
Public-TokenstringJwe token to Public API Rustore.
How to get an authorization token.
YesheaderN/A
appIdintApp IDYespath385727
productIdstringProduct ID form the RuStore Console. If specified, only the information about the product with the specified ID is returned.Noquerygreen_crystal_0_1
productTypearrayProduct type, available values:
  • consumable;
  • non-consumable.
Yesqueryconsumable
statusarrayProduct publication status:
  • active — published in the RuStore Console;
  • inactive — not published in the RuStore Console.
Noqueryactive
continuationTokenstringToken to retrieve the next part of the result.NoqueryMSxiYTBmZDA...4ZDMyOWNlOTY=
limitintNumber of elements on a page. Maximum value is 500.Noquery20

Response parameters

AttributeTypeDescriptionMandatoryExample
codestringYesResponse codeOK;
ERROR;
BAD_REQUEST;
NOT_FOUND.
messagestringNoDecoded response codeN/A
body{}objectYesResponse bodyN/A
timestampstringYesResponse time2024-11-01T11:10:54.994306Z

body{}

AttributeTypeDescriptionMandatoryExample
totalElementsCountintTotal number of elements. If there are no elements, 0 will be returned.No500
elementsCountintNumber of returned elements.No20
continuationTokenstringToken to retrieve the next part of the result.No, nullablenull
elements[]arrayResponse contentsNoMSxiYTBmZDA1MC01YWVmLTQ0YzItYTg3ZS00ZTM4ZDMyOWNlOTY=

elements[]

AttributeTypeDescriptionMandatoryExample
productIdstringProduct code.No, if there are no returned elements.green_crystal_0_1
productTypestringProduct type, available values:
  • non-consumable;
  • consumable.
No, if there are no returned elementsconsumable
imagestringLink to product pictureNo, if there are no returned elementshttps://platform...c8e1b74.png
namestringProduct name.No, if there are no returned elementsGreen crystals
descriptionstringProduct description.No, if there are no returned elementsGreen crystals to regain mana.
statusProduct publication status:
  • active — published in the RuStore Console;
  • inactive — not published in the RuStore Console.
No, if there are no returned elementsactive
tariffs[]arrayTariffs.No, if there are no returned elementsN/A

tariffs[]

AttributeTypeDescriptionMandatoryExample
tariffCodestringTariff code: standard.Nostandard
namestringTariff name: Standard.NoStandard
priceCurrencystringISO 4217 currency code.NoRUB
priceValuestringPrice in minor currency units.No15000

Successful response

{
"code": "OK",
"message": null,
"body": {
"totalElementsCount": 1,
"elementsCount": 1,
"continuationToken": null,
"elements": [
{
"productId": "green_crystal_0_1",
"productType": "subscription",
"image": ":image",
"name": "Green crystals",
"description": "Green crystals to regain mana",
"status": "active",
"tariffs": [
{
"tariffCode": "standard",
"name": "Standard",
"priceCurrency": "RUB",
"priceValue": 15000,
}
]
}
]
},
"timestamp": "2024-11-01T11:10:54.994306Z"
}