---
title: "Create Plan"
method: POST
path: "/plans"
tags: ["Plans"]
---

# Create Plan

`POST /plans`

Create a new plan for an existing order

## Headers

- `Accept-Language` 'es' | 'en'
- `X-Child-Company-Id` string

## Request body

- PlanRequest — a plan
  - `amount` integer, required — The amount in cents that will be charged on the interval specified.
  - `currency` string — ISO 4217 for currencies, for the Mexican peso it is MXN/USD
  - `expiry_count` integer — 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.
  - `frequency` integer, required — Frequency of the charge, which together with the interval, can be every 3 weeks, every 4 months, every 2 years, every 5 fortnights
  - `id` string — internal reference id
  - `interval` 'week' | 'half_month' | 'month' | 'year', required — The interval of time between each charge.
  - `name` string, required — The name of the plan.
  - `trial_period_days` integer — The number of days the customer will have a free trial.
  - `max_retries` integer — (optional) Specifies the maximum number of retry attempts for a subscription payment before it is canceled.
  - `retry_delay_hours` integer — (optional) Defines the number of hours between subscription payment retry attempts.

## Response `200`

successful

## Other responses

- `401` — authentication error
- `422` — parameter validation error
- `500` — internal server error

---

[API](https://skmtc.net/conekta/apis/conekta-api.md) · [All operations](https://skmtc.net/conekta/apis/conekta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conekta/conekta-api/revisions/029df3052bca/schema)
