API Docs Início Documentação Referência de API Copiar para LLM
POST/api/v1/Installment
Cobrança · Parcelamentos

Método de cadastro de um parcelamento

Cria um novo registro de api.

Visão geral

Método de cadastro de um parcelamento.

Autenticação e pré-requisitos

Requer autenticação. Envie o token no header Authorization: Bearer {{token}} (JWT do AWS Cognito). Integrações servidor-a-servidor podem usar X-Api-Key. Todo tráfego é HTTPS e a credencial nunca vai na URL nem em query string.

Request

Parâmetros

NomeEmTipoObrigatórioDescriçãoExemplo
idempotencequerystringopcionalvalor
registerquerybooleanopcionaltrue

Corpo da requisição

Envie no formato application/json. Corpo obrigatório.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
walletCodeinteger (int64)opcional0
descriptionstringopcional"texto"
operationsarray de stringopcional[ … ]
admissionDatesarray de string (date-time)opcional[ … ]
billingSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
communicationSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
referenceobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
tagsarray de stringopcional[ … ]
payerobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
guarantorobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
billingsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
firstInstructionDebtCollectionstringopcional"texto"
secondInstructionDebtCollectionintegeropcional0
bankCodestringopcional"texto"
walletNumberintegeropcional0
latePaymentInterestAmountPerDayintegeropcional0
creditTypeValuestringopcional"texto"
billingCreateTypeValuestringopcional"texto"
installmentsToCancelarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
interestTypeValuestringopcional"texto"
interestAmountnumber (decimal)opcional1000
fineTypeValuestringopcional"texto"
interestCodeValuestringopcional"texto"
fineAmountnumber (decimal)opcional1000
aprnumber (double)opcional1.99

Detalhe de billings

CampoTipoObrigatórioDescriçãoValoresExemplo
externalIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
documentNumberstringopcional"texto"
amountinteger (int64)opcional0
dueDatestring (date-time)opcional"2025-08-11T13:45:00Z"
iofstringopcional"texto"
deductionintegeropcional0
participantControlNumberstringopcional"texto"
discountintegeropcional0
discountLimitDatestring (date-time)opcional"2025-08-11T13:45:00Z"
discount2integeropcional0
discountLimitDate2string (date-time)opcional"2025-08-11T13:45:00Z"
discount3integeropcional0
discountLimitDate3string (date-time)opcional"2025-08-11T13:45:00Z"

Detalhe de installmentsToCancel

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
installmentStatusstringopcionalCreated, Registered, Paid, Cancelled, Renegotiated, Refinanced"Created"

Exemplo de corpo

{
  "walletCode": 0,
  "description": "texto",
  "operations": [
    "texto"
  ],
  "admissionDates": [
    "2025-08-11T13:45:00Z"
  ],
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "reference": {
    "resource": "CreditNote",
    "id": "texto"
  },
  "tags": [
    "texto"
  ],
  "payer": {
    "name": "Fulano de Tal",
    "personTypeValue": "texto",
    "personTypeValueDisplay": "texto",
    "registrationNumber": "12345678909",
    "zipCode": "01310930",
    "addressName": "Fulano de Tal",
    "addressNumber": "texto",
    "addressComplement": "texto",
    "email": "cliente@exemplo.com.br"
  },
  "guarantor": {
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909"
  },
  "billings": [
    {
      "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "documentNumber": "texto",
      "amount": 0,
      "dueDate": "2025-08-11T13:45:00Z",
      "iof": "texto",
      "deduction": 0,
      "participantControlNumber": "texto",
      "discount": 0,
      "discountLimitDate": "2025-08-11T13:45:00Z",
      "discount2": 0,
      "discountLimitDate2": "2025-08-11T13:45:00Z",
      "discount3": 0,
      "discountLimitDate3": "2025-08-11T13:45:00Z"
    }
  ],
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "bankCode": "texto",
  "walletNumber": 0,
  "latePaymentInterestAmountPerDay": 0,
  "creditTypeValue": "texto",
  "billingCreateTypeValue": "texto",
  "installmentsToCancel": [
    {
      "id": "texto",
      "installmentStatus": "Created"
    }
  ],
  "interestTypeValue": "texto",
  "interestAmount": 1000,
  "fineTypeValue": "texto",
  "interestCodeValue": "texto",
  "fineAmount": 1000,
  "apr": 1.99
}

Response

