GET
List Releva plans
- Path
/partners/subscriptions- Auth
- Partner token · partner server only
GET
/partners/subscriptions
const url = 'https://releva.ai/api/v0/partners/subscriptions';const options = {method: 'GET', headers: {'x-rlv-partner-token': '<x-rlv-partner-token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://releva.ai/api/v0/partners/subscriptions \ --header 'x-rlv-partner-token: <x-rlv-partner-token>'Lists every Releva plan with its tiered and usage-based prices, ordered by position. Needs only the partner
token: no payload and no shop. Hidden plans are included (check hidden).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Plans. Empty when no plans are configured.
Media typeapplication/json
object
subscriptions
required
Array<object>
object
id
integer
name
string
type
string
description
string
currency
string
allowedActions
Array<string>
hidden
boolean
position
integer
subscriptionTieredPricings
Array<object>
object
id
integer
name
string
treshold
Spelled treshold in the API.
integer | null
price
string | number | null
unit
string
subscriptionDynamicPricings
Array<object>
object
id
integer
unitPrice
string | number | null
unit
string
Example
{ "subscriptions": []}Partner token missing or unknown.
Media typeapplication/json
object
message
required
Human-readable error. Several validation errors are joined with a space.
string
Examples
{ "message": "Partner identification is missing!"}{ "message": "Partner identification is invalid!"}