{
  "opencollection": "1.0.0",
  "info": {
    "name": "Infor ION API Gateway ION Documents M3 API API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://inforos.infor.com/INFOR_DEV/as/token.oauth2",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "M3 API",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Call M3 MI program (GET)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{os}/{tenant}/{product}/api/:apiVersion/:programId",
            "params": [
              {
                "name": "apiVersion",
                "value": "",
                "type": "path",
                "description": "API version (e.g., \"latest\" or specific version number)"
              },
              {
                "name": "programId",
                "value": "",
                "type": "path",
                "description": "M3 MI program and transaction (e.g., \"CRS610MI/GetBasicData\")"
              },
              {
                "name": "CUNO",
                "value": "",
                "type": "query",
                "description": "Customer number (example M3 input field)"
              },
              {
                "name": "maxrecs",
                "value": "",
                "type": "query",
                "description": "Maximum records to return"
              },
              {
                "name": "returncols",
                "value": "",
                "type": "query",
                "description": "Comma-separated column names to return"
              }
            ]
          },
          "docs": "Executes an Infor M3 MI (Management Interface) program transaction via the ION API Gateway. GET requests retrieve data from M3. The programId follows the pattern {ProgramName}/{TransactionName} (e.g., CRS610MI/GetBasicData)."
        },
        {
          "info": {
            "name": "Call M3 MI program (POST)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{os}/{tenant}/{product}/api/:apiVersion/:programId",
            "params": [
              {
                "name": "apiVersion",
                "value": "",
                "type": "path"
              },
              {
                "name": "programId",
                "value": "",
                "type": "path",
                "description": "M3 MI program and transaction (e.g., \"CRS610MI/AddBasicData\")"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Executes an Infor M3 MI program transaction via POST. Used for write operations (Add, Change, Delete transactions)."
        }
      ]
    }
  ],
  "bundled": true
}