v1
latestOpenAPI 3.1.02026-07-241080412.6 KBCreate an offer
Use this endpoint to create offers. Supported offer types include subscription (including seasonal subscription), pass, live event (previously called live pay-per-view), and one-time purchase (previously called TVOD). (For more information on offers, see What is a Cleeng offer?). With this endpoint, you can also create offer localizations - versions of your offer for different countries and currencies.
post/offers
Headers
Content-Typestring
X-Publisher-Tokenstring required
Request body
Response
200
Example response
{
"id": "S229081230",
"longId": "S229081230_PL",
"type": "subscription",
"active": true,
"title": "Test subscription",
"description": "Description of test subsription",
"url": "https://example-url.com",
"externalProperties": {
"custom-attribute": "custom value"
},
"price": {
"amount": 10,
"currency": "EUR",
"taxIncluded": true
},
"geoRestriction": {
"type": "whitelist",
"countries": [
"NL"
]
},
"createdAt": 1649144282,
"updatedAt": 1649144282,
"billingCycle": {
"periodUnit": "month",
"amount": 1
},
"freeTrial": {
"type": "period",
"duration": 1
}
}