---
title: "Crear"
method: POST
path: "/subscriptions"
tags: ["Suscripciones"]
---

# Crear

`POST /subscriptions`

## Request

- Base URL: `https://api.ventipay.com/v1`
- URL: `https://api.ventipay.com/v1/subscriptions`
- Auth: HTTP bearer

Crea un nuevo objeto `Subscription`. Una vez creada la suscripción, el cliente debe autorizar su inicio.

## Request body

- object
  - `billing_cycle_anchor` 'now' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31'
  - `cancel_url` string
  - `cancel_url_method` 'get' | 'post'
  - `currency` 'clp' | 'clf'
  - `custom_fields` string[]
  - `default_products` object[]: IDs de product
    - `id` string
    - `quantity` integer
  - `default_tax_rates` object[]: IDs de tax_rate
    - `id` string
  - `description` string
  - `duration` integer
  - `interval` '1day' | '1week' | '2weeks' | '1month' | '3months' | '6months' | '1year'
  - `metadata` string, json
  - `name` string
  - `proration_behavior` 'create_prorations' | 'full' | 'none'
  - `success_url` string
  - `success_url_method` 'get' | 'post'
  - `trial_days` integer

---

[API](https://skmtc.dev/ventipay/apis/suscripciones.md) - [All operations](https://skmtc.dev/ventipay/apis/suscripciones/llms.txt) - [OpenAPI document](https://skmtc.dev/ventipay/apis/suscripciones/revisions/8189bbaa5f79?raw)