Resposta 200.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
walletCodeinteger (int64)opcional0
billingCreateTypeValuestringopcional"texto"
billingCreateTypeDisplaystringopcional"texto"
descriptionstringopcional"texto"
operationsarray de stringopcional[ … ]
admissionDatesarray de string (date-time)opcional[ … ]
billingSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
billingSettingDisplaystringopcional"texto"
communicationSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
communicationSettingDisplaystringopcional"texto"
referenceobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
tagsarray de stringopcional[ … ]
billingsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
payerobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
guarantorobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
billingCountintegeropcional0
firstInstructionDebtCollectionstringopcional"texto"
secondInstructionDebtCollectionintegeropcional0
statusValuestringopcional"texto"
statusDisplaystringopcional"texto"
registeredbooleanopcionaltrue
bankCodestringopcional"texto"
walletNumberintegeropcional0
latePaymentInterestAmountPerDayintegeropcional0
creditTypeValuestringopcional"texto"
creditTypeDisplaystringopcional"texto"
createdAtstring (date-time)opcional"2025-08-11T13:45:00Z"
aprnumber (double)opcional1.99
warrantyRegistrationOfficeobjetoopcionalvaria conforme o tipo — ver exemplo"None"
warrantyRegistrationOfficeDisplaystringopcional"texto"
calculationCriteriaobjetoopcionalvaria conforme o tipo — ver exemplo"V252DiasUteis"
calculationCriteriaDisplaystringopcional"texto"
interestTypeValuestringopcional"texto"
interestTypeValueDisplaystringopcional"texto"
interestAmountnumber (decimal)opcional1000
fineTypeValuestringopcional"texto"
fineTypeValueDisplaystringopcional"texto"
fineAmountnumber (decimal)opcional1000
predecessorInstallmentIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
successorInstallmentIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"

Detalhe de billings

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
externalIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
billingStatusobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
isAnticipatedBillingbooleanopcionaltrue

Exemplo de resposta

{
  "id": "texto",
  "walletCode": 0,
  "billingCreateTypeValue": "texto",
  "billingCreateTypeDisplay": "texto",
  "description": "texto",
  "operations": [
    "texto"
  ],
  "admissionDates": [
    "2025-08-11T13:45:00Z"
  ],
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "billingSettingDisplay": "texto",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingDisplay": "texto",
  "reference": {
    "resource": "CreditNote",
    "id": "texto"
  },
  "tags": [
    "texto"
  ],
  "billings": [
    {
      "id": "texto",
      "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "billingStatus": {
        "type": {},
        "message": "texto"
      },
      "isAnticipatedBilling": true
    }
  ],
  "payer": {
    "name": "Fulano de Tal",
    "personTypeValue": "texto",
    "personTypeValueDisplay": "texto",
    "registrationNumber": "12345678909",
    "zipCode": "01310930",
    "addressName": "Fulano de Tal",
    "addressNumber": "texto",
    "addressComplement": "texto",
    "email": "cliente@exemplo.com.br"
  },
  "guarantor": {
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909"
  },
  "billingCount": 0,
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "statusValue": "texto",
  "statusDisplay": "texto",
  "registered": true,
  "bankCode": "texto",
  "walletNumber": 0,
  "latePaymentInterestAmountPerDay": 0,
  "creditTypeValue": "texto",
  "creditTypeDisplay": "texto",
  "createdAt": "2025-08-11T13:45:00Z",
  "apr": 1.99,
  "warrantyRegistrationOffice": "None",
  "warrantyRegistrationOfficeDisplay": "texto",
  "calculationCriteria": "V252DiasUteis",
  "calculationCriteriaDisplay": "texto",
  "interestTypeValue": "texto",
  "interestTypeValueDisplay": "texto",
  "interestAmount": 1000,
  "fineTypeValue": "texto",
  "fineTypeValueDisplay": "texto",
  "fineAmount": 1000,
  "predecessorInstallmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "successorInstallmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

Códigos de retorno

CódigoSignificadoDetalhe do contrato
200Requisição bem-sucedida.
401Não autenticado — token ausente, inválido ou expirado.

Exemplos

curl -X POST "{{baseUrl}}/api/v1/Installment" \
  -H "Authorization: Bearer {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "walletCode": 0,
  "description": "texto",
  "operations": [
    "texto"
  ],
  "admissionDates": [
    "2025-08-11T13:45:00Z"
  ],
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "reference": {
    "resource": "CreditNote",
    "id": "texto"
  },
  "tags": [
    "texto"
  ],
  "payer": {
    "name": "Fulano de Tal",
    "personTypeValue": "texto",
    "personTypeValueDisplay": "texto",
    "registrationNumber": "12345678909",
    "zipCode": "01310930",
    "addressName": "Fulano de Tal",
    "addressNumber": "texto",
    "addressComplement": "texto",
    "email": "cliente@exemplo.com.br"
  },
  "guarantor": {
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909"
  },
  "billings": [
    {
      "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "documentNumber": "texto",
      "amount": 0,
      "dueDate": "2025-08-11T13:45:00Z",
      "iof": "texto",
      "deduction": 0,
      "participantControlNumber": "texto",
      "discount": 0,
      "discountLimitDate": "2025-08-11T13:45:00Z",
      "discount2": 0,
      "discountLimitDate2": "2025-08-11T13:45:00Z",
      "discount3": 0,
      "discountLimitDate3": "2025-08-11T13:45:00Z"
    }
  ],
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "bankCode": "texto",
  "walletNumber": 0,
  "latePaymentInterestAmountPerDay": 0,
  "creditTypeValue": "texto",
  "billingCreateTypeValue": "texto",
  "installmentsToCancel": [
    {
      "id": "texto",
      "installmentStatus": "Created"
    }
  ],
  "interestTypeValue": "texto",
  "interestAmount": 1000,
  "fineTypeValue": "texto",
  "interestCodeValue": "texto",
  "fineAmount": 1000,
  "apr": 1.99
}'
var baseUrl = "{{baseUrl}}";
var token   = "{{token}}";

