Overview
What's New
Web Store
- Player Authentication
- Offers
- Offers V1 API
- Offers V2 API
- Introduction
- Bundles
- Special Offers
- Rolling Offers
- Popups
- Checkout Link Offers
- GETGet Offers
- DELDelete Offers
- Personalization
- Webhooks
Checkout
- Checkout Session
- Orders
- Finance and Analytics
- Checkout Webhooks
Events Center
- Introduction
- Login Events
- Store Interaction Events
- Error Events
- Order Events
- Refund and Dispute Events
Rolling Offers
Create Rolling Offer
Creates a rolling offer.
POST
/
v2
/
offer
Copy
curl -X POST \
'https://api.appcharge.com/v2/offer' \
-H 'Content-Type: application/json' \
-d '{
"type": "Bundle",
"active": true,
"productSale": {
"type": "percentage",
"sale": 100
},
"priceDiscount": {
"type": "percentage",
"discount": 20
},
"publisherOfferId": "229a2affb765",
"name": "My Bundle",
"displayName": "My Bundle",
"description": "This is my bundle description.",
"offerUiId": "ac77ff889b",
"offerExternalUiId": "ac22377ff889cc",
"segments": [
"\"New User\""
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
]
}'
Copy
{
"offerId": "string",
"publisherOfferId": "string",
"name": "string",
"displayName": "string",
"description": "string",
"type": "string",
"active": true,
"segments": [
"string"
],
"offerUi": {
"offerUiId": "string",
"externalId": "string",
"active": true,
"offerUiType": "string",
"name": "string",
"description": "string",
"backgroundImage": "string",
"specialOffer": {
"templateType": "string",
"title": "string",
"fontSize": 0,
"fontWeight": "string",
"fontColor": {
"colorOne": "string",
"colorTwo": "string",
"colorThree": "string"
},
"backgroundColor": {
"colorOne": "string",
"colorTwo": "string",
"direction": "string"
}
}
},
"productsSequence": [
{
"index": 0,
"products": [
{
"publisherProductId": "string",
"quantity": 0
}
],
"priceInUsdCents": 0
}
],
"badges": [
{
"publisherBadgeId": "string"
}
],
"productSale": {
"sale": 0,
"type": "string"
},
"priceDiscount": {
"discount": 0,
"type": "string"
},
"createdAt": "2025-04-06T10:00:44.528Z",
"updatedAt": "2025-04-06T10:00:44.528Z"
}
Copy
curl -X POST \
'https://api.appcharge.com/v2/offer' \
-H 'Content-Type: application/json' \
-d '{
"type": "Bundle",
"active": true,
"productSale": {
"type": "percentage",
"sale": 100
},
"priceDiscount": {
"type": "percentage",
"discount": 20
},
"publisherOfferId": "229a2affb765",
"name": "My Bundle",
"displayName": "My Bundle",
"description": "This is my bundle description.",
"offerUiId": "ac77ff889b",
"offerExternalUiId": "ac22377ff889cc",
"segments": [
"\"New User\""
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
]
}'
Copy
{
"offerId": "string",
"publisherOfferId": "string",
"name": "string",
"displayName": "string",
"description": "string",
"type": "string",
"active": true,
"segments": [
"string"
],
"offerUi": {
"offerUiId": "string",
"externalId": "string",
"active": true,
"offerUiType": "string",
"name": "string",
"description": "string",
"backgroundImage": "string",
"specialOffer": {
"templateType": "string",
"title": "string",
"fontSize": 0,
"fontWeight": "string",
"fontColor": {
"colorOne": "string",
"colorTwo": "string",
"colorThree": "string"
},
"backgroundColor": {
"colorOne": "string",
"colorTwo": "string",
"direction": "string"
}
}
},
"productsSequence": [
{
"index": 0,
"products": [
{
"publisherProductId": "string",
"quantity": 0
}
],
"priceInUsdCents": 0
}
],
"badges": [
{
"publisherBadgeId": "string"
}
],
"productSale": {
"sale": 0,
"type": "string"
},
"priceDiscount": {
"discount": 0,
"type": "string"
},
"createdAt": "2025-04-06T10:00:44.528Z",
"updatedAt": "2025-04-06T10:00:44.528Z"
}
Headers
The publisher token used for authentication.
Body
application/json
Response
201
application/json
Rolling offer created successfully.
The response is of type object
.
Was this page helpful?
Copy
curl -X POST \
'https://api.appcharge.com/v2/offer' \
-H 'Content-Type: application/json' \
-d '{
"type": "Bundle",
"active": true,
"productSale": {
"type": "percentage",
"sale": 100
},
"priceDiscount": {
"type": "percentage",
"discount": 20
},
"publisherOfferId": "229a2affb765",
"name": "My Bundle",
"displayName": "My Bundle",
"description": "This is my bundle description.",
"offerUiId": "ac77ff889b",
"offerExternalUiId": "ac22377ff889cc",
"segments": [
"\"New User\""
],
"badges": [
{
"publisherBadgeId": "22ac77ff889b"
}
]
}'
Copy
{
"offerId": "string",
"publisherOfferId": "string",
"name": "string",
"displayName": "string",
"description": "string",
"type": "string",
"active": true,
"segments": [
"string"
],
"offerUi": {
"offerUiId": "string",
"externalId": "string",
"active": true,
"offerUiType": "string",
"name": "string",
"description": "string",
"backgroundImage": "string",
"specialOffer": {
"templateType": "string",
"title": "string",
"fontSize": 0,
"fontWeight": "string",
"fontColor": {
"colorOne": "string",
"colorTwo": "string",
"colorThree": "string"
},
"backgroundColor": {
"colorOne": "string",
"colorTwo": "string",
"direction": "string"
}
}
},
"productsSequence": [
{
"index": 0,
"products": [
{
"publisherProductId": "string",
"quantity": 0
}
],
"priceInUsdCents": 0
}
],
"badges": [
{
"publisherBadgeId": "string"
}
],
"productSale": {
"sale": 0,
"type": "string"
},
"priceDiscount": {
"discount": 0,
"type": "string"
},
"createdAt": "2025-04-06T10:00:44.528Z",
"updatedAt": "2025-04-06T10:00:44.528Z"
}
Assistant
Responses are generated using AI and may contain mistakes.