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

Método de cadastro de uma cobrança

Cria um novo registro de api.

Visão geral

Método de cadastro de uma cobrança.

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

Corpo da requisição

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

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
externalIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
walletCodeinteger (int64)opcional0
documentNumberstringopcional"texto"
amountinteger (int64)opcional0
descriptionstringopcional"texto"
dueDatestringopcional"texto"
paymentLimitDatestringopcional"texto"
discountintegeropcional0
discountLimitDatestringopcional"texto"
discount2integeropcional0
discountLimitDate2stringopcional"texto"
discount3integeropcional0
discountLimitDate3stringopcional"texto"
billingSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
communicationSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
tagsarray de stringopcional[ … ]
payerobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
guarantorobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
firstInstructionDebtCollectionstringopcional"texto"
secondInstructionDebtCollectionintegeropcional0
installmentIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
settingsobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
ourNumberinteger (int64)opcional0
ourNumberDigitstringopcional"texto"
walletNumberintegeropcional0
numberPaymentsintegeropcional0
deductionintegeropcional0
latePaymentInterestAmountPerDayintegeropcional0
creditTypeValuestringopcional"texto"
conditionForIssuingBillingSlipstringopcional"texto"
directDebitAgencystringopcional"texto"
directDebitAgencyDigitstringopcional"texto"
directDebitAccountstringopcional"texto"
directDebitAccountDigitstringopcional"texto"
directDebitReasonstringopcional"texto"
bonusDiscountDaystringopcional"texto"
addressingAutomaticDebitNotificationstringopcional"texto"
identificationBillingSlipIssuancestringopcional"texto"
acceptanceIdentificationstringopcional"01310930"
depositoryAgencystringopcional"texto"
billingBankChargestringopcional"texto"
bankCodestringopcional"texto"
iofstringopcional"texto"
bankingOperationIdentificationstringopcional"texto"
creditDistributionIdentificationstringopcional"texto"
participantControlNumberstringopcional"texto"
registerbooleanopcionaltrue
billingCreateTypeValuestringopcional"texto"
billingsToCancelarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
billingsToUnifiedarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]

Detalhe de billingsToCancel

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
billingStatusValuestringopcional"texto"

Detalhe de billingsToUnified

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
interestCodeValuestringopcional"texto"

Exemplo de corpo

{
  "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "walletCode": 0,
  "documentNumber": "texto",
  "amount": 0,
  "description": "texto",
  "dueDate": "texto",
  "paymentLimitDate": "texto",
  "discount": 0,
  "discountLimitDate": "texto",
  "discount2": 0,
  "discountLimitDate2": "texto",
  "discount3": 0,
  "discountLimitDate3": "texto",
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "tags": [
    "texto"
  ],
  "payer": {
    "name": "Fulano de Tal",
    "personTypeValue": "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"
  },
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "installmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "settings": {
    "interestTypeValue": "texto",
    "interestAmount": 1000,
    "fineTypeValue": "texto",
    "fineAmount": 1000,
    "interestCodeValue": "texto"
  },
  "ourNumber": 0,
  "ourNumberDigit": "texto",
  "walletNumber": 0,
  "numberPayments": 0,
  "deduction": 0,
  "latePaymentInterestAmountPerDay": 0,
  "creditTypeValue": "texto",
  "conditionForIssuingBillingSlip": "texto",
  "directDebitAgency": "texto",
  "directDebitAgencyDigit": "texto",
  "directDebitAccount": "texto",
  "directDebitAccountDigit": "texto",
  "directDebitReason": "texto",
  "bonusDiscountDay": "texto",
  "addressingAutomaticDebitNotification": "texto",
  "identificationBillingSlipIssuance": "texto",
  "acceptanceIdentification": "01310930",
  "depositoryAgency": "texto",
  "billingBankCharge": "texto",
  "bankCode": "texto",
  "iof": "texto",
  "bankingOperationIdentification": "texto",
  "creditDistributionIdentification": "texto",
  "participantControlNumber": "texto",
  "register": true,
  "billingCreateTypeValue": "texto",
  "billingsToCancel": [
    {
      "id": "texto",
      "billingStatusValue": "texto"
    }
  ],
  "billingsToUnified": [
    {
      "id": "texto",
      "interestCodeValue": "texto"
    }
  ]
}

