Plans
Last updated
Last updated
Plans define the minimum allowance, token and reset period for subscriptions to on-demand services and products. You can create a plan using the web app or directly interacting with our smart contracts.
GET
https://api.8pay.network/v1/:chain/on-demand/plans
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
https://api.8pay.network/v1/:chain/on-demand/plans/:planId
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
chain
string
admin
string
filter by admin
receiver
string
filter by receiver
from
number
filter by createdAt
(default 0)
to
number
filter by createdAt
(default current timestamp)
sort
string
asc
or desc
(default desc
), sort based on createdAt
Authorization
string
Bearer <api-key>
planId
string
ID of the plan
chain
string
Authorization
string
Bearer <api-key>