Subscriptions
Last updated
Last updated
Subscriptions allow you to charge customers on a recurring basis. Customers can subscribe through 8Pay’s hosted checkout pages that can be reached by embedded buttons, short urls and QR codes.
Subscriptions can be in two different statuses:
ACTIVE
: user can be charged for its usage
CANCELLED
: the subscription was cancelled by the user
TERMINATED
: the subscription was terminated by the vendor
GET
https://api.8pay.network/v1/:chain/on-demand/subscriptions
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
https://api.8pay.network/v1/:chain/on-demand/plans/:planId/subscriptions
GET
https://api.8pay.network/v1/bsc/on-demand/subscriptions/:subscriptionId
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
chain
string
user
string
filter by user
status
string
filter by status (ACTIVE
, CANCELLED
or TERMINATED
)
from
number
filter by subscribedAt
(default 0)
to
number
filter by subscribedAt
(default current timestamp)
sortBy
string
order by subscribedAt
, cycleStart
or cycleEnd
(default subscribedAt
)
sort
string
asc
or desc
(default desc
), sort based on sortBy
query parameter
Authorization
string
Bearer <api-key>
planId
string
ID of the plan
chain
string
user
string
filter by user
status
string
filter by status (ACTIVE
, CANCELLED
or TERMINATED
)
from
number
filter by subscribedAt
(default 0)
to
number
filter by subscribedAt
(default current timestamp)
sortBy
string
order by subscribedAt
, cycleStart
or cycleEnd
(default subscribedAt
)
sort
string
asc
or desc
(default desc
), sort based on sortBy
query parameter
Authorization
string
Bearer <api-key>
subscriptionId
string
ID of the subscription
chain
string
Authorization
string
Bearer <api-key>