{
  "opencollection": "1.0.0",
  "info": {
    "name": "IFS Cloud ERP Finance API",
    "version": "22.1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.ifs.cloud/oauth2/authorize",
      "accessTokenUrl": "https://login.ifs.cloud/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Finance",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List accounting vouchers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.ifs.cloud/main/ifsapp/data/VOUCHER_API",
            "params": [
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "OData filter expression (e.g., \"VoucherDate ge 2024-01-01 and AccountingYear eq '2024'\")"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of fields to return"
              },
              {
                "name": "$top",
                "value": "",
                "type": "query"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns general ledger voucher records. Supports OData $filter, $select, $orderby, and $top/$skip for pagination."
        },
        {
          "info": {
            "name": "Get a specific voucher",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.ifs.cloud/main/ifsapp/data/VOUCHER_API(AccountingYear=':accountingYear',VoucherType=':voucherType',VoucherNo=:voucherNo,Company=':company')",
            "params": [
              {
                "name": "accountingYear",
                "value": "",
                "type": "path",
                "description": "Accounting year (e.g., \"2024\")"
              },
              {
                "name": "voucherType",
                "value": "",
                "type": "path",
                "description": "Voucher type code"
              },
              {
                "name": "voucherNo",
                "value": "",
                "type": "path",
                "description": "Voucher number"
              },
              {
                "name": "company",
                "value": "",
                "type": "path",
                "description": "Company code"
              }
            ]
          },
          "docs": "Returns a single voucher by its composite key (accounting year, voucher type, voucher number, and company)."
        }
      ]
    }
  ],
  "bundled": true
}