Plans

Update Plan

put/plans/{id}

Request

Path parameters

idstring required
Example:6307a60c41de27127515a575

Identifier of the resource

Headers

Accept-Language'es' | 'en'

Use for knowing which language to use

X-Child-Company-Idstring

In the case of a holding company, the company id of the child company to which will process the request.

Request body

amountinteger

The amount in cents that will be charged on the interval specified.

currencystring

ISO 4217 for currencies, for the Mexican peso it is MXN/USD

expiry_countinteger

Number of repetitions of the frequency NUMBER OF CHARGES TO BE MADE, considering the interval and frequency, this evolves over time, but is subject to the expiration count.

namestring

The name of the plan.

Example request

{
  "amount": 10000,
  "currency": "MXN",
  "expiry_count": 12,
  "name": "Extra Plan3"
}

Response

successful

amountinteger
created_atinteger
currencystring
expiry_countinteger nullable
frequencyinteger
idstring
intervalstring
livemodeboolean
namestring
objectstring
trial_period_daysinteger nullable
max_retriesinteger
retry_delay_hoursinteger

Example response

{
  "amount": 10000,
  "created_at": 1666900846,
  "currency": "MXN",
  "expiry_count": 12,
  "frequency": 1,
  "id": "gold-plan",
  "interval": "month",
  "livemode": true,
  "name": "Extra Plan3",
  "object": "plan",
  "max_retries": 3,
  "retry_delay_hours": 48
}

Changes

No recorded changes to this operation across all 2 revisions of this API.