amount string |
REQUIRED Valor total |
---|---|
customer integer |
REQUIRED ID do Cliente |
payment_method string |
REQUIRED Método de pagamento. Valores possíveis: pix, boleto, credit |
description string |
REQUIRED Descrição da assinatura |
first_due_date string |
REQUIRED Data do primeiro vencimento. Formato: YYYY-MM-DD |
frequency string |
REQUIRED Periodicidade. Valores possíveis: 1 = Mensal, 2 = Bimestral, 3 = Trimestral, 6 = Semestral, 12 = Anual |
unlimited boolean |
REQUIRED Recorrência ilimitada (Sem data de encerramento). Valores possíveis: true, false |
max_recurrences integer |
Máximo de recorrências. Informe o nº máximo de cobranças que serão geradas. Obrigatório caso o atributo unlimited seja false. |
payment_type string |
Opção de pagamento. Obrigatório apenas para cobrança no crédito. Valores possíveis: in_cash, installments_customer, interest_free |
max_installments integer |
Máximo de parcelas. Obrigatório apenas para cobrança no crédito com payment_type igual a installments_customer ou interest_free |
Authorization string |
REQUIRED ApiKey [api_key do seller] |
---|---|
Content-Type string |
REQUIRED application/json |
{
"amount":150.00,
"customer": 741,
"payment_method": "boleto",
"description": "teste de assinatura",
"first_due_date": "2019-09-25",
"frequency": "1",
"unlimited": true
}
{
"id": 329,
"allow_duplicate": true,
"amount": "150.00",
"canceled_at": null,
"created_at": "2019-09-03T15:52:24.971382",
"customer": 741,
"customer_id": 741,
"description": "teste de assinatura",
"expired_at": null,
"first_amount": null,
"first_due_date": "2019-09-25",
"frequency": "1",
"generate_days": 5,
"max_recurrences": null,
"next_due_date": "2019-10-25",
"payment_method": "boleto",
"recurrence_day": 25,
"resource_uri": "/api/v1/subscriptions/329/",
"status": "active",
"suspended_at": null,
"unlimited": true
}