Skip to main content

Retrieving subscriptions list from the product catalog

This method allows retrieving a list of subscriptions available in your app — including payment conditions for those subscriptions.

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/subscriptions
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.Noqueryfull_access_1_month
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 contentsNoN/A

elements[]

AttributeTypeDescriptionMandatoryExample
productIdstringProduct code.No, if there are no returned elementsfull_access_1_month
productTypestringProduct type: subscription.No, if there are no returned elementssubscription
imagestringLink to product pictureNo, if there are no returned elementshttps://platform...c8e1b74.png
namestringProduct name.No, if there are no returned elementsFull access to all app functions
descriptionstringProduct description.No, if there are no returned elementsFull access to all app functions, no ads
statusstringProduct 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. Available values:
  • promo — free of charge period;
  • start — period with a reduced price as compared to the standard price;
  • grace — grace period;
  • hold — hold period.

For more details see here.
Nopromo
priceCurrencystringISO 4217 currency code.NoRUB
priceValuestringPrice in minor currency units.No15000
periodTypestring
  • day;
  • ;
  • year;
Noday
durationintNumber of periodType in the specified subscription period.No1

Successful response

{
"code": "OK",
"message": null,
"body": {
"totalElementsCount": 1,
"elementsCount": 1,
"continuationToken": null,
"elements": [
{
"productId": "full_access_1_month",
"productType": "subscription",
"image": "",
"name": "Full access to all app functions",
"description": "Full access to all app functions, no ads",
"status": "active",
"tariffs": [
{
"tariffCode": "grace",
"priceCurrency": "RUB",
"priceValue": 0,
"periodType": "day",
"duration": 14
},
{
"tariffCode": "hold",
"priceCurrency": "RUB",
"priceValue": 0,
"periodType": "day",
"duration": 14
},
{
"tariffCode": "start",
"priceCurrency": "RUB",
"priceValue": 1000,
"periodType": "month",
"duration": 1
},
{
"tariffCode": "standard",
"priceCurrency": "RUB",
"priceValue": 10000,
"periodType": "month",
"duration": 1
},
{
"tariffCode": "promo",
"priceCurrency": "RUB",
"priceValue": 0,
"periodType": "month",
"duration": 1
}
]
}
]
},
"timestamp": "2024-11-07T09:49:28.476738105Z"
}

Error response example

{
"code": "ERROR",
"message": "Invalid type specified for request parameter 'status'. Required type 'Set'",
"body": null,
"timestamp": "2024-11-07T09:49:59.787412185Z"
}