List categories (categories/get)
Using this method, you can get a list of all possible bonus categories (categoryId) from the YooMoney’s directory.
Request
Address for sending the request
POST https://yoomoney.ru/api/offerwall/v1/categories/get
The request body is empty.
Request example
cURL
curl -X POST \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer: <access token>''https://yoomoney.ru/api/offerwall/v1/categories/get'
Response
The response returns a list of all categories in the service.
Parameters
ParameterTypeDescription
categoryIdintCategory ID in YooMoney.
categoryNamestringCategory name.
Example of a response body
JSON
{
  "status": "success",
  "result": {
    "categories": [
      {
        "categoryId": 38,
        "categoryName": "Одежда, обувь и аксессуары"
      },
      {
        "categoryId": 39,
        "categoryName": "Книги, аудиозаписи, видеозаписи"
      },
      {
        "categoryId": 40,
        "categoryName": "Всё для офиса"
      }
    ]
  }
}
© 2024, "YooMoney", NBCO LLC