Response

Resposta 200.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
externalIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
walletCodeinteger (int64)opcional0
documentNumberstringopcional"texto"
amountinteger (int64)opcional0
paidAmountinteger (int64)opcional1
pendingAmountinteger (int64)opcional0
descriptionstringopcional"texto"
discountintegeropcional0
discountLimitDatestringopcional"texto"
discount2integeropcional0
discountLimitDate2stringopcional"texto"
discount3integeropcional0
discountLimitDate3stringopcional"texto"
dueDatestringopcional"texto"
billingSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
billingSettingDisplaystringopcional"texto"
communicationSettingIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
communicationSettingDisplaystringopcional"texto"
tagsarray de stringopcional[ … ]
creditTypeValuestringopcional"texto"
creditTypeDisplaystringopcional"texto"
payerobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
guarantorobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
registeredbooleanopcionaltrue
errorMessagestringopcional"texto"
createdAtstring (date-time)opcional"2025-08-11T13:45:00Z"
settlementAtstringopcional"texto"
settlementChannelValuestringopcional"texto"
settlementChannelValueDisplaystringopcional"texto"
statusValuestringopcional"texto"
statusDisplaystringopcional"texto"
firstInstructionDebtCollectionstringopcional"texto"
secondInstructionDebtCollectionintegeropcional0
installmentIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
bankSlipobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
settingsobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
ourNumberinteger (int64)opcional0
ourNumberDigitstringopcional"texto"
walletNumberintegeropcional0
numberPaymentsintegeropcional0
deductionintegeropcional0
latePaymentInterestAmountPerDayintegeropcional0
conditionForIssuingBillingSlipstringopcional"texto"
zerostringopcional"texto"
directDebitAgencystringopcional"texto"
directDebitAgencyDigitstringopcional"texto"
directDebitAccountstringopcional"texto"
directDebitAccountDigitstringopcional"texto"
directDebitReasonstringopcional"texto"
bonusDiscountDaystringopcional"texto"
addressingAutomaticDebitNotificationstringopcional"texto"
identificationBillingSlipIssuancestringopcional"texto"
acceptanceIdentificationstringopcional"01310930"
depositoryAgencystringopcional"texto"
billingBankChargestringopcional"texto"
bankCodestringopcional"texto"
iofstringopcional"texto"
bankingOperationIdentificationstringopcional"texto"
creditDistributionIdentificationstringopcional"texto"
participantControlNumberstringopcional"texto"
generateInstructionTransactionLinebooleanopcionaltrue
captureTypestringopcional"texto"
captureTypeDisplaystringopcional"texto"
paymentMethodstringopcional"texto"
paymentMethodDisplaystringopcional"texto"
billingCreateTypestringopcional"texto"
billingCreateTypeDisplaystringopcional"texto"
lastPaymentDatestringopcional"texto"
paymentsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
fileInstructionLinesarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
fileConfirmationLinesarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
isAnticipatedBillingbooleanopcionaltrue

Detalhe de payments

CampoTipoObrigatórioDescriçãoValoresExemplo
settlementChannelValuestringopcional"texto"
settlementChannelValueDisplaystringopcional"texto"
paymentDatestring (date-time)opcional"2025-08-11T13:45:00Z"
paymentAmountinteger (int64)opcional0
paymentISPBintegeropcional0
paymentAgencyintegeropcional0
debtCollectionProtocolstringopcional"texto"

Detalhe de fileInstructionLines

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
walletCodeinteger (int64)opcional0
lineTypestringopcional"texto"
lineTypeDisplaystringopcional"texto"
sequentialNumberintegeropcional0
detailobjetoopcionalvaria conforme o tipo — ver exemplo{ … }

Detalhe de fileConfirmationLines

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
lineTypestringopcional"texto"
lineTypeDisplaystringopcional"texto"
sequentialNumberintegeropcional0
detailobjetoopcionalvaria conforme o tipo — ver exemplo{ … }

Exemplo de resposta

