Billings
The first billing is executed when a customer subscribes to the plan. Billings can then be triggered at the start of each cycle from the webapp, the 8Pay Javascript library.
Billings can fail if the subscriber hasn’t got enough funds on his wallet, hasn’t enabled the token or his spending limit fo the token is too low. They can be retried at a later time.
Get billings of a plan
GET
https://api.8pay.network/v1/:chain/fixed-recurring/plans/:planId/billings
Path Parameters
planId
string
ID of the plan
Query Parameters
triggeredBy
string
filter by the user who triggered the billing
from
number
filter by timestamp
(default 0)
to
number
filter by timestamp
(default current timestamp)
sort
string
asc
or desc
based on timestamp
(default desc
)
Headers
Authorization
string
Bearer <api-key>
Get billings of a subscription
GET
https://api.8pay.network/v1/:chain/fixed-recurring/subscriptions/:subscriptionId/billings
Path Parameters
subscriptionId
string
ID of the subscription
Query Parameters
from
number
filter by timestamp
(default 0)
to
number
filter by timestamp
(default current timestamp)
sort
string
asc
or desc
based on timestamp
(default desc
)
Headers
Authorization
string
Bearer <api-key>
Last updated