POST
/
v2
/
offer
  curl -X POST \
  'https://api.appcharge.com/v2/offer' \
  -H 'Content-Type: application/json' \
  -d '{
      "publisherOfferId": "checkout-link-1",
      "name": "My Checkout Link Offer",
      "displayName": "My Checkout Link Offer",
      "type": "CheckoutLink",
      "active": true,
      "productsSequence": [
          {
              "index": 1,
              "playerAvailability": 12,
              "products": [
                  {
                      "priority": "Sub",
                      "publisherProductId": "6cb43621ccf1",
                      "quantity": "100",
                  }
              ],
              "priceInUsdCents": 1000
          }
      ],
      "productSale": {
          "type": "percentage",
          "sale": 100
      },
      "priceDiscount": {
          "type": "percentage",
          "discount": 20
      },
      "description": "This is my checkout link offer description.",
      "offerUiId": "9ac77ff889b",
      "offerExternalUiId": "9ac22377ff889cc",
      "segments": [
          "New User"
      ],
      "badges": [
          {
          "publisherBadgeId": "22ac77ff889b"
          }
      ]
      }'
{
  "offerId": "867f5b309118",
  "publisherId": "35nb7861ec9924a6b69a0fe59",
  "publisherOfferId": "checkout-link-1",
  "name": "My Checkout Link Offer",
  "displayName": "My Checkout Link Offer",
  "type": "CheckoutLink",
  "active": true,
  "segments": [
      "New User"
  ],
  "productsSequence": [
      {
          "index": 1,
          "playerAvailability": 12,
          "products": [
              {
                  "priority": "Sub",
                  "publisherProductId": "6cb43621ccf1",
                  "quantity": "100",
              }
          ],
          "priceInUsdCents": 1000,
          "playerClickedTtl": 300
      }
  ],
  "badges": [
      {
      "publisherBadgeId": "22ac77ff889b"
      }
  ],
  "productSale": {
      "type": "percentage",
      "sale": 100
  },
  "priceDiscount": {
      "type": "percentage",
      "discount": 20
  },
  "description": "This is my checkout link offer description.",
  "deeplinkUrl": "https://best-game.appcharge.com/login/campaign/YL2bAHqnuSMBhXIwMJbEM",
  "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 '{
      "publisherOfferId": "checkout-link-1",
      "name": "My Checkout Link Offer",
      "displayName": "My Checkout Link Offer",
      "type": "CheckoutLink",
      "active": true,
      "productsSequence": [
          {
              "index": 1,
              "playerAvailability": 12,
              "products": [
                  {
                      "priority": "Sub",
                      "publisherProductId": "6cb43621ccf1",
                      "quantity": "100",
                  }
              ],
              "priceInUsdCents": 1000
          }
      ],
      "productSale": {
          "type": "percentage",
          "sale": 100
      },
      "priceDiscount": {
          "type": "percentage",
          "discount": 20
      },
      "description": "This is my checkout link offer description.",
      "offerUiId": "9ac77ff889b",
      "offerExternalUiId": "9ac22377ff889cc",
      "segments": [
          "New User"
      ],
      "badges": [
          {
          "publisherBadgeId": "22ac77ff889b"
          }
      ]
      }'
{
  "offerId": "867f5b309118",
  "publisherId": "35nb7861ec9924a6b69a0fe59",
  "publisherOfferId": "checkout-link-1",
  "name": "My Checkout Link Offer",
  "displayName": "My Checkout Link Offer",
  "type": "CheckoutLink",
  "active": true,
  "segments": [
      "New User"
  ],
  "productsSequence": [
      {
          "index": 1,
          "playerAvailability": 12,
          "products": [
              {
                  "priority": "Sub",
                  "publisherProductId": "6cb43621ccf1",
                  "quantity": "100",
              }
          ],
          "priceInUsdCents": 1000,
          "playerClickedTtl": 300
      }
  ],
  "badges": [
      {
      "publisherBadgeId": "22ac77ff889b"
      }
  ],
  "productSale": {
      "type": "percentage",
      "sale": 100
  },
  "priceDiscount": {
      "type": "percentage",
      "discount": 20
  },
  "description": "This is my checkout link offer description.",
  "deeplinkUrl": "https://best-game.appcharge.com/login/campaign/YL2bAHqnuSMBhXIwMJbEM",
  "createdAt": "2025-04-06T10:00:44.528Z",
  "updatedAt": "2025-04-06T10:00:44.528Z"
}

Headers

x-publisher-token
string
required

The publisher token, as displayed in the Publisher Dashboard.

Body

application/json

Response

201
application/json

Checkout Link Offer created successfully.

The response is of type object.