GET
/
app-store
/
offer-codes
/
{offer_code_id}
curl --request GET \
  --url https://api-v1.winwinkit.com/app-store/offer-codes/{offer_code_id} \
  --header 'x-api-key: <x-api-key>'
{
  "data": {
    "offerCode": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Three months at 50% off",
      "customer_eligibilities": [
        "NEW",
        "EXISTING",
        "EXPIRED"
      ],
      "offer_eligibility": "STACK_WITH_INTRO_OFFERS",
      "duration": "THREE_MONTHS",
      "offer_mode": "PAY_AS_YOU_GO",
      "number_of_periods": 1,
      "prices": [
        {
          "territory": "USA",
          "price": "99.99",
          "currency": "USD"
        }
      ]
    },
    "subscription": {
      "id": "1234567890",
      "product_id": "com.winwinkit.app.yearly",
      "name": "Yearly",
      "subscription_period": "ONE_YEAR",
      "prices": [
        {
          "territory": "USA",
          "price": "99.99",
          "currency": "USD"
        }
      ]
    }
  }
}

Headers

x-api-key
string
required

The API key to authenticate with.

Path Parameters

offer_code_id
string
required

The offer code id to retrieve.

Response

200
application/json

Offer Code object.

The response is of type object.