curl --request POST \
--url https://api-sandbox.appcharge.com/offering/rolling-offer \
--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>"
}
]
}
}'
{
"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"
}
curl --request POST \
--url https://api-sandbox.appcharge.com/offering/rolling-offer \
--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>"
}
]
}
}'
{
"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"
}
The publisher token used for authentication.
Rolling offer created successfully.
The response is of type object
.
Was this page helpful?