Plans
Get plan by ID
Plans
Get plan by ID
GET
/
plans
/
{id}
curl --request GET \
--url https://api.sulu.sh/v0/plans/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "plan",
"name": "<string>",
"invoiceDisplayName": "<string>",
"description": "<string>",
"billingInterval": "<string>",
"currency": "<string>",
"merchantId": "<string>",
"productId": "<string>",
"tax": {},
"prices": [
{
"id": "<string>",
"object": "price",
"billableMetricId": "<string>",
"model": "standard",
"invoiceDisplayName": "<string>",
"properties": {
"unitPrice": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Unique identifier for a plan
Response
200
application/json
Plan details
The response is of type object
.
curl --request GET \
--url https://api.sulu.sh/v0/plans/{id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "plan",
"name": "<string>",
"invoiceDisplayName": "<string>",
"description": "<string>",
"billingInterval": "<string>",
"currency": "<string>",
"merchantId": "<string>",
"productId": "<string>",
"tax": {},
"prices": [
{
"id": "<string>",
"object": "price",
"billableMetricId": "<string>",
"model": "standard",
"invoiceDisplayName": "<string>",
"properties": {
"unitPrice": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}