Authorizations
Body
application/json
Response
Successful response
curl --request POST \
--url https://app.flowglad.com/api/v1/products \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"product": {
"name": "<string>",
"description": "<string>",
"imageURL": "<string>",
"active": true,
"singularQuantityLabel": "<string>",
"pluralQuantityLabel": "<string>",
"pricingModelId": "<string>",
"default": true,
"slug": "<string>"
},
"price": {
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"active": true,
"slug": "<string>",
"usageMeterId": null
},
"featureIds": [
"<string>"
]
}'{
"product": {
"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>"
}
}curl --request POST \
--url https://app.flowglad.com/api/v1/products \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"product": {
"name": "<string>",
"description": "<string>",
"imageURL": "<string>",
"active": true,
"singularQuantityLabel": "<string>",
"pluralQuantityLabel": "<string>",
"pricingModelId": "<string>",
"default": true,
"slug": "<string>"
},
"price": {
"intervalUnit": "day",
"name": "<string>",
"intervalCount": 123,
"type": "<string>",
"trialPeriodDays": 4503599627370495,
"isDefault": true,
"unitPrice": 4503599627370495,
"usageEventsPerUnit": null,
"active": true,
"slug": "<string>",
"usageMeterId": null
},
"featureIds": [
"<string>"
]
}'{
"product": {
"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>"
}
}Successful response
Show child attributes
Was this page helpful?