POST /v1/pix/authorizations/:recurrenceId
cob.writeRequisição
- Exemplo
{
"endUserAccount": "string",
"endUserAccountBranch": "string",
"recurrenceRequestId": "string",
"userResponse": "confirmed",
"maxValue": 0,
"authorizationFlow": "AUT1",
"endToEndId": "string",
"contract": {
"recurrence": {
"frequencyType": "WEEK",
"retryPolicy": "NONE",
"startDate": "2025-12-23T13:19:16.895Z",
"endDate": "2025-12-23T13:19:16.895Z",
"codMunIbge": "string",
"value": 0,
"minValue": 0,
"maxValue": 0,
"contractNumber": "string",
"description": "string",
"processingDetails": {
"createdAt": "2025-12-23T13:19:16.895Z",
"requestedAt": "2025-12-23T13:19:16.895Z",
"expiresAt": "2025-12-23T13:19:16.895Z"
}
},
"receiver": {
"name": "string",
"document": "string",
"participant": "string"
},
"payer": {
"document": "string",
"accountNumber": "string",
"accountType": "CACC",
"branch": "string",
"participant": "string"
},
"debtor": {
"name": "string",
"document": "string"
}
}
}
Respostas
As respostas abaixo representam Sucesso(201) e Falhas/erros do consumo.
- 🟢 200
- 🔴 400
- 🔴 401
- 🔴 403
- 🔴 404
- 🔴 422
- 🔴 500
{
"responseTime": 0,
"correlationId": "string",
"contract": {
"type": "payer",
"recurrenceId": "RR6395704046975780MvIDkJKn1nC",
"recurrenceRequestId": "SS6840702423316991S5fH0nD6JP5",
"endUserAccount": "string",
"frequencyType": "WEEK",
"retryPolicy": "NONE",
"status": "waiting",
"startDate": "2025-12-23T13:26:36.396Z",
"endDate": "2025-12-23T13:26:36.396Z",
"value": 1,
"minValue": 1,
"maxValue": 1,
"debtor": {
"name": "string",
"document": "string"
},
"codMunIbge": "string",
"contractNumber": "string",
"requestExpirationDate": "2025-12-23T13:26:36.396Z",
"description": "string",
"authorizationFlow": "AUT1",
"confirmationDate": "2025-12-23T13:26:36.396Z",
"cancellationDate": "2025-12-23T13:26:36.396Z",
"createdAt": "2025-12-23T13:26:36.396Z",
"counterParty": {
"type": "LEGAL_PERSON",
"document": "07039985791",
"name": "string",
"participant": "string",
"branch": "string",
"accountType": "string",
"accountNumber": "string"
},
"canceledContract": {
"identifier": "string",
"reason": "ACCL",
"canceledAt": "2025-12-23T13:26:36.396Z"
}
}
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"title": "The recurrence confirmation request was already confirmed",
"detail": "The recurrence confirmation request was already confirmed"
}
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"title": "Unauthorized",
"detail": "Token de acesso inválido ou expirado",
"status": 401
}
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"title": "Forbidden",
"detail": "Acesso negado",
"status": 403
}
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"title": "Contract not found",
"detail": "Contract not found"
}
}
{
"responseTime": 0,
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"title": "Recurrence was authorized after mandate expiration",
"detail": "Recurrence was authorized after mandate expiration"
}
}
{
"correlationId": "abcdef01-2345-6789-0123-456789012345",
"error": {
"title": "InternalServerError",
"detail": "Erro interno do servidor",
"status": 500
}
}