curl -X POST \
'https://api.appcharge.com/v2/offer' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"publisherOfferId": "daily-bonus-1",
"name": "My Daily Bonus",
"type": "PopUp",
"subType": "DailyBonus",
"active": true,
"productsSequence": [
{
"index": 1,
"products": [
{
"priority":"Main",
"publisherProductId": "TreasureChest",
"quantity": 10
}
],
"priceInUsdCents": 2000
}
]
"productSale": {
"type": "percentage",
"sale": 10
},
"priceDiscount": {
"type": "percentage",
"discount": 10
},
"displayName": "My Daily Bonus",
"description": "This is my daily bonus description.",
"offerUiId": "68b41c4aa1c5b1a284737e9b",
"offerExternalUiId": "58b41c4aa1c5b1a284737e9b",
"segments": [
"New User"
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
]
}'
{
"offerId": "223b4cc89711ac",
"publisherOfferId": "daily-bonus-1",
"name": "My Daily Bonus",
"type": "PopUp",
"subType": "DailyBonus",
"displayName": "My Daily Bonus",
"description": "This is my daily bonus description.",
"type": "string",
"active": true,
"segments": [
"New User"
],
"offerUi": {
"offerUiId": "68b41c4aa1c5b1a284737e9b",
"active": true,
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "popup",
"description": "description",
"backgroundImage": "https://media.appcharge.com/media/75cb7861ec8924a63338-5790-47c8-a6a0-23cb43db5883",
"buttonSuffixImage": "",
"buttonSuffixAnimation": "",
"specialOffer": {
"templateType": "Single",
"presentOfferEndTimer": false,
"title": "jrwtnip",
"fontSize": 620,
"fontWeight": "normal",
"fontColor": {
"colorOne": "#ffffff"
},
"subTitle": {
"text": "",
"fontSize": 16,
"fontWeight": "normal",
"fontColor": {
"colorOne": "#ffffff"
}
},
"backgroundColor": {
"colorOne": "#CACBD4"
}
},
"borderColor": {
"colorOne": "#e70d0d",
"colorTwo": "",
"direction": ""
},
"borderWidth": 10,
"externalId": "popup"
},
"productsSequence": [
{
"index": 1,
"products": [
{
"product": {
"publisherProductId": "TreasureChest",
"name": "Treasure Chest",
"type": "Quantity",
"prefix": "$",
"suffix": "M",
"priority": "Main",
"images": [
{
"type": "product",
"url": "https://media.appcharge.com/media/35nb7861ec9924a6b69a0fe59/2208472.png"
},
{
"type": "productPrefix",
"url": ""
}
],
"displayName": "Treasure Chest"
}
}
]
}
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
],
"productSale": {
"type": "percentage",
"sale": 10
},
"priceDiscount": {
"type": "percentage",
"discount": 10
},
"createdAt": "2025-04-06T10:00:44.528Z",
"updatedAt": "2025-04-06T10:00:44.528Z"
}
Creates a daily bonus.
curl -X POST \
'https://api.appcharge.com/v2/offer' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"publisherOfferId": "daily-bonus-1",
"name": "My Daily Bonus",
"type": "PopUp",
"subType": "DailyBonus",
"active": true,
"productsSequence": [
{
"index": 1,
"products": [
{
"priority":"Main",
"publisherProductId": "TreasureChest",
"quantity": 10
}
],
"priceInUsdCents": 2000
}
]
"productSale": {
"type": "percentage",
"sale": 10
},
"priceDiscount": {
"type": "percentage",
"discount": 10
},
"displayName": "My Daily Bonus",
"description": "This is my daily bonus description.",
"offerUiId": "68b41c4aa1c5b1a284737e9b",
"offerExternalUiId": "58b41c4aa1c5b1a284737e9b",
"segments": [
"New User"
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
]
}'
{
"offerId": "223b4cc89711ac",
"publisherOfferId": "daily-bonus-1",
"name": "My Daily Bonus",
"type": "PopUp",
"subType": "DailyBonus",
"displayName": "My Daily Bonus",
"description": "This is my daily bonus description.",
"type": "string",
"active": true,
"segments": [
"New User"
],
"offerUi": {
"offerUiId": "68b41c4aa1c5b1a284737e9b",
"active": true,
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "popup",
"description": "description",
"backgroundImage": "https://media.appcharge.com/media/75cb7861ec8924a63338-5790-47c8-a6a0-23cb43db5883",
"buttonSuffixImage": "",
"buttonSuffixAnimation": "",
"specialOffer": {
"templateType": "Single",
"presentOfferEndTimer": false,
"title": "jrwtnip",
"fontSize": 620,
"fontWeight": "normal",
"fontColor": {
"colorOne": "#ffffff"
},
"subTitle": {
"text": "",
"fontSize": 16,
"fontWeight": "normal",
"fontColor": {
"colorOne": "#ffffff"
}
},
"backgroundColor": {
"colorOne": "#CACBD4"
}
},
"borderColor": {
"colorOne": "#e70d0d",
"colorTwo": "",
"direction": ""
},
"borderWidth": 10,
"externalId": "popup"
},
"productsSequence": [
{
"index": 1,
"products": [
{
"product": {
"publisherProductId": "TreasureChest",
"name": "Treasure Chest",
"type": "Quantity",
"prefix": "$",
"suffix": "M",
"priority": "Main",
"images": [
{
"type": "product",
"url": "https://media.appcharge.com/media/35nb7861ec9924a6b69a0fe59/2208472.png"
},
{
"type": "productPrefix",
"url": ""
}
],
"displayName": "Treasure Chest"
}
}
]
}
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
],
"productSale": {
"type": "percentage",
"sale": 10
},
"priceDiscount": {
"type": "percentage",
"discount": 10
},
"createdAt": "2025-04-06T10:00:44.528Z",
"updatedAt": "2025-04-06T10:00:44.528Z"
}
curl -X POST \
'https://api.appcharge.com/v2/offer' \
-H 'Content-Type: application/json' \
-H 'x-publisher-token: <x-publisher-token>' \
-d '{
"publisherOfferId": "daily-bonus-1",
"name": "My Daily Bonus",
"type": "PopUp",
"subType": "DailyBonus",
"active": true,
"productsSequence": [
{
"index": 1,
"products": [
{
"priority":"Main",
"publisherProductId": "TreasureChest",
"quantity": 10
}
],
"priceInUsdCents": 2000
}
]
"productSale": {
"type": "percentage",
"sale": 10
},
"priceDiscount": {
"type": "percentage",
"discount": 10
},
"displayName": "My Daily Bonus",
"description": "This is my daily bonus description.",
"offerUiId": "68b41c4aa1c5b1a284737e9b",
"offerExternalUiId": "58b41c4aa1c5b1a284737e9b",
"segments": [
"New User"
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
]
}'
{
"offerId": "223b4cc89711ac",
"publisherOfferId": "daily-bonus-1",
"name": "My Daily Bonus",
"type": "PopUp",
"subType": "DailyBonus",
"displayName": "My Daily Bonus",
"description": "This is my daily bonus description.",
"type": "string",
"active": true,
"segments": [
"New User"
],
"offerUi": {
"offerUiId": "68b41c4aa1c5b1a284737e9b",
"active": true,
"offerUiType": "PopUp",
"offerUiSubType": "DailyBonus",
"name": "popup",
"description": "description",
"backgroundImage": "https://media.appcharge.com/media/75cb7861ec8924a63338-5790-47c8-a6a0-23cb43db5883",
"buttonSuffixImage": "",
"buttonSuffixAnimation": "",
"specialOffer": {
"templateType": "Single",
"presentOfferEndTimer": false,
"title": "jrwtnip",
"fontSize": 620,
"fontWeight": "normal",
"fontColor": {
"colorOne": "#ffffff"
},
"subTitle": {
"text": "",
"fontSize": 16,
"fontWeight": "normal",
"fontColor": {
"colorOne": "#ffffff"
}
},
"backgroundColor": {
"colorOne": "#CACBD4"
}
},
"borderColor": {
"colorOne": "#e70d0d",
"colorTwo": "",
"direction": ""
},
"borderWidth": 10,
"externalId": "popup"
},
"productsSequence": [
{
"index": 1,
"products": [
{
"product": {
"publisherProductId": "TreasureChest",
"name": "Treasure Chest",
"type": "Quantity",
"prefix": "$",
"suffix": "M",
"priority": "Main",
"images": [
{
"type": "product",
"url": "https://media.appcharge.com/media/35nb7861ec9924a6b69a0fe59/2208472.png"
},
{
"type": "productPrefix",
"url": ""
}
],
"displayName": "Treasure Chest"
}
}
]
}
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
],
"productSale": {
"type": "percentage",
"sale": 10
},
"priceDiscount": {
"type": "percentage",
"discount": 10
},
"createdAt": "2025-04-06T10:00:44.528Z",
"updatedAt": "2025-04-06T10:00:44.528Z"
}
The publisher token used for authentication.
The unique identifier for the daily bonus offer.
The name of the daily bonus offer (at least 3 characters).
The type of offer - In this case 'PopUp'.
PopUp The subType of the offer - In this case 'DailyBonus'.
DailyBonus Whether the daily bonus offer is active.
The sequence of products included in the daily bonus offer.
Show child attributes
The order of the product in the daily bonus offer.
List of products in the daily bonus.
Show child attributes
Specifies the display priority of a product within the daily bonus. Either Main or Sub.
The unique ID of the product.
The quantity of the product in the daily bonus offer.
The price of the product in cents (always 0, as the daily bonus is free).
0 The display name of the daily bonus offer. If not provided, the name will be used.
The description of the daily bonus offer.
The priority level of the daily bonus offer. The priority start from 1 (1 being the highest priority).
Whether the daily bonus should restart after completion.
Internal ID for the Offer UI (required if offerExternalUiId not provided)
The external UI ID for the daily bonus offer.
List of player segments that this daily bonus offer applies to.
Daily bonus offer created successfully.
Publisher ID.
The unique identifier of the daily bonus.
The daily bonus offer ID provided by the publisher. This is the offer's External ID value in the Publisher Dashboard.
The name of the daily bonus.
The display name of the daily bonus. If not provided, the name will be used.
The description of the daily bonus (conditionally returned)
The type of offer.
The subType of the offer - In this case 'DailyBonus'.
Whether the daily bonus is active.
List of player segments that this daily bonus applies to (e.g., ["NewUser", "BigSpender"]). This is empty by default.
UI configuration for the daily bonus.
Show child attributes
The ID of the daily bonus design, as displayed in the Publisher Dashboard.
The SKU of the daily bonus design, as defined in the Publisher Dashboard.
Whether the daily bonus design is active.
The type of offer design. In this case, ‘daily bonus’.
The name of the daily bonus design, as defined in the Publisher Dashboard.
The description of the daily bonus design, as defined in the Publisher Dashboard.
The background image of the daily bonus design, as defined in the Publisher Dashboard.
Details on the daily bonus template and design.
Show child attributes
The template type, as configured in the Publisher Dashboard.
The title of the daily bonus, as configured in the Publisher Dashboard.
The font size of the daily bonus title, as configured in the Publisher Dashboard.
The font weight of the daily bonus title, as configured in the Publisher Dashboard.
Details on the font color of the daily bonus title as configured in the Publisher Dashboard. If the font color is set to linear, both 'colorOne' and 'colorTwo' will be returned. 'colorThree' may also be returned, if configured.
Show child attributes
The font color of the daily bonus title.
The second font color of the daily bonus title. Relevant only if the font color is set to linear.
The third font color of the daily bonus title. Relevant only if the font color is set to linear.
Details on the background color of the daily bonus title as configured in the Publisher Dashboard. If the background color is set to linear, the direction will be returned along with ‘colorOne’ and ‘colorTwo’.
Show child attributes
The background color of the daily bonus title.
The second background color of the daily bonus title. Relevant only if the background color is set to linear.
The direction of the linear gradient. Relevant only if the background color is set to linear.
A sequence of products in the daily bonus.
Show child attributes
The order of the product in the daily bonus.
List of products in the daily bonus.
Show child attributes
The unique ID of the product.
The quantity of the product in the daily bonus offer.
Specifies the display priority of a product within the daily bonus. Either Main or Sub.
The price of the product in cents. The value must be either 0 (free), or by minimum 80 cents.
Date the daily bonus was created.
Date the daily bonus was updated.
Was this page helpful?