POST
/
v2
/
offer
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"
          }
      ]
      }'
{
  "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 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"
          }
      ]
      }'
{
  "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

x-publisher-token
string
required

The publisher token used for authentication.

Body

application/json

Response

201
application/json

Special offer created successfully.

The response is of type object.