Core API Documentation
Plan Terms
Fetches the terms and conditions for a Plan.
If the Plan uses
If the Plan uses
Front
GET /api/v2/front/plans/:plan_id/plan_terms
GET /api/v2/front/plans/:plan_id/plan_terms/:plan_terms_id
Fetches the terms for the Plan. There will only be one Plan Terms for a Plan.
Terms may only be fetched for the person that is paying for the invoice.
If the type of the terms is
REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/plans/1/plan_terms \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"plan_terms": [
{
"id": 2,
"terms": "These are the terms",
"type": "document",
"signing_url": "https://waiver.smartwaiver.com/d/ABCDEFGHIJKLMNOPQRSTUVW/",
"acceptance_required": true,
"acceptance_required_at_checkout": true,
"accepted": false
}
]
}
RESPONSE
{
"plan_terms": [
{
"id": 2,
"terms": "These are the terms",
"type": "checkbox",
"acceptance_required": true,
"acceptance_required_at_checkout": true,
"accepted": false
}
]
}
GET /api/v2/front/plans/:plan_id/plan_terms/:plan_terms_id/complete
Mark the Plan Terms as having been accepted by the user.
If the type of the terms is
If the type of the terms is
REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/plans/1/plan_terms/2/complete \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{ }
FAILURE RESPONSE
{
"errors": {
"accepted": [
"Terms and conditions must be accepted"
]
}
}