PUT
/
offering
/
rolling-offer
/
{rollingOfferSKU}
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>"
      }
    ]
  }
}'
{
  "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

x-publisher-token
string
required

The publisher token used for authentication.

Path Parameters

publisherOfferId
string
required

The SKU of the rolling offer.

Body

application/json

Response

200
application/json

Rolling offer updated successfully.

The response is of type object.