API Docs Início Documentação Referência de API Copiar para LLM
POST/v{version}/CreditNote/{id}/paymentRevisionLiquidationSchedule
Crédito · Operação de crédito

Criar Credit Note

Cria um novo registro de Credit Note.

Visão geral

Cria um novo registro de Credit Note.

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.

Pré-requisitos: a rota exige identificador(es) de recurso já existente(s):

Request

Parâmetros

NomeEmTipoObrigatórioDescriçãoExemplo
idpathstring (uuid)obrigatório3fa85f64-5717-4562-b3fc-2c963f66afa6
versionpathstringobrigatório1

Corpo da requisição

Envie no formato application/json. Corpo opcional.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
liquidationScheduleItemsarray de objetoobrigatórioItens do 'Roteiro de Liquidação' que serão alterados/adiconadosobjeto — ver detalhe abaixo[ … ]

Detalhe de liquidationScheduleItems

CampoTipoObrigatórioDescriçãoValoresExemplo
liquidationScheduleIdstring (uuid)opcionalId do LiquidationSchedule, preencher em caso de edição"3fa85f64-5717-4562-b3fc-2c963f66afa6"
liquidationScheduleobjetoopcionalobjeto — ver detalhe abaixo{ … }

Detalhe de liquidationSchedule

CampoTipoObrigatórioDescriçãoValoresExemplo
amountInCentsinteger (int64)obrigatório0
pixQrCodeobjetoopcionalobjeto — ver detalhe abaixo{ … }
bankSlipobjetoopcionalobjeto — ver detalhe abaixo{ … }
pixKeyobjetoopcionalobjeto — ver detalhe abaixo{ … }
transferobjetoopcionalobjeto — ver detalhe abaixo{ … }
descriptionstringopcional"texto"
informedDueDatestring (date-time)opcional"2025-08-11T13:45:00Z"

Detalhe de pixQrCode

CampoTipoObrigatórioDescriçãoValoresExemplo
qrCodestringobrigatório"texto"

Detalhe de bankSlip

CampoTipoObrigatórioDescriçãoValoresExemplo
barcodeOrDigitableLinestringobrigatório"texto"

Detalhe de pixKey

CampoTipoObrigatórioDescriçãoValoresExemplo
keystringobrigatório"texto"
pixKeyTypestringopcionalNaturalRegistrationNumber, LegalRegistrationNumber, Phone, Email, Automatic, AgencyAndAccount"NaturalRegistrationNumber"
typeDisplaystringopcional"texto"

Detalhe de transfer

CampoTipoObrigatórioDescriçãoValoresExemplo
toobjetoobrigatórioobjeto — ver detalhe abaixo{ … }
typestringobrigatórioTransfer, Pix"Transfer"

Detalhe de to

CampoTipoObrigatórioDescriçãoValoresExemplo
namestringobrigatório"Fulano de Tal"
registrationNumberstringobrigatório"12345678909"
bankCodeintegerobrigatório0
bankIspbinteger (int64)obrigatório0
agencystringobrigatório"texto"
accountNumberstringobrigatório"texto"
accountTypestringobrigatórioNaturalCheckingAccount, NaturalSimpleAccount, LegalCheckingAccount, PublicEntities, FinancialInstitutionsDeposits, NaturalSavingsAccount, LegalSavingsAccount, RealEstateSavingsAccount, LotteryDeposits, EscrowAccount"NaturalCheckingAccount"

Exemplo de corpo

{
  "liquidationScheduleItems": [
    {
      "liquidationScheduleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "liquidationSchedule": {
        "amountInCents": 0,
        "pixQrCode": {},
        "bankSlip": {},
        "pixKey": {},
        "transfer": {},
        "description": "texto",
        "informedDueDate": "2025-08-11T13:45:00Z"
      }
    }
  ]
}

Response

Resposta 200 sem corpo (Success).

Códigos de retorno

CódigoSignificadoDetalhe do contrato
200Requisição bem-sucedida.Success

Exemplos

curl -X POST "{{baseUrl}}/v1/CreditNote/3fa85f64-5717-4562-b3fc-2c963f66afa6/paymentRevisionLiquidationSchedule" \
  -H "Authorization: Bearer {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "liquidationScheduleItems": [
    {
      "liquidationScheduleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "liquidationSchedule": {
        "amountInCents": 0,
        "pixQrCode": {},
        "bankSlip": {},
        "pixKey": {},
        "transfer": {},
        "description": "texto",
        "informedDueDate": "2025-08-11T13:45:00Z"
      }
    }
  ]
}'
var baseUrl = "{{baseUrl}}";
var token   = "{{token}}";

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

var rota = "/v1/CreditNote/3fa85f64-5717-4562-b3fc-2c963f66afa6/paymentRevisionLiquidationSchedule";

var corpo = new StringContent(
    """
    {
      "liquidationScheduleItems": [
        {
          "liquidationScheduleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "liquidationSchedule": {
            "amountInCents": 0,
            "pixQrCode": {},
            "bankSlip": {},
            "pixKey": {},
            "transfer": {},
            "description": "texto",
            "informedDueDate": "2025-08-11T13:45:00Z"
          }
        }
      ]
    }
    """,
    Encoding.UTF8, "application/json");

var resp = await http.PostAsync(rota, corpo);
resp.EnsureSuccessStatusCode();
// Sem corpo de resposta neste endpoint.
const baseUrl = '{{baseUrl}}';
const token   = '{{token}}';

const payload = {
  "liquidationScheduleItems": [
    {
      "liquidationScheduleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "liquidationSchedule": {
        "amountInCents": 0,
        "pixQrCode": {},
        "bankSlip": {},
        "pixKey": {},
        "transfer": {},
        "description": "texto",
        "informedDueDate": "2025-08-11T13:45:00Z"
      }
    }
  ]
};

const resp = await fetch(`${baseUrl}/v1/CreditNote/3fa85f64-5717-4562-b3fc-2c963f66afa6/paymentRevisionLiquidationSchedule`, {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(payload),
});

if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
// Sem corpo de resposta neste endpoint.

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