curl --request POST \
--url https://hml.4seletpay.com.br/api/v1/subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'account: <account>' \
--data '
{
"international": false,
"client": {
"client_ip": "192.168.1.100",
"name": "Carlos Ferreira",
"email": "carlos@exemplo.com.br",
"gender": "Male",
"birthdate": "1985-06-20",
"phone": {
"ddi": 55,
"ddd": 11,
"number": "977776666"
},
"document": {
"type": "CPF",
"number": "111.222.333-44"
},
"address": {
"zipcode": "04538-132",
"street": "Rua Fidêncio Ramos",
"number": 302,
"neighborhood": "Vila Olímpia",
"complement": "Torre B",
"city": "São Paulo",
"state": "SP",
"country": "Brasil"
}
},
"subscription": {
"interval": 30,
"code": "plano_mensal_001",
"description": "Plano Mensal Premium",
"installments": 1,
"max_invoices": 12,
"minimum_price": 9990,
"billing_type": "prepaid",
"discounts": {
"cycles": 1,
"value": 10,
"type": "percentage"
},
"metadata": {
"origem": "site"
}
},
"payment": {
"type": "CreditCard",
"card": {
"number": "4111111111111111",
"name": "CARLOS FERREIRA",
"month": "08",
"year": "28",
"security_code": "456"
}
},
"items": [
{
"id": "plano_premium",
"description": "Acesso Premium Mensal",
"amount": 99.9,
"quantity": 1
}
]
}
'