POST
/
v2
/
offer
  curl -X POST \
  'https://api.appcharge.com/v2/offer' \
  --header 'Content-Type: application/json' \
  --data '{
      "publisherOfferId": "post-purchase-1",
      "name": "Purchase Reward Offer",
      "displayName": "Purchase Reward Offer",
      "description": "Post purchase offer for VIP players.",
      "type": "PopUp",
      "subType": "PostPurchase",
      "active": true,
      "priority": 1,
      "offerExternalUiId": "popup",
      "segments": [],
      "productsSequence": [
          {
              "index": 1,
              "products": [
                  {
                      "priority":"Main",
                      "publisherProductId": "TreasureChest",
                      "quantity": 10
                  }
              ],
              "priceInUsdCents": 2000
          }
      ]
  }'
{
  "publisherId": "35nb7861ec9924a6b69a0fe59",
  "publisherOfferId": "post-purchase-1",
  "name": "Purchase Reward Offer",
  "displayName": "Purchase Reward Offer",
  "description": "Post purchase offer for VIP players.",
  "type": "PopUp",
  "subType": "PostPurchase",
  "active": true,
  "segments": [],
  "offerUi": {
      "offerUiId": "68b41c5aa1c5b1a284737e9b",
      "active": true,
      "offerUiType": "PopUp",
      "name": "popup",
      "description": "description",
      "backgroundImage": "https://media.appcharge.com/media/35nb7861ec9924a6b69a0fe59/2755379465856__fa883338-5790-47c8-a6a0-23cb43db58844",
      "externalId": "popup"
  },
  "productsSequence": [
      {
          "index": 1,
          "products": [
              {
                  "product": {
                      "publisherProductId": "TreasureChest",
                      "name": "Treasure Chest",
                      "type": "Quantity",
                      "prefix": "$",
                      "suffix": "M",
                      "priority": "Main",
                      "images": [
                          {
                              "type": "product",
                              "url": "https://media.appcharge.com/media/35nb7861ec9924a6b69a0fe59/2208472.png"
                          },
                          {
                              "type": "productPrefix",
                              "url": ""
                          }
                      ],
                      "displayName": "Treasure Chest"
                  }
              }
          ]
      }
  ],
  "priority": 1,
  "showAfter": "purchase",
  "triggers": [
      {
          "type": "event",
          "eventName": "purchase",
          "every": 1,
          "rules": []
      }
  ],
  "createdAt": "2025-09-01T14:16:09.499Z",
  "updatedAt": "2025-09-01T14:16:09.499Z",
  "offerId": "68b5aaa9b73fceb9ffc26f9b"
}
  curl -X POST \
  'https://api.appcharge.com/v2/offer' \
  --header 'Content-Type: application/json' \
  --data '{
      "publisherOfferId": "post-purchase-1",
      "name": "Purchase Reward Offer",
      "displayName": "Purchase Reward Offer",
      "description": "Post purchase offer for VIP players.",
      "type": "PopUp",
      "subType": "PostPurchase",
      "active": true,
      "priority": 1,
      "offerExternalUiId": "popup",
      "segments": [],
      "productsSequence": [
          {
              "index": 1,
              "products": [
                  {
                      "priority":"Main",
                      "publisherProductId": "TreasureChest",
                      "quantity": 10
                  }
              ],
              "priceInUsdCents": 2000
          }
      ]
  }'
{
  "publisherId": "35nb7861ec9924a6b69a0fe59",
  "publisherOfferId": "post-purchase-1",
  "name": "Purchase Reward Offer",
  "displayName": "Purchase Reward Offer",
  "description": "Post purchase offer for VIP players.",
  "type": "PopUp",
  "subType": "PostPurchase",
  "active": true,
  "segments": [],
  "offerUi": {
      "offerUiId": "68b41c5aa1c5b1a284737e9b",
      "active": true,
      "offerUiType": "PopUp",
      "name": "popup",
      "description": "description",
      "backgroundImage": "https://media.appcharge.com/media/35nb7861ec9924a6b69a0fe59/2755379465856__fa883338-5790-47c8-a6a0-23cb43db58844",
      "externalId": "popup"
  },
  "productsSequence": [
      {
          "index": 1,
          "products": [
              {
                  "product": {
                      "publisherProductId": "TreasureChest",
                      "name": "Treasure Chest",
                      "type": "Quantity",
                      "prefix": "$",
                      "suffix": "M",
                      "priority": "Main",
                      "images": [
                          {
                              "type": "product",
                              "url": "https://media.appcharge.com/media/35nb7861ec9924a6b69a0fe59/2208472.png"
                          },
                          {
                              "type": "productPrefix",
                              "url": ""
                          }
                      ],
                      "displayName": "Treasure Chest"
                  }
              }
          ]
      }
  ],
  "priority": 1,
  "showAfter": "purchase",
  "triggers": [
      {
          "type": "event",
          "eventName": "purchase",
          "every": 1,
          "rules": []
      }
  ],
  "createdAt": "2025-09-01T14:16:09.499Z",
  "updatedAt": "2025-09-01T14:16:09.499Z",
  "offerId": "68b5aaa9b73fceb9ffc26f9b"
}

Headers

x-publisher-token
string
required

The publisher token used for authentication.

Body

application/json

Response

201
application/json

Post purchase offer created successfully.

The response is of type object.