Stripe Products
Return all Stripe Products.
Parameters
sortquery string
Sort ascending or descending order.
pagequery integer
Page offset to fetch.
per_pagequery integer
Number of results to return per page.
{
const res = await fetch(`${BASE_URL}/api/v1/stripe_products`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}
Stripe Product by id
Return a Stripe Product.
Parameters
idpath integerRequired
Return a Stripe Product by specific
id
.
{
const res = await fetch(`${BASE_URL}/api/v1/stripe_products/${id}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}
Stripe Plans
Return Stripe Plans for given Stripe Product.
Parameters
idpath integerRequired
Return a Stripe Product by specific
id
.sortquery string
Sort ascending or descending order.
pagequery integer
Page offset to fetch.
per_pagequery integer
Number of results to return per page.
{
const res = await fetch(`${BASE_URL}/api/v1/stripe_products/${id}/stripe_plans`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}