{
  "info": {
    "name": "Notreve PayFac API",
    "_postman_id": "notreve-payfac-v1",
    "description": "API Notreve PayFac v1.0\n\nVariaveis necessarias:\n- base_url: https://api.notrevepay.com.br/payfac\n- token: Bearer token (disponivel em Painel > Empresas)\n- subconta_id: ID de uma subconta para testes",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.notrevepay.com.br/payfac",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string",
      "description": "Token de API"
    },
    {
      "key": "subconta_id",
      "value": "",
      "type": "string",
      "description": "ID de subconta para testes"
    }
  ],
  "item": [
    {
      "name": "Subcontas",
      "description": "Criacao e gestao de subcontas.",
      "item": [
        {
          "name": "Criar Subconta",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/accounts/new",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "accounts",
                "new"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Empresa Exemplo LTDA\",\n  \"tax_id\": \"12345678000199\",\n  \"email\": \"financeiro@empresa.com.br\",\n  \"phone\": \"5511999999999\",\n  \"external_id\": \"cliente_001\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Listar Subcontas",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/accounts/list?status=active&page_size=20",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "accounts",
                "list"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "active"
                },
                {
                  "key": "page_size",
                  "value": "20"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Consultar Subconta",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/accounts/get?id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "accounts",
                "get"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Encerrar Subconta",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/accounts/close?id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "accounts",
                "close"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Chaves Pix",
      "description": "Gestao de chaves Pix por subconta.",
      "item": [
        {
          "name": "Criar Chave Pix (EVP)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pixkey/new?subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pixkey",
                "new"
              ],
              "query": [
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"key_type\": \"EVP\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Criar Chave Pix (CNPJ)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pixkey/new?subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pixkey",
                "new"
              ],
              "query": [
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"key_type\": \"CNPJ\",\n  \"key\": \"12345678000199\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Listar Chaves Pix",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pixkey/list?subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pixkey",
                "list"
              ],
              "query": [
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Consultar Chave Pix",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pixkey/get?id=PIXKEY_ID&subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pixkey",
                "get"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "PIXKEY_ID"
                },
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Consultar Chave no DICT",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pixkey/dict_get?key=12345678000199&key_type=CNPJ&subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pixkey",
                "dict_get"
              ],
              "query": [
                {
                  "key": "key",
                  "value": "12345678000199"
                },
                {
                  "key": "key_type",
                  "value": "CNPJ"
                },
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Saldo e Transferencias",
      "description": "Saldo e transferencias Pix.",
      "item": [
        {
          "name": "Consultar Saldo (Conta Mae)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/wallet/balance",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "wallet",
                "balance"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Consultar Saldo (Subconta)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/wallet/balance?subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "wallet",
                "balance"
              ],
              "query": [
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Transferir (Conta Mae)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/wallet/transfer",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "wallet",
                "transfer"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"value\": 150.25,\n  \"destination_bank_account\": {\n    \"pix_key_type\": \"CNPJ\",\n    \"pix_key\": \"12345678000199\"\n  },\n  \"receiver_document\": \"12345678000199\",\n  \"pix_description\": \"Pagamento\",\n  \"integration_id\": \"pedido_001\",\n  \"idempotency_key\": \"pedido_001_v1\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Transferir (Subconta)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/wallet/transfer",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "wallet",
                "transfer"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"subaccount_id\": \"{{subconta_id}}\",\n  \"value\": 50.0,\n  \"destination_bank_account\": {\n    \"pix_key_type\": \"EVP\",\n    \"pix_key\": \"CHAVE_PIX\"\n  },\n  \"receiver_document\": \"12345678000199\",\n  \"integration_id\": \"sub_tx_001\",\n  \"idempotency_key\": \"sub_tx_001_v1\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Recebimentos Pix",
      "description": "Cobranças e Pix recebidos por subconta.",
      "item": [
        {
          "name": "Criar Cobranca Pix",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pix/immediate?subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pix",
                "immediate"
              ],
              "query": [
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pix_key\": \"ID_CHAVE_PIX\",\n  \"original_value\": 59.9,\n  \"integration_id\": \"pedido_001\",\n  \"mediator_fee\": {\n    \"tipo\": \"FIXED\",\n    \"valor\": 0.2\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Consultar Cobranca",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pix/cashin/get?id=PIX_ID&subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pix",
                "cashin",
                "get"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "PIX_ID"
                },
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Listar Pix Recebidos",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/pix/cashin/list?initial_date=2026-03-01T00:00:00-03:00&end_date=2026-03-31T23:59:59-03:00&page_size=20&subaccount_id={{subconta_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "pix",
                "cashin",
                "list"
              ],
              "query": [
                {
                  "key": "initial_date",
                  "value": "2026-03-01T00:00:00-03:00"
                },
                {
                  "key": "end_date",
                  "value": "2026-03-31T23:59:59-03:00"
                },
                {
                  "key": "page_size",
                  "value": "20"
                },
                {
                  "key": "subaccount_id",
                  "value": "{{subconta_id}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Extratos",
      "description": "Solicitacao e download de extratos.",
      "item": [
        {
          "name": "Solicitar Extrato (Conta Mae)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/statement/report_request",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "statement",
                "report_request"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"format\": \"pdf\",\n  \"created_at__gte\": \"2026-03-01\",\n  \"created_at__lte\": \"2026-03-31\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Solicitar Extrato (Subconta)",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/statement/report_request",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "statement",
                "report_request"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"subaccount_id\": \"{{subconta_id}}\",\n  \"format\": \"pdf\",\n  \"created_at__gte\": \"2026-03-01\",\n  \"created_at__lte\": \"2026-03-31\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Consultar Extrato",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/statement/report_get?id=STATEMENT_ID",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "statement",
                "report_get"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "STATEMENT_ID"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Infracoes MED",
      "description": "Consulta e resposta a infracoes MED.",
      "item": [
        {
          "name": "Listar Infracoes",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/infractions/list?infraction_date__gte=2026-03-01&infraction_date__lte=2026-03-31&analysis_status__in=pending",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "infractions",
                "list"
              ],
              "query": [
                {
                  "key": "infraction_date__gte",
                  "value": "2026-03-01"
                },
                {
                  "key": "infraction_date__lte",
                  "value": "2026-03-31"
                },
                {
                  "key": "analysis_status__in",
                  "value": "pending"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Consultar Infracao",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/infractions/get?id=INFRACAO_ID",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "infractions",
                "get"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "INFRACAO_ID"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Enviar Analise",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/infractions/analysis",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "infractions",
                "analysis"
              ]
            },
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "id",
                  "value": "INFRACAO_ID",
                  "type": "text"
                },
                {
                  "key": "analysis",
                  "value": "rejected",
                  "type": "text"
                },
                {
                  "key": "analysis_description",
                  "value": "Transacao legitima confirmada pelo cliente.",
                  "type": "text"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Webhooks",
      "description": "Gestao de webhooks da conta mae.",
      "item": [
        {
          "name": "Criar Webhook",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhooks/new",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "new"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://cliente.com.br/webhooks/pix\",\n  \"event_type\": \"pix_cashin\",\n  \"description\": \"Notificacao Pix recebido\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Listar Webhooks",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhooks/list",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "list"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Atualizar Webhook",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhooks/update",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "update"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"WH_ID\",\n  \"url\": \"https://cliente.com.br/webhooks/pix-v2\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Remover Webhook",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhooks/delete?id=WH_ID",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "delete"
              ],
              "query": [
                {
                  "key": "id",
                  "value": "WH_ID"
                }
              ]
            }
          },
          "response": []
        }
      ]
    }
  ]
}