{
  "id": "texto",
  "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "walletCode": 0,
  "documentNumber": "texto",
  "amount": 0,
  "paidAmount": 1,
  "pendingAmount": 0,
  "description": "texto",
  "discount": 0,
  "discountLimitDate": "texto",
  "discount2": 0,
  "discountLimitDate2": "texto",
  "discount3": 0,
  "discountLimitDate3": "texto",
  "dueDate": "texto",
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "billingSettingDisplay": "texto",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingDisplay": "texto",
  "tags": [
    "texto"
  ],
  "creditTypeValue": "texto",
  "creditTypeDisplay": "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"
  },
  "registered": true,
  "errorMessage": "texto",
  "createdAt": "2025-08-11T13:45:00Z",
  "settlementAt": "texto",
  "settlementChannelValue": "texto",
  "settlementChannelValueDisplay": "texto",
  "statusValue": "texto",
  "statusDisplay": "texto",
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "installmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "bankSlip": {
    "id": "texto",
    "barCode": "texto",
    "statusRegisterValue": "texto",
    "statusRegisterValueDisplay": "texto",
    "statusSettlementValue": "texto",
    "statusSettlementValueDisplay": "texto",
    "statusDebtCollectionValue": "texto",
    "statusDebtCollectionValueDisplay": "texto"
  },
  "settings": {
    "interestTypeValue": "texto",
    "interestTypeValueDisplay": "texto",
    "interestAmount": 1000,
    "fineTypeValue": "texto",
    "fineTypeValueDisplay": "texto",
    "fineAmount": 1000
  },
  "ourNumber": 0,
  "ourNumberDigit": "texto",
  "walletNumber": 0,
  "numberPayments": 0,
  "deduction": 0,
  "latePaymentInterestAmountPerDay": 0,
  "conditionForIssuingBillingSlip": "texto",
  "zero": "texto",
  "directDebitAgency": "texto",
  "directDebitAgencyDigit": "texto",
  "directDebitAccount": "texto",
  "directDebitAccountDigit": "texto",
  "directDebitReason": "texto",
  "bonusDiscountDay": "texto",
  "addressingAutomaticDebitNotification": "texto",
  "identificationBillingSlipIssuance": "texto",
  "acceptanceIdentification": "01310930",
  "depositoryAgency": "texto",
  "billingBankCharge": "texto",
  "bankCode": "texto",
  "iof": "texto",
  "bankingOperationIdentification": "texto",
  "creditDistributionIdentification": "texto",
  "participantControlNumber": "texto",
  "generateInstructionTransactionLine": true,
  "captureType": "texto",
  "captureTypeDisplay": "texto",
  "paymentMethod": "texto",
  "paymentMethodDisplay": "texto",
  "billingCreateType": "texto",
  "billingCreateTypeDisplay": "texto",
  "lastPaymentDate": "texto",
  "payments": [
    {
      "settlementChannelValue": "texto",
      "settlementChannelValueDisplay": "texto",
      "paymentDate": "2025-08-11T13:45:00Z",
      "paymentAmount": 0,
      "paymentISPB": 0,
      "paymentAgency": 0,
      "debtCollectionProtocol": "texto"
    }
  ],
  "fileInstructionLines": [
    {
      "id": "texto",
      "walletCode": 0,
      "lineType": "texto",
      "lineTypeDisplay": "texto",
      "sequentialNumber": 0,
      "detail": {
        "bankSlipId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "uniqueIdentifierCip": "texto",
        "barCode": "texto",
        "numericLine": "texto",
        "confirmationTransactionTypeValue": "texto",
        "confirmationTransactionTypeValueDisplay": "texto",
        "documentNumber": "texto",
        "deduction": 0,
        "discount": 0,
        "walletNumber": 0,
        "account": "texto",
        "participantControlNumber": "texto",
        "payerName": "Fulano de Tal",
        "amount": 0,
        "ourNumber": 0,
        "ourNumberDigit": "texto",
        "dueDate": "texto",
        "fineTypeValue": "texto",
        "fineTypeValueDisplay": "texto",
        "fineDecimal": 1000,
        "interestAmountLateDay": 1000,
        "statusOperationValue": "texto",
        "statusOperationValueDisplay": "texto",
        "error": "texto",
        "createdAt": "2025-08-11T13:45:00Z",
        "createdBy": {},
        "updatedBy": {}
      }
    }
  ],
  "fileConfirmationLines": [
    {
      "id": "texto",
      "lineType": "texto",
      "lineTypeDisplay": "texto",
      "sequentialNumber": 0,
      "detail": {
        "bankSlipId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "billingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "amount": 0,
        "occurrenceDate": "2025-08-11T13:45:00Z",
        "occurrenceCode": "texto",
        "occurrenceReason": "texto",
        "confirmationTransactionTypeValue": "texto",
        "confirmationTransactionTypeValueDisplay": "texto",
        "documentNumber": "texto",
        "deduction": 0,
        "discount": 0,
        "ourNumber": "texto",
        "walletNumber": "texto",
        "payerName": "Fulano de Tal",
        "participantControlNumber": "texto",
        "ourNumberDigit": "texto",
        "dueDate": "texto",
        "interestAmount": 0,
        "paid": 1,
        "paidCreditDay": "2025-08-11T13:45:00Z",
        "costs": 0,
        "statusLiquidation": "texto",
        "statusLiquidationDisplay": "texto",
        "debtCollectionDate": "texto",
        "debtCollectionRegistryNumber": "texto",
        "debtCollectionProtocolNumber": "texto",
        "debtCollectionName": "Fulano de Tal",
        "debtCollectionCity": "texto",
        "debtCollectionState": "texto",
        "debtCollectionOffice": "texto",
        "createdAt": "2025-08-11T13:45:00Z",
        "createdBy": {},
        "updatedBy": {}
      }
    }
  ],
  "isAnticipatedBilling": true
}

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/Billing" \
  -H "Authorization: Bearer {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "walletCode": 0,
  "documentNumber": "texto",
  "amount": 0,
  "description": "texto",
  "dueDate": "texto",
  "paymentLimitDate": "texto",
  "discount": 0,
  "discountLimitDate": "texto",
  "discount2": 0,
  "discountLimitDate2": "texto",
  "discount3": 0,
  "discountLimitDate3": "texto",
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "tags": [
    "texto"
  ],
  "payer": {
    "name": "Fulano de Tal",
    "personTypeValue": "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"
  },
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "installmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "settings": {
    "interestTypeValue": "texto",
    "interestAmount": 1000,
    "fineTypeValue": "texto",
    "fineAmount": 1000,
    "interestCodeValue": "texto"
  },
  "ourNumber": 0,
  "ourNumberDigit": "texto",
  "walletNumber": 0,
  "numberPayments": 0,
  "deduction": 0,
  "latePaymentInterestAmountPerDay": 0,
  "creditTypeValue": "texto",
  "conditionForIssuingBillingSlip": "texto",
  "directDebitAgency": "texto",
  "directDebitAgencyDigit": "texto",
  "directDebitAccount": "texto",
  "directDebitAccountDigit": "texto",
  "directDebitReason": "texto",
  "bonusDiscountDay": "texto",
  "addressingAutomaticDebitNotification": "texto",
  "identificationBillingSlipIssuance": "texto",
  "acceptanceIdentification": "01310930",
  "depositoryAgency": "texto",
  "billingBankCharge": "texto",
  "bankCode": "texto",
  "iof": "texto",
  "bankingOperationIdentification": "texto",
  "creditDistributionIdentification": "texto",
  "participantControlNumber": "texto",
  "register": true,
  "billingCreateTypeValue": "texto",
  "billingsToCancel": [
    {
      "id": "texto",
      "billingStatusValue": "texto"
    }
  ],
  "billingsToUnified": [
    {
      "id": "texto",
      "interestCodeValue": "texto"
    }
  ]
}'
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/Billing";

