/api/reseller/spotifyТарифы с готовым product_ref и ценой. mode сужает выдачу до одного режима.
**Два режима — два товара.** spotify_pairing: покупатель сам подтверждает вход
по ссылке, пароль не нужен никому. spotify_auto: подключаем за него, но нужен
пароль от аккаунта. Что именно прислать в fields, читайте из поля requires
позиции, а не зашивайте по коду товара.
**Доставка асинхронная** (delivery: async): заказ живёт в статусе processing
минутами и часами. Подробности — в разделе «Асинхронная доставка».
curl https://hexpay.live/api/reseller/spotify \
-H "Authorization: Bearer <YOUR_API_KEY>"{
"success": true,
"mode": null,
"items": [
{
"product": "spotify_pairing",
"product_ref": "pairing:family:3",
"mode": "pairing",
"plan": "individual",
"months": 3,
"title": "Spotify Family 3 мес",
"requires": [
"email"
],
"delivery": "async",
"wholesale_price_nano": 520000,
"wholesale_price_rub": 520
}
]
}Header Authorization: Bearer <key> on every request. The key is issued in the cabinet and shown once. It spends your deposit: keep it on the server.
modeoptionalsuccessbooleanoptionalmodestringoptionalitemsobject[]optional401—503Каталог Spotify недоступенcurl https://hexpay.live/api/reseller/spotify \
-H "Authorization: Bearer <YOUR_API_KEY>"{
"success": true,
"mode": null,
"items": [
{
"product": "spotify_pairing",
"product_ref": "pairing:family:3",
"mode": "pairing",
"plan": "individual",
"months": 3,
"title": "Spotify Family 3 мес",
"requires": [
"email"
],
"delivery": "async",
"wholesale_price_nano": 520000,
"wholesale_price_rub": 520
}
]
}