Authorizations
Path Parameters
Response
Successful response
curl --request GET \
--url https://app.flowglad.com/api/v1/pricing-models/{id} \
--header 'Authorization: <api-key>'
{
"pricingModel": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"isDefault": true,
"name": "<string>",
"products": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"name": "<string>",
"description": "<string>",
"imageURL": "<string>",
"organizationId": "<string>",
"active": true,
"singularQuantityLabel": "<string>",
"pluralQuantityLabel": "<string>",
"pricingModelId": "<string>",
"default": true,
"slug": "<string>",
"prices": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
}
],
"defaultPrice": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
},
"features": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"type": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"amount": null,
"usageMeterId": null,
"renewalFrequency": null,
"pricingModelId": "<string>",
"active": true
}
]
}
],
"usageMeters": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"pricingModelId": "<string>",
"slug": "<string>",
"aggregationType": "sum"
}
],
"defaultProduct": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"name": "<string>",
"description": "<string>",
"imageURL": "<string>",
"organizationId": "<string>",
"active": true,
"singularQuantityLabel": "<string>",
"pluralQuantityLabel": "<string>",
"pricingModelId": "<string>",
"default": true,
"slug": "<string>",
"prices": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
}
],
"defaultPrice": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
},
"features": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"type": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"amount": null,
"usageMeterId": null,
"renewalFrequency": null,
"pricingModelId": "<string>",
"active": true
}
]
}
}
}
curl --request GET \
--url https://app.flowglad.com/api/v1/pricing-models/{id} \
--header 'Authorization: <api-key>'
{
"pricingModel": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"isDefault": true,
"name": "<string>",
"products": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"name": "<string>",
"description": "<string>",
"imageURL": "<string>",
"organizationId": "<string>",
"active": true,
"singularQuantityLabel": "<string>",
"pluralQuantityLabel": "<string>",
"pricingModelId": "<string>",
"default": true,
"slug": "<string>",
"prices": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
}
],
"defaultPrice": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
},
"features": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"type": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"amount": null,
"usageMeterId": null,
"renewalFrequency": null,
"pricingModelId": "<string>",
"active": true
}
]
}
],
"usageMeters": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"pricingModelId": "<string>",
"slug": "<string>",
"aggregationType": "sum"
}
],
"defaultProduct": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"name": "<string>",
"description": "<string>",
"imageURL": "<string>",
"organizationId": "<string>",
"active": true,
"singularQuantityLabel": "<string>",
"pluralQuantityLabel": "<string>",
"pricingModelId": "<string>",
"default": true,
"slug": "<string>",
"prices": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
}
],
"defaultPrice": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 4503599627370495,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"productId": "<string>",
"active": true,
"currency": "USD",
"slug": "<string>",
"usageMeterId": null
},
"features": [
{
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"organizationId": "<string>",
"type": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"amount": null,
"usageMeterId": null,
"renewalFrequency": null,
"pricingModelId": "<string>",
"active": true
}
]
}
}
}
Successful response
Show child attributes
Was this page helpful?