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

Core API Documentation

Plans

Available plans for a business.

Desk

GET /api/v2/desk/plans

Lists all plans for a business. Paginate using the page parameter.

Parameters

include_holdsbooleanInclude active and upcoming holds on each plan.
created_sincetimestampFilter plans created since the given timestamp.
updated_sincetimestampFilter plans updated since the given timestamp.

Show curl example

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

RESPONSE
{
  "plans": [
    {
      "id": 1340,
      "count": 10,
      "type": "Pack",
      "people": [
        {
          "id": 199,
          "email": "jon@stark.net",
          "name": "Jon Snow"
        }
      ],
      "name": "10 Pack",
      "plan_product_id": 1239,
      "staff_member_id": 9838,
      "description": "10 Pack",
      "price": 200.0,
      "price_cents": 20000,
      "updated_at": "2019-10-07T13:34:33.477-05:00",
      "created_at": "2019-10-07T13:33:42.375-05:00",
      "start_date": "2019-10-07",
      "end_date": "2020-10-07",
      "cancelled_at": null,
      "limit_period": 2,
      "location_id": null
    },
    {
      "id": 20294,
      "count": 10,
      "type": "Membership",
      "people": [
        {
          "id": 199,
          "email": "jon@stark.net",
          "name": "Jon Snow"
        }
      ],
      "name": "Crossfit",
      "description": "Crossfit Group Class",
      "price_cents": 16000,
      "plan_product_id": 1239,
      "staff_member_id": 9838,
      "updated_at": "2019-10-07T13:34:33.596-05:00",
      "created_at": "2019-10-07T13:34:06.388-05:00",
      "start_date": "2019-10-07",
      "end_date": null,
      "cancelled_at": "2020-01-03T13:34:06.388-05:00",
      "limit_period": 2,
      "location_id": null
    }
  ],
  "total_count": 2
}

POST /api/v2/desk/plans/:plan_id/end_date_updates

Updates the end date for a specific plan. The end date must be in the future and cannot be after or equal to the next billing cycle date.

Parameters

end_datedateThe new end date for the plan.

Errors

422 - The end date is required.
422 - The end date cannot be in the past.
422 - The plan has not a billing plan.

Show curl example

REQUEST
$ curl -X POST https://mybiz.pike13.com/api/v2/desk/plans/123/end_date_updates \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX" \
  -H "Content-Type: application/json" \
  -d '{ "end_date": "2024-12-31" }'

RESPONSE
{
  "end_date": "2025-03-22",
  "plan": {
    "id": 131,
    "description": "recurring plan 2",
    "cancellation_fee_request": [
      {
        "invoice_id": 123,
        "invoice_number": "123",
        "total_cents": 10000,
        "currency": "USD"
      }
    ]
  }
}