Get Started
Studio API
- Introduction
- Streaming
- CMS
- OTT
- Monetization
- Offers
- Transactions
- Entitlements
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
Offers
Create offer
CreateOffer
Creates new offer.
POST
/
monetization
/
offers
/
v1
curl --request POST \
--url https://api.mottostreaming.com/monetization/offers/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_id": "<string>",
"name": "<string>",
"cleeng_offer_id": "<string>",
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"localized_title": {},
"localized_description": {},
"localized_logo_asset_id": {},
"localized_image_asset_id": {},
"offer_prices": [
{
"id": "<string>",
"msrp_price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"geo_restrictions_disallow": {
"country_codes": [
"<string>"
]
},
"geo_restrictions_allow": {
"country_codes": [
"<string>"
]
},
"billing_period": "BILLING_PERIOD_UNSPECIFIED",
"access_period": "ACCESS_PERIOD_UNSPECIFIED",
"priority": "<string>"
}
],
"priority": "<string>",
"concurrency_limit": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED"
}'
{
"offer": {
"id": "<string>",
"project_id": "<string>",
"name": "<string>",
"cleeng_offer_id": "<string>",
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"localized_title": {},
"localized_description": {},
"localized_logo_asset_id": {},
"localized_image_asset_id": {},
"offer_prices": [
{
"id": "<string>",
"msrp_price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"geo_restrictions_disallow": {
"country_codes": [
"<string>"
]
},
"geo_restrictions_allow": {
"country_codes": [
"<string>"
]
},
"billing_period": "BILLING_PERIOD_UNSPECIFIED",
"access_period": "ACCESS_PERIOD_UNSPECIFIED",
"priority": "<string>"
}
],
"priority": "<string>",
"concurrency_limit": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Offer represents a collection of video content that end users can purchase. This can be used e.g. to define Entitlement
s against.
Response
200
application/json
OK
The response is of type object
.
curl --request POST \
--url https://api.mottostreaming.com/monetization/offers/v1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_id": "<string>",
"name": "<string>",
"cleeng_offer_id": "<string>",
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"localized_title": {},
"localized_description": {},
"localized_logo_asset_id": {},
"localized_image_asset_id": {},
"offer_prices": [
{
"id": "<string>",
"msrp_price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"geo_restrictions_disallow": {
"country_codes": [
"<string>"
]
},
"geo_restrictions_allow": {
"country_codes": [
"<string>"
]
},
"billing_period": "BILLING_PERIOD_UNSPECIFIED",
"access_period": "ACCESS_PERIOD_UNSPECIFIED",
"priority": "<string>"
}
],
"priority": "<string>",
"concurrency_limit": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED"
}'
{
"offer": {
"id": "<string>",
"project_id": "<string>",
"name": "<string>",
"cleeng_offer_id": "<string>",
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"localized_title": {},
"localized_description": {},
"localized_logo_asset_id": {},
"localized_image_asset_id": {},
"offer_prices": [
{
"id": "<string>",
"msrp_price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"price": {
"currency_code": "<string>",
"units": "<string>",
"nanos": 123
},
"geo_restrictions_disallow": {
"country_codes": [
"<string>"
]
},
"geo_restrictions_allow": {
"country_codes": [
"<string>"
]
},
"billing_period": "BILLING_PERIOD_UNSPECIFIED",
"access_period": "ACCESS_PERIOD_UNSPECIFIED",
"priority": "<string>"
}
],
"priority": "<string>",
"concurrency_limit": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED"
}
}