Pike13 For Developers
Get Started
Authentication
Core API
Reporting API
Webhooks API
Announcements

Core API Documentation

Plan product

Front

GET /api/v2/front/plan_products

Lists all plan products for the business that are visible to the user. Paginate using the page parameter.

Parameters

location_idscomma delimited stringThe location identifier(s) to filter on.
service_idscomma delimited stringThe service identifier(s) to filter on.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/plan_products?client_id=XXXXXXXXXXXXXX \

RESPONSE
{
  "plan_products": [
    {
      "id": 1,
      "count": 10,
      "limit_period": "weekly",
      "commitment_length": 12,
      "commitment_unit": "month",
      "location_id": null,
      "terms": "Terms and Conditions",
      "group_rack_service_id": "1",
      "client_cancel_allowed": true,
      "terms_acceptance_required": true,
      "rollover_count": 2,
      "description_long": "A very long description of the plan product",
      "signup_fee_cents": 1000,
      "signup_fee_tax_exempt": true,
      "product": {
        "id": 2,
        "name": "Ten Visit Punchcard",
        "description": "A punchcard with ten visits.",
        "description_long": "A longer description.",
        "price_cents": 10000
      },
      "services": [
        {
          "id": 1,
          "name": "Class P"
        },
        {
          "id": 2,
          "name": "Class Q"
        },
        {
          "id": 5,
          "name": "Class T"
        }
      ],
      "billing": {
        "interval_unit": "month",
        "interval_count": 1,
        "days": [],
        "days_of_month": [],
        "months_of_year": []
      }
    },
    {
      "id": 2,
      "count": 1,
      "limit_period": "monthly",
      "commitment_length": 1,
      "commitment_unit": "week",
      "location_id": null,
      "terms": "Terms and Conditions",
      "group_rack_service_id": "1",
      "client_cancel_allowed": false,
      "terms_acceptance_required": true,
      "rollover_count": null,
      "description_long": "Another very long description of the plan product",
      "signup_fee_cents": 1000,
      "signup_fee_tax_exempt": true,
      "product": {
        "id": 3,
        "name": "One Visit Punchcard",
        "description": "A punchcard with one visit.",
        "description_long": "A longer description.",
        "price_cents": 1000
      },
      "services": [
        {
          "id": 1,
          "name": "Class P"
        },
        {
          "id": 2,
          "name": "Class Q"
        }
      ],
      "billing": {
        "interval_unit": "week",
        "interval_count": 1,
        "days": [
          "Sunday"
        ],
        "days_of_month": [],
        "months_of_year": []
      }
    }
  ]
}

GET /api/v2/front/plan_products/:id

Returns the details of a plan product.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/plan_products/1?client_id=XXXXXXXXXXXXXX \

RESPONSE
{
  "plan_products": [
    {
      "id": 1,
      "count": 10,
      "limit_period": "monthly",
      "commitment_length": 12,
      "commitment_unit": "month",
      "location_id": null,
      "terms": "Terms and Conditions",
      "group_rack_service_id": "1",
      "client_cancel_allowed": true,
      "terms_acceptance_required": true,
      "rollover_count": null,
      "description_long": "Another very long description of the plan product",
      "signup_fee_cents": 1000,
      "signup_fee_tax_exempt": true,
      "product": {
        "id": 2,
        "name": "Ten Visit Punchcard",
        "description": "A punchcard with ten visits.",
        "description_long": "A longer description.",
        "price_cents": 10000
      },
      "services": [
        {
          "id": 1,
          "name": "Class P"
        },
        {
          "id": 2,
          "name": "Class Q"
        },
        {
          "id": 5,
          "name": "Class T"
        }
      ],
      "billing": {
        "interval_unit": "month",
        "interval_count": 1,
        "days": [],
        "days_of_month": [
          3
        ],
        "months_of_year": []
      }
    }
  ]
}

Desk

GET /api/v2/desk/plan_products

Lists all plan products for the business. Paginate using the page parameter.

Parameters

location_idscomma delimited stringThe location identifier(s) to filter on.
service_idscomma delimited stringThe service identifier(s) to filter on.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/plan_products \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX"

