Get a single offer by ID
GET/v1/organizations/:organizationId/projects/:projectId/platforms/android/subscriptions/:productId/base-plans/:basePlanId/offers/:offerId
Get a single offer by ID
Request
Path Parameters
Query Parameters
Responses
- 200
- 404
Successfully retrieved offer.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
The unique identifier for the offer.
The unique name identifier for the offer.
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
The duration of the offer.
Possible values: [new_customer_acquisition
, upgrade
, developer_determined
]
The eligibility criteria for the offer.
Tags associated with the offer.
phases object[]
The phases associated with the offer.
The unique identifier for the phase.
Possible values: [introductory_price
, regular
, trial
, free_trial
, discounted_recurring_payment
, single_payment
]
The type of the phase.
Duration of the phase
Possible values: [fixed_amount
, percentage_discount
, absolute_discount
]
Override type for the phase price
Number of billing periods for which the override applies
prices object[]
Prices and availability for different countries
The country code
The price
Indicates if the offer is active.
The creation date of the base plan
The last update date of the base plan
{
"id": "abc123",
"name": "abc123",
"duration": "30 days",
"eligibility": "new_customer_acquisition",
"tags": [
"tag1",
"tag2"
],
"phases": [
{
"id": "abc123",
"type": "free_trial",
"duration": "P7D",
"priceOverride": "fixed_amount",
"billingPeriods": 3,
"prices": [
{
"country": "US",
"priceAmountMicros": 19990000,
"currency": "USD"
}
]
}
],
"active": true,
"createdAt": "2022-01-01",
"updatedAt": "2022-01-02"
}
Offer not found or error occurred while fetching offer.