Skip to main content

Update Base Plan

PATCH 

/v1/organizations/:organizationId/projects/:projectId/platforms/android/subscriptions/:productId/base-plans/:basePlanId

Update Base Plan

Request

Path Parameters

    organizationId stringrequired
    projectId stringrequired
    productId stringrequired
    basePlanId stringrequired

Body

required
    name stringrequired

    Possible values: Value must match regular expression /^[a-z0-9][a-zA-Z0-9_\.]*$/

    The unique identifier of the base plan

    type stringrequired

    Possible values: [auto_renewing, prepaid]

    The type of the base plan

    tags string[]required

    Possible values: Value must match regular expression /^[a-z][a-z0-9-]{0,19}$/

    Tags associated with the base plan

    prices object[]

    Prices and availability for different countries

  • Array [
  • country stringrequired

    The country code

    priceAmountMicros int64required

    The price

  • ]
  • deactivatedAt date-timenullablerequired

    The timestamp when the base plan was deactivated

Responses

Base Plan updated successfully

Schema
    id stringrequired

    The unique identifier of the base plan

    name stringrequired

    Possible values: Value must match regular expression /^[a-z0-9][a-zA-Z0-9_\.]*$/

    The unique name of the base plan

    type stringrequired

    Possible values: [auto_renewing, prepaid]

    Type of the base plan

    tags string[]required

    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

  • Array [
  • id stringrequired

    The unique identifier for the offer.

    name stringrequired

    The unique name identifier for the offer.

    duration stringrequired

    Possible values: Value must match regular expression /^P(\d+[YMWD])+$/

    The duration of the offer.

    eligibility stringrequired

    Possible values: [new_customer_acquisition, upgrade, developer_determined]

    The eligibility criteria for the offer.

    tags string[]required

    Tags associated with the offer.

    phases object[]

    The phases associated with the offer.

  • Array [
  • id stringrequired

    The unique identifier for the phase.

    type PhaseTyperequired

    Possible values: [introductory_price, regular, trial, free_trial, discounted_recurring_payment, single_payment]

    The type of the phase.

    duration stringrequired

    Duration of the phase

    priceOverride stringrequired

    Possible values: [fixed_amount, percentage_discount, absolute_discount]

    Override type for the phase price

    billingPeriods numberrequired

    Number of billing periods for which the override applies

    prices object[]

    Prices and availability for different countries

  • Array [
  • country stringrequired

    The country code

    priceAmountMicros int64required

    The price

  • ]
  • ]
  • active booleanrequired

    Indicates if the offer is active.

    createdAt date-timerequired

    The creation date of the base plan

    updatedAt date-timerequired

    The last update date of the base plan

  • ]
  • billingPeriod stringrequired

    Possible values: Value must match regular expression /^P(\d+[YMWD])+$/

    The billing period of the base plan

    gracePeriod stringrequired

    Possible values: Value must match regular expression /^P(\d+[YMWD])+$/

    The grace period of the base plan

    customerChanges stringrequired

    Possible values: [charge_at_next_billing_date, charge_immediately]

    The customer changes of the base plan

    resubscribe stringrequired

    Possible values: [allow, dont_allow]

    The resubscribe option of the base plan

    duration stringrequired

    Possible values: Value must match regular expression /^P(\d+[YMWD])+$/

    The duration of the base plan

    allowExtension stringrequired

    Possible values: [allow, dont_allow]

    The extension allowance of the base plan

    countryCount numberrequired

    The count of countries with defined prices in the base plan

    prices object[]

    The list of countries with defined prices in the base plan

  • Array [
  • country stringrequired

    The country code

    priceAmountMicros int64required

    The price

  • ]
  • deactivatedAt date-timerequired

    The status of the base plan

    createdAt date-timerequired

    The creation date of the base plan

    updatedAt date-timerequired

    The last update date of the base plan

Loading...