RESPONSE
{
  "plan_products": [
    {
      "id": 1,
      "count": 10,
      "limit_period": "monthly",
      "commitment_length": 12,
      "commitment_unit": "month",
      "location_id": null,
      "terms": "Terms and Conditions",
      "consider_member": true,
      "send_expiration_notifications": true,
      "terms_acceptance_required": true,
      "terms_acceptance_at_checkout": false,
      "terms_acceptance_type": "document",
      "created_at": "2017-07-01T12:00:00Z",
      "updated_at": "2017-07-02T11:00:00Z",
      "product": {
        "id": 2,
        "name": "Ten Visit Punchcard",
        "description": "A punchcard with ten visits.",
        "description_long": "A longer description.",
        "price_cents": 10000,
        "visibility": "everyone",
        "suspended": null,
        "created_at": "2017-07-01T12:00:00Z",
        "updated_at": "2017-07-02T11:00:00Z"
      },
      "services": [
        {
          "id": 1,
          "name": "Class P"
        },
        {
          "id": 2,
          "name": "Class Q"
        },
        {
          "id": 5,
          "name": "Class T"
        }
      ],
      "billing": {
        "interval_unit": "year",
        "interval_count": 1,
        "days": [],
        "days_of_month": [
          3
        ],
        "months_of_year": [
          "January"
        ]
      },
      "stop_renewing_after_commitment": false,
      "hold_fee_cents": null,
      "holds_allowed": true,
      "hold_limit_unit": null,
      "hold_limit_length": null,
      "signup_fee_cents": 1000,
      "signup_fee_tax_exempt": true,
      "cancellation_fee_tax_exempt": true,
      "group_rack_service_id": null,
      "client_cancel_allowed": true,
      "rollover_count": null,
      "group_rates": [
        {
          "amount_cents": null,
          "additive_percent": 80.0,
          "additive_amount_cents": null,
          "head_count_start": 2,
          "head_count_end": 8,
          "type": "UnsharedVisitGroupRate"
        }
      ]
    },
    {
      "id": 2,
      "count": null,
      "commitment_length": 1,
      "commitment_unit": "month",
      "location_id": null,
      "terms": "Terms and Conditions",
      "consider_member": true,
      "send_expiration_notifications": true,
      "terms_acceptance_required": true,
      "terms_acceptance_at_checkout": false,
      "terms_acceptance_type": "document",
      "created_at": "2017-07-01T12:00:00Z",
      "updated_at": "2017-07-02T11:00:00Z",
      "product": {
        "id": 2,
        "name": "1 Month Prepaid Unlimited Visits",
        "description": "Unlimited visits for one month.",
        "description_long": "A longer description.",
        "price_cents": 20000,
        "visibility": "everyone",
        "suspended": null,
        "created_at": "2017-07-01T12:00:00Z",
        "updated_at": "2017-07-02T11:00:00Z"
      },
      "services": [
        {
          "id": 1,
          "name": "Class P"
        },
        {
          "id": 2,
          "name": "Class Q"
        },
        {
          "id": 5,
          "name": "Class T"
        }
      ],
      "billing": {
        "interval_unit": "month",
        "interval_count": 1,
        "days": [],
        "days_of_month": [
          3
        ],
        "months_of_year": []
      },
      "stop_renewing_after_commitment": false,
      "hold_fee_cents": null,
      "holds_allowed": true,
      "hold_limit_unit": null,
      "hold_limit_length": null,
      "signup_fee_cents": 1000,
      "signup_fee_tax_exempt": true,
      "cancellation_fee_tax_exempt": true,
      "group_rack_service_id": null,
      "client_cancel_allowed": true,
      "rollover_count": null,
      "limit_period": "monthly",
      "group_rates": []
    }
  ]
}

GET /api/v2/desk/plan_products/:id

Returns the details of a plan product.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/plan_products/1 \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX"

RESPONSE
{
  "plan_products": [
    {
      "id": 1,
      "count": 10,
      "limit_period": "monthly",
      "commitment_length": 12,
      "commitment_unit": "month",
      "location_id": null,
      "terms": "Terms and Conditions",
      "consider_member": true,
      "send_expiration_notifications": true,
      "terms_acceptance_required": true,
      "terms_acceptance_at_checkout": false,
      "terms_acceptance_type": "document",
      "created_at": "2017-07-01T12:00:00Z",
      "updated_at": "2017-07-02T11:00:00Z",
      "product": {
        "id": 2,
        "name": "Ten Visit Punchcard",
        "description": "A punchcard with ten visits.",
        "description_long": "A longer description.",
        "price_cents": 10000,
        "visibility": "everyone",
        "suspended": null,
        "created_at": "2017-07-01T12:00:00Z",
        "updated_at": "2017-07-02T11:00:00Z"
      },
      "services": [
        {
          "id": 1,
          "name": "Class P"
        },
        {
          "id": 2,
          "name": "Class Q"
        },
        {
          "id": 5,
          "name": "Class T"
        }
      ],
      "billing": {
        "interval_unit": "month",
        "interval_count": 1,
        "days": [],
        "days_of_month": [],
        "months_of_year": []
      },
      "stop_renewing_after_commitment": false,
      "hold_fee_cents": null,
      "holds_allowed": true,
      "hold_limit_unit": null,
      "hold_limit_length": null,
      "signup_fee_cents": 1000,
      "signup_fee_tax_exempt": true,
      "cancellation_fee_tax_exempt": true,
      "group_rack_service_id": null,
      "client_cancel_allowed": true,
      "rollover_count": null,
      "group_rates": [
        {
          "amount_cents": null,
          "additive_percent": null,
          "additive_amount_cents": 100,
          "head_count_start": 2,
          "head_count_end": null,
          "type": "UnsharedVisitGroupRate"
        }
      ]
    }
  ]
}