Create Base Plan
POST/v1/organizations/:organizationId/projects/:projectId/platforms/android/subscriptions/:productId/base-plans
Create Base Plan
Request
Path Parameters
- application/json
Body
required
- Array [
- ]
Possible values: <= 50 characters
, Value must match regular expression /^[a-z0-9][a-zA-Z0-9_\.]*$/
The unique identifier of the base plan
Possible values: [auto_renewing
, prepaid
]
The type of the base plan
Possible values: Value must match regular expression /^[a-z][a-z0-9-]{0,19}$/
Tags associated with the base plan
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
The billing period of the base plan
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
The grace period of the base plan
Possible values: [charge_at_next_billing_date
, charge_immediately
]
The customer changes of the base plan
Possible values: [allow
, dont_allow
]
The resubscribe option of the base plan
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
The duration of the base plan
Possible values: [allow
, dont_allow
]
The extension allowance of the base plan
prices object[]
Prices and availability for different countries
The country code
The price
Responses
- 201
- 400
Create Base Plan
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
- Array [
- ]
The unique identifier of the base plan
Possible values: Value must match regular expression /^[a-z0-9][a-zA-Z0-9_\.]*$/
The unique name of the base plan
Possible values: [auto_renewing
, prepaid
]
Type of the base plan
Possible values: Value must match regular expression /^[a-z][a-z0-9-]{0,19}$/
Tags associated with the base plan
offers object[]
The offers associated with the base plan
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
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
The billing period of the base plan
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
The grace period of the base plan
Possible values: [charge_at_next_billing_date
, charge_immediately
]
The customer changes of the base plan
Possible values: [allow
, dont_allow
]
The resubscribe option of the base plan
Possible values: Value must match regular expression /^P(\d+[YMWD])+$/
The duration of the base plan
Possible values: [allow
, dont_allow
]
The extension allowance of the base plan
The count of countries with defined prices in the base plan
prices object[]
The list of countries with defined prices in the base plan
The country code
The price
The status of the base plan
The creation date of the base plan
The last update date of the base plan
{
"id": "1234",
"name": "my_baseplan_1234",
"type": "auto_renewing",
"tags": [
"tag1",
"tag2"
],
"offers": [
{
"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"
}
],
"billingPeriod": "P1M",
"gracePeriod": "P3D",
"customerChanges": "charge_immediately",
"resubscribe": "allow",
"duration": "P1Y",
"allowExtension": "allow",
"countryCount": "10",
"prices": [
{
"country": "US",
"price": 10
},
{
"country": "GB",
"price": 15
}
],
"deactivatedAt": "active",
"createdAt": "2022-01-01",
"updatedAt": "2022-01-02"
}
Bad Request