Create a new offer
POST/v1/organizations/:organizationId/projects/:projectId/platforms/android/subscriptions/:productId/base-plans/:basePlanId/offers
Create a new offer
Request
Path Parameters
- application/json
Body
required
Possible values: >= 3 characters
and <= 50 characters
Name of the offer
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
Duration of the offer
Possible values: [new_customer_acquisition
, upgrade
, developer_determined
]
Eligibility criteria for the offer
Tags associated with the offer
Responses
- 201
- 400
Successfully created 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"
}
Error occurred while creating offer.