Criar Plano de Assinatura
Deve criar um novo plano de assinatura
Autorizações
Corpo
titlestring · máx: 60ObrigatórioExample:
Titulo do Plano
descriptionstring · máx: 500OpcionalExample:
Descrição do Plano
activebooleanObrigatórioExample:
false
Respostas
201
Plano criado com sucesso
application/json
400
Requisição inválida
application/json
401
Não autorizado
application/json
post
POST /v1/plans HTTP/1.1
Host: api.barte.com
X-Token-Api: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 273
{
"title": "Titulo do Plano",
"description": "Descrição do Plano",
"active": false,
"bullets": [
{
"title": "Benefício do plano",
"description": "Descrição do benefício"
}
],
"values": [
{
"type": "MONTHLY",
"valuePerMonth": 99.9
}
],
"acceptPaymentMethods": [
"CREDIT_CARD",
"BANK_SLIP",
"PIX"
]
}
{
"uuid": "0fcf54ea-08b9-4e53-bd87-8132f053c861",
"title": "Titulo do Plano",
"description": "Descrição do Plano",
"bullets": [
{
"title": "Benefício do plano",
"description": "Descrição do benefício"
}
],
"active": false,
"values": [
{
"type": "MONTHLY",
"valuePerMonth": 99.9
}
],
"acceptPaymentMethods": [
"CREDIT_CARD",
"BANK_SLIP",
"PIX"
]
}
Atualizado
Isto foi útil?