using var http = new HttpClient { BaseAddress = new Uri(baseUrl) };
http.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", token);

var rota = "/api/v1/Installment";

var corpo = new StringContent(
    """
    {
      "walletCode": 0,
      "description": "texto",
      "operations": [
        "texto"
      ],
      "admissionDates": [
        "2025-08-11T13:45:00Z"
      ],
      "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "reference": {
        "resource": "CreditNote",
        "id": "texto"
      },
      "tags": [
        "texto"
      ],
      "payer": {
        "name": "Fulano de Tal",
        "personTypeValue": "texto",
        "personTypeValueDisplay": "texto",
        "registrationNumber": "12345678909",
        "zipCode": "01310930",
        "addressName": "Fulano de Tal",
        "addressNumber": "texto",
        "addressComplement": "texto",
        "email": "cliente@exemplo.com.br"
      },
      "guarantor": {
        "name": "Fulano de Tal",
        "registrationNumber": "12345678909"
      },
      "billings": [
        {
          "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "documentNumber": "texto",
          "amount": 0,
          "dueDate": "2025-08-11T13:45:00Z",
          "iof": "texto",
          "deduction": 0,
          "participantControlNumber": "texto",
          "discount": 0,
          "discountLimitDate": "2025-08-11T13:45:00Z",
          "discount2": 0,
          "discountLimitDate2": "2025-08-11T13:45:00Z",
          "discount3": 0,
          "discountLimitDate3": "2025-08-11T13:45:00Z"
        }
      ],
      "firstInstructionDebtCollection": "texto",
      "secondInstructionDebtCollection": 0,
      "bankCode": "texto",
      "walletNumber": 0,
      "latePaymentInterestAmountPerDay": 0,
      "creditTypeValue": "texto",
      "billingCreateTypeValue": "texto",
      "installmentsToCancel": [
        {
          "id": "texto",
          "installmentStatus": "Created"
        }
      ],
      "interestTypeValue": "texto",
      "interestAmount": 1000,
      "fineTypeValue": "texto",
      "interestCodeValue": "texto",
      "fineAmount": 1000,
      "apr": 1.99
    }
    """,
    Encoding.UTF8, "application/json");

var resp = await http.PostAsync(rota, corpo);
resp.EnsureSuccessStatusCode();
var json = await resp.Content.ReadAsStringAsync();
const baseUrl = '{{baseUrl}}';
const token   = '{{token}}';

const payload = {
  "walletCode": 0,
  "description": "texto",
  "operations": [
    "texto"
  ],
  "admissionDates": [
    "2025-08-11T13:45:00Z"
  ],
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "reference": {
    "resource": "CreditNote",
    "id": "texto"
  },
  "tags": [
    "texto"
  ],
  "payer": {
    "name": "Fulano de Tal",
    "personTypeValue": "texto",
    "personTypeValueDisplay": "texto",
    "registrationNumber": "12345678909",
    "zipCode": "01310930",
    "addressName": "Fulano de Tal",
    "addressNumber": "texto",
    "addressComplement": "texto",
    "email": "cliente@exemplo.com.br"
  },
  "guarantor": {
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909"
  },
  "billings": [
    {
      "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "documentNumber": "texto",
      "amount": 0,
      "dueDate": "2025-08-11T13:45:00Z",
      "iof": "texto",
      "deduction": 0,
      "participantControlNumber": "texto",
      "discount": 0,
      "discountLimitDate": "2025-08-11T13:45:00Z",
      "discount2": 0,
      "discountLimitDate2": "2025-08-11T13:45:00Z",
      "discount3": 0,
      "discountLimitDate3": "2025-08-11T13:45:00Z"
    }
  ],
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "bankCode": "texto",
  "walletNumber": 0,
  "latePaymentInterestAmountPerDay": 0,
  "creditTypeValue": "texto",
  "billingCreateTypeValue": "texto",
  "installmentsToCancel": [
    {
      "id": "texto",
      "installmentStatus": "Created"
    }
  ],
  "interestTypeValue": "texto",
  "interestAmount": 1000,
  "fineTypeValue": "texto",
  "interestCodeValue": "texto",
  "fineAmount": 1000,
  "apr": 1.99
};

const resp = await fetch(`${baseUrl}/api/v1/Installment`, {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(payload),
});

if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();

Troque apenas {{baseUrl}} e {{token}}. No Postman, defina-os como variáveis de environment; o cURL importa em Import > Raw text.

Downloads

Este endpoint já vem configurado nas collections abaixo, na pasta da etapa correspondente.

Guia de importação: Como importar no Postman · Todos os downloads: Downloads