Create a new phase
POST/organizations/:organizationId/projects/:projectId/platforms/android/subscriptions/:productId/base-plans/:basePlanId/offers/:offerId/phases
Create a new phase
Request
Path Parameters
- application/json
Body
required
- Array [
- ]
Possible values: [introductory_price
, regular
, trial
, free_trial
, discounted_recurring_payment
, single_payment
]
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
Responses
- 201
- 404
Successfully created phase.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
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
{
"id": "abc123",
"type": "free_trial",
"duration": "P7D",
"priceOverride": "fixed_amount",
"billingPeriods": 3,
"prices": [
{
"country": "US",
"priceAmountMicros": 19990000,
"currency": "USD"
}
]
}
Error occurred while creating phase.