curl -X PUT \
'https://api.appcharge.com/v2/offer/${offerId}' \
-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"
}
]
}'
{
"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"
}
Updates a rolling offer.
curl -X PUT \
'https://api.appcharge.com/v2/offer/${offerId}' \
-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"
}
]
}'
{
"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"
}
curl -X PUT \
'https://api.appcharge.com/v2/offer/${offerId}' \
-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"
}
]
}'
{
"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"
}
The publisher token used for authentication.
The SKU of the rolling offer.
Rolling offer updated successfully.
The response is of type object
.
Was this page helpful?