Short Urls
Short urls are easy ways to share subscription links to your plans.
Create a short url
POST
https://api.8pay.network/v1/:chain/on-demand/short-urls
Path Parameters
chain
string
Query Parameters
name
string
name of the short url
planId
string
id of the
params
object
object containing short url param
params.callbackSuccess
string
redirect url after success
params.callbackError
string
redirect url after failure
params.extra
string
extra parameters to be sent to webhook
Headers
Authorization
string
Bearer <api-key>
Get a list of short urls
GET
https://api.8pay.network/v1/:chain/on-demand/short-urls
Retrive a list of short url created by the authenticated user.
Path Parameters
chain
string
Headers
Authorization
string
Bearer <api-key>
Get short urls of a plan
GET
https://api.8pay.network/v1/:chain/on-demand/plans/:planId/short-urls
Path Parameters
planId
string
ID of the plan
chain
string
Headers
Authorization
string
Bearer <api-key>
Get a short url
GET
https://api.8pay.network/v1/bsc/on-demand/short-urls/:path
Path Parameters
path
string
path of the short url
chain
string
Headers
Authorization
string
Bearer <api-key>
Update a short url
PUT
https://api.8pay.network/v1/bsc/on-demand/short-urls/:path
Path Parameters
path
string
path of the short url
chain
string
Query Parameters
name
string
name of the short url
planId
string
id of the
params
object
object containing short url param
params.callbackSuccess
string
redirect url after success
params.callbackError
string
redirect url after failure
params.extra
string
extra parameters to be sent to webhook
Headers
Authorization
string
Bearer <api-key>
Delete a short url
DELETE
https://api.8pay.network/v1/bsc/on-demand/short-urls/:path
Path Parameters
path
string
path of the short url
chain
string
Headers
Authorization
string
Bearer <api-key>
Last updated