Overview
What's New
Web Store
- Player Authentication
- Offers
- Offers V1 API
- Introduction
- POSTCreate Offer
- PUTUpdate Offer
- DELDelete Offer
- POSTGet Offer
- Rolling Offer V1 API
- Popups V1 API
- Offers V2 API
- 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 Offer V1 API
Update Rolling Offer
PUT
/
offering
/
rolling-offer
/
{rollingOfferSKU}
Copy
curl --request PUT \
--url https://api-sandbox.appcharge.com/offering/rolling-offer/{rollingOfferSKU} \
--header 'Content-Type: application/json' \
--header 'x-publisher-token: <x-publisher-token>' \
--data '{
"publisherOfferId": "<string>",
"name": "<string>",
"type": "RollingOffer",
"active": true,
"priority": 123,
"offerUiId": "<string>",
"offerExternalUiId": "<string>",
"segments": [
"<string>"
],
"productsSequence": [
{
"index": 123,
"products": [
{
"publisherProductId": "<string>",
"quantity": 123
}
],
"priceInUsdCents": 123,
"priceDiscount": {
"discount": 123,
"type": "percentage"
},
"productSale": {
"sale": 123,
"type": "percentage"
},
"badges": [
{
"publisherBadgeId": "<string>"
}
]
}
],
"schedule": {
"permanent": true,
"timeFrames": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
}
}'
Copy
{
"publisherOfferId": "<string>",
"offerId": "<string>",
"name": "<string>",
"type": "<string>",
"active": true,
"priority": 123,
"segments": [
"<string>"
],
"offerUi": {
"offerUiId": "<string>",
"offerUIType": "<string>",
"description": "<string>",
"backgroundImage": "<string>",
"borderColor": {},
"borderWidth": 123,
"externalId": "<string>"
},
"productsSequence": [
{
"index": 123,
"priceInUsdCents": 123,
"products": [
{
"publisherProductId": "<string>",
"quantity": 123
}
],
"badges": [
{
"publisherBadgeId": "<string>"
}
]
}
],
"schedule": {
"permanent": true,
"timeFrames": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Headers
The publisher token used for authentication.
Path Parameters
The SKU of the rolling offer.
Body
application/json
Response
200
application/json
Rolling offer updated successfully.
The response is of type object
.
Was this page helpful?
Copy
curl --request PUT \
--url https://api-sandbox.appcharge.com/offering/rolling-offer/{rollingOfferSKU} \
--header 'Content-Type: application/json' \
--header 'x-publisher-token: <x-publisher-token>' \
--data '{
"publisherOfferId": "<string>",
"name": "<string>",
"type": "RollingOffer",
"active": true,
"priority": 123,
"offerUiId": "<string>",
"offerExternalUiId": "<string>",
"segments": [
"<string>"
],
"productsSequence": [
{
"index": 123,
"products": [
{
"publisherProductId": "<string>",
"quantity": 123
}
],
"priceInUsdCents": 123,
"priceDiscount": {
"discount": 123,
"type": "percentage"
},
"productSale": {
"sale": 123,
"type": "percentage"
},
"badges": [
{
"publisherBadgeId": "<string>"
}
]
}
],
"schedule": {
"permanent": true,
"timeFrames": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
}
}'
Copy
{
"publisherOfferId": "<string>",
"offerId": "<string>",
"name": "<string>",
"type": "<string>",
"active": true,
"priority": 123,
"segments": [
"<string>"
],
"offerUi": {
"offerUiId": "<string>",
"offerUIType": "<string>",
"description": "<string>",
"backgroundImage": "<string>",
"borderColor": {},
"borderWidth": 123,
"externalId": "<string>"
},
"productsSequence": [
{
"index": 123,
"priceInUsdCents": 123,
"products": [
{
"publisherProductId": "<string>",
"quantity": 123
}
],
"badges": [
{
"publisherBadgeId": "<string>"
}
]
}
],
"schedule": {
"permanent": true,
"timeFrames": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.