Get all offers
GET/v1/organizations/:organizationId/projects/:projectId/platforms/android/subscriptions/:productId/base-plans/:basePlanId/offers
Get all offers
Request
Path Parameters
Query Parameters
Possible values: >= 1
Default value: 1
Page number starting from 1.
Possible values: >= 1
and <= 100
Default value: 10
Limit the number of results returned. Default is 10.
Responses
- 200
- 404
Successfully retrieved offers.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
data object[]required
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
metadata objectrequired
The current page number.
Number of items per page.
Total number of items.
The next page number, or null if this is the last page.
The previous page number, or null if this is the first page.
{
"data": [
{
"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"
}
],
"metadata": {
"currentPage": 1,
"limit": 10,
"total": 100,
"nextPage": 2,
"previousPage": null
}
}
Error occurred while fetching offers.