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.

GET/api/v1/stripe_products

{
  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();
}

RESPONSE


Stripe Product by id

Return a Stripe Product.

Parameters
  • idpath integerRequired

    Return a Stripe Product by specific id.

GET/api/v1/stripe_products/{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();
}

RESPONSE


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.

GET/api/v1/stripe_products/{id}/stripe_plans

{
  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();
}

RESPONSE