{
  "opencollection": "1.0.0",
  "info": {
    "name": "HEVN 2FA Xero API",
    "version": "0.1.2"
  },
  "items": [
    {
      "info": {
        "name": "Xero",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Xero Connect",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hevn.finance/api/v1/xero/connect",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Start Xero OAuth flow. Returns redirect to Xero login."
        },
        {
          "info": {
            "name": "Xero Callback",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hevn.finance/api/v1/xero/callback",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "query"
              },
              {
                "name": "state",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "OAuth callback from Xero. Exchanges code for tokens.\n\nNote: This endpoint is called by Xero redirect, so we look up the user\nfrom the stored OAuth state rather than requiring a JWT header."
        },
        {
          "info": {
            "name": "Xero Disconnect",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hevn.finance/api/v1/xero/disconnect",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Disconnect Xero integration."
        },
        {
          "info": {
            "name": "Xero Status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hevn.finance/api/v1/xero/status",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Check Xero connection status."
        },
        {
          "info": {
            "name": "Xero Export",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hevn.finance/api/v1/xero/export",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Export transactions to Xero as Bank Transactions."
        },
        {
          "info": {
            "name": "Xero Connect Package Alias",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hevn.finance/api/v1/transactions/xero/connect",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Start Xero OAuth flow. Returns redirect to Xero login."
        },
        {
          "info": {
            "name": "Xero Callback Package Alias",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hevn.finance/api/v1/transactions/xero/callback",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "query"
              },
              {
                "name": "state",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "OAuth callback from Xero. Exchanges code for tokens.\n\nNote: This endpoint is called by Xero redirect, so we look up the user\nfrom the stored OAuth state rather than requiring a JWT header."
        },
        {
          "info": {
            "name": "Xero Disconnect Package Alias",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hevn.finance/api/v1/transactions/xero/disconnect",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Disconnect Xero integration."
        },
        {
          "info": {
            "name": "Xero Status Package Alias",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hevn.finance/api/v1/transactions/xero/status",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Check Xero connection status."
        },
        {
          "info": {
            "name": "Xero Export Package Alias",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hevn.finance/api/v1/transactions/xero/export",
            "headers": [
              {
                "name": "x-api-key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Export transactions to Xero as Bank Transactions."
        }
      ]
    }
  ],
  "bundled": true
}