v1
latestOpenAPI 3.1.02026-07-241040774.6 KBCriar plano
Este recurso possibilita a criação de um plan que poderá ser utilizado futuramente para a criação de uma assinatura.
post/plans
Request body
Response
200
Example response
{
"id": "plan_0z5Jd4dFk3t9Jo4m",
"name": "Plano Gold",
"url": "plans/plan_0z5Jd4dFk3t9Jo4m/simu/plano-gold",
"minimum_price": 10000,
"interval": "month",
"interval_count": 3,
"billing_type": "prepaid",
"payment_methods": [
"credit_card"
],
"installments": [
3
],
"status": "active",
"currency": "BRL",
"created_at": "2019-01-22T17:24:02Z",
"updated_at": "2019-01-22T17:24:02Z",
"items": [
{
"id": "pi_d97LMgRCmOFdWREe",
"name": "Musculação",
"quantity": 1,
"status": "active",
"created_at": "2019-01-22T17:24:02Z",
"updated_at": "2019-01-22T17:24:02Z",
"pricing_scheme": {
"price": 18990,
"scheme_type": "unit"
}
}
],
"metadata": {
"id": "my_plan_id"
}
}