var corpo = new StringContent(
    """
    {
      "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "walletCode": 0,
      "documentNumber": "texto",
      "amount": 0,
      "description": "texto",
      "dueDate": "texto",
      "paymentLimitDate": "texto",
      "discount": 0,
      "discountLimitDate": "texto",
      "discount2": 0,
      "discountLimitDate2": "texto",
      "discount3": 0,
      "discountLimitDate3": "texto",
      "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "tags": [
        "texto"
      ],
      "payer": {
        "name": "Fulano de Tal",
        "personTypeValue": "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"
      },
      "firstInstructionDebtCollection": "texto",
      "secondInstructionDebtCollection": 0,
      "installmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "settings": {
        "interestTypeValue": "texto",
        "interestAmount": 1000,
        "fineTypeValue": "texto",
        "fineAmount": 1000,
        "interestCodeValue": "texto"
      },
      "ourNumber": 0,
      "ourNumberDigit": "texto",
      "walletNumber": 0,
      "numberPayments": 0,
      "deduction": 0,
      "latePaymentInterestAmountPerDay": 0,
      "creditTypeValue": "texto",
      "conditionForIssuingBillingSlip": "texto",
      "directDebitAgency": "texto",
      "directDebitAgencyDigit": "texto",
      "directDebitAccount": "texto",
      "directDebitAccountDigit": "texto",
      "directDebitReason": "texto",
      "bonusDiscountDay": "texto",
      "addressingAutomaticDebitNotification": "texto",
      "identificationBillingSlipIssuance": "texto",
      "acceptanceIdentification": "01310930",
      "depositoryAgency": "texto",
      "billingBankCharge": "texto",
      "bankCode": "texto",
      "iof": "texto",
      "bankingOperationIdentification": "texto",
      "creditDistributionIdentification": "texto",
      "participantControlNumber": "texto",
      "register": true,
      "billingCreateTypeValue": "texto",
      "billingsToCancel": [
        {
          "id": "texto",
          "billingStatusValue": "texto"
        }
      ],
      "billingsToUnified": [
        {
          "id": "texto",
          "interestCodeValue": "texto"
        }
      ]
    }
    """,
    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 = {
  "externalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "walletCode": 0,
  "documentNumber": "texto",
  "amount": 0,
  "description": "texto",
  "dueDate": "texto",
  "paymentLimitDate": "texto",
  "discount": 0,
  "discountLimitDate": "texto",
  "discount2": 0,
  "discountLimitDate2": "texto",
  "discount3": 0,
  "discountLimitDate3": "texto",
  "billingSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "communicationSettingId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "tags": [
    "texto"
  ],
  "payer": {
    "name": "Fulano de Tal",
    "personTypeValue": "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"
  },
  "firstInstructionDebtCollection": "texto",
  "secondInstructionDebtCollection": 0,
  "installmentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "settings": {
    "interestTypeValue": "texto",
    "interestAmount": 1000,
    "fineTypeValue": "texto",
    "fineAmount": 1000,
    "interestCodeValue": "texto"
  },
  "ourNumber": 0,
  "ourNumberDigit": "texto",
  "walletNumber": 0,
  "numberPayments": 0,
  "deduction": 0,
  "latePaymentInterestAmountPerDay": 0,
  "creditTypeValue": "texto",
  "conditionForIssuingBillingSlip": "texto",
  "directDebitAgency": "texto",
  "directDebitAgencyDigit": "texto",
  "directDebitAccount": "texto",
  "directDebitAccountDigit": "texto",
  "directDebitReason": "texto",
  "bonusDiscountDay": "texto",
  "addressingAutomaticDebitNotification": "texto",
  "identificationBillingSlipIssuance": "texto",
  "acceptanceIdentification": "01310930",
  "depositoryAgency": "texto",
  "billingBankCharge": "texto",
  "bankCode": "texto",
  "iof": "texto",
  "bankingOperationIdentification": "texto",
  "creditDistributionIdentification": "texto",
  "participantControlNumber": "texto",
  "register": true,
  "billingCreateTypeValue": "texto",
  "billingsToCancel": [
    {
      "id": "texto",
      "billingStatusValue": "texto"
    }
  ],
  "billingsToUnified": [
    {
      "id": "texto",
      "interestCodeValue": "texto"
    }
  ]
};

const resp = await fetch(`${baseUrl}/api/v1/Billing`, {
  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