{
  "info": {
    "_postman_id": "007e91f9-ebfa-45ad-8f90-586293290934",
    "name": "(Publico) API Open Finance",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "19362353"
  },
  "item": [
    {
      "name": "Connectors",
      "item": [
        {
          "name": "List all connectors",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/connectors?q=brasil",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "connectors"
              ],
              "query": [
                {
                  "key": "q",
                  "value": "Santander Empresas",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "brasil"
                }
              ]
            }
          },
          "response": []
        }
      ],
      "description": "Instituições financeiras"
    },
    {
      "name": "Connect Session",
      "item": [
        {
          "name": "Create connect session",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"redirectUrl\": \"https://app.suaempresa.com.br/callback\",\n    \"expiresInMinutes\": 30\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{BASE_URL}}/connect-sessions",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "connect-sessions"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "List webhooks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/webhooks",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "webhooks"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get webhook",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/webhooks/:id",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "0198e7aa-1306-742d-bacf-0be4c6aafb7c"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Update webhook",
          "request": {
            "method": "PUT",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"url\": \"https://teste2.com\",\n    \"secret\": \"123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{BASE_URL}}/webhooks/:id",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "0198e7a6-38e8-7121-9c2d-692e8e2ed6e1"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Create webhook",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"url\": \"https://teste.com\",\n    \"secret\": \"123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{BASE_URL}}/webhooks",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "webhooks"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Delete webhook",
          "request": {
            "method": "DELETE",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"url\": \"https://teste2.com\",\n    \"secret\": \"123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{BASE_URL}}/webhooks/:id",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "0198e7aa-1306-742d-bacf-0be4c6aafb7c"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Item (Consentimento)",
      "item": [
        {
          "name": "Create Item",
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "{\r\n   \"connectorId\": \"019916bd-5d53-719f-a6bd-e082c1948997\",\r\n   \"parameters\": { \"cpf\": \"40516285823\", \"cnpj\": \"54651839000119\" }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{BASE_URL}}/items",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Resync Item",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:id/resync",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":id",
                "resync"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "019c3ef6-6b84-74e8-a65a-52133d41088a"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get Item",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:id",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "019be1d0-1290-73a9-b052-3fe2f0569cf6"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get Items",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Delete Item",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId"
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "01995829-a7d5-7598-9f76-a9e7e274b718"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Item (Bank Account)",
      "item": [
        {
          "name": "List Accounts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/accounts",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "accounts"
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "019bc7f1-7aca-7779-89af-6a4213d4260e"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Account Info",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/accounts/:accountId",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "accounts",
                ":accountId"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "3",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "01993f99-6f28-74c2-9f71-9e379cdc4c03"
                },
                {
                  "key": "accountId",
                  "value": "01993f9c-35fa-76fc-9293-6122a0e79f3e"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Transactions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/accounts/:accountId/transactions?page=1&from=2025-07-02T20:11:39.000Z&to=2025-07-02T20:11:39.000Z",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "accounts",
                ":accountId",
                "transactions"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "ids",
                  "value": "01991673-90c5-7648-8404-2c4c53c75f32",
                  "disabled": true
                },
                {
                  "key": "ids",
                  "value": "01992b1b-c479-72ce-aca2-f1b2f8162774",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "2025-07-02T20:11:39.000Z"
                },
                {
                  "key": "to",
                  "value": "2025-07-02T20:11:39.000Z",
                  "type": "text"
                }
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "01990a1e-1788-752d-971d-3ab526e7a296"
                },
                {
                  "key": "accountId",
                  "value": "01990fb1-cd7c-708a-8602-78d18eaed773"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Item (Investments)",
      "item": [
        {
          "name": "Investments",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/investments",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "investments"
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "0198e9ae-d2ee-744d-b39d-5b1ccab95764"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Investments Transactions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/investments/:investmentId/transactions",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "investments",
                ":investmentId",
                "transactions"
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "01987fd4-ceee-732c-a83d-c77f6bb52880"
                },
                {
                  "key": "investmentId",
                  "value": "0198a9c6-bf0e-75ee-991c-f510eeaea4bd"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Item (Credit Card)",
      "item": [
        {
          "name": "List Credit Card",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/credit-cards",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "credit-cards"
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "019ce43a-f463-7662-95ea-df977413eda4"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get Credit Card",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/credit-cards/:creditCardId",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "credit-cards",
                ":creditCardId"
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "019ce43a-f463-7662-95ea-df977413eda4"
                },
                {
                  "key": "creditCardId",
                  "value": "019ce43c-a4c9-739a-85ce-ef6141e4976d"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get Credit Card Transactions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{BASE_URL}}/items/:itemId/credit-cards/:cardId/transactions",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "items",
                ":itemId",
                "credit-cards",
                ":cardId",
                "transactions"
              ],
              "variable": [
                {
                  "key": "itemId",
                  "value": "019ce43a-f463-7662-95ea-df977413eda4"
                },
                {
                  "key": "cardId",
                  "value": "019ce43c-a4c9-739a-85ce-ef6141e4976d"
                }
              ]
            }
          },
          "response": []
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{TOKEN}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "BASE_URL",
      "value": "http://localhost:3000"
    },
    {
      "key": "TOKEN",
      "value": ""
    }
  ]
}