Create a new add-on linked to a feature. Each feature can only be assigned to one add-on.
Create a new add-on linked to a feature. Each feature can only be assigned to one add-on.
ApiKeyAuth In: header
Unique key used to safely retry this write for 24 hours without applying it twice.
1 <= length <= 200application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/addons" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "basePrice": 0, "featureId": "string", "consumptionModel": "boolean" }'{ "id": "string", "name": "string", "slug": "string", "description": "string", "basePrice": -9007199254740991, "featureCode": "string", "featureName": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "consumptionModel": "boolean", "includedUnits": -9007199254740991, "overageRate": -9007199254740991, "creditCost": -9007199254740991, "object": "addon", "livemode": true}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}1 <= length <= 100length <= 2550 <= value <= 90071992547409911 <= length