v1
latestOpenAPI 3.1.02026-07-24270180.3 KBCreate a subscription
Create a PowerBoard subscription
post/v1/subscriptions
Headers
x-user-secret-keystring required
Your API private/secret key. This can be found in the powerboard dashboard.
Content-Typestring required
Content-Type will always be application/json
Request body
Response
200
Example response
{
"status": 201,
"resource": {
"type": "subscription",
"data": {
"created_at": "2020-09-03T09:52:45.361Z",
"updated_at": "2020-09-03T09:52:45.361Z",
"amount": 10,
"description": "Vitae commodi provident assumenda",
"reference": "Fuga consequuntur sint ab magnam",
"status": "active",
"_id": "5f50bced80c950150a60364c",
"_service": {
"customer_default_gateway_id": "5ef6167d2e4a1b140f640167",
"tags": "tags wanda.mertz@example.com"
},
"customer": {
"customer_id": "5f50bced80c950150a60364a",
"email": "wanda.mertz@example.com"
},
"schedule": {
"interval": "day",
"start_date": "2020-09-03T11:30:00.000Z",
"end_date": "2020-09-25T19:05:11.000Z",
"next_assessment": "2020-09-03T11:30:00.000Z",
"next_assessment_planned": "2020-09-03T11:30:00.000Z",
"first_assessment": "2020-09-03T11:30:00.000Z",
"status": "inprogress",
"frequency": 1
},
"currency": "AUD"
}
}
}