{
  "opencollection": "1.0.0",
  "info": {
    "name": "CNH FieldOps API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://develop.cnh.com/oauth/authorize",
      "accessTokenUrl": "https://develop.cnh.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Tokens",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Exchange refresh token for access token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fieldops.cnh.com/oauth/token",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Exchange a refresh token for a short-lived access token."
        }
      ]
    },
    {
      "info": {
        "name": "Equipment",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List equipment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/equipment",
            "params": [
              {
                "name": "brand",
                "value": "",
                "type": "query"
              },
              {
                "name": "vehicleType",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns equipment registered to the authenticated user's FieldOps account."
        },
        {
          "info": {
            "name": "Get equipment by vehicle ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/equipment/:vehicleId",
            "params": [
              {
                "name": "vehicleId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get equipment by vehicle ID"
        }
      ]
    },
    {
      "info": {
        "name": "Vehicle Telemetry",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get vehicle telemetry (ISO 15143-3)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/telemetry/:vehicleId",
            "params": [
              {
                "name": "vehicleId",
                "value": "",
                "type": "path"
              },
              {
                "name": "profile",
                "value": "",
                "type": "query"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns telemetry for a single vehicle following ISO 15143-3. Use the `profile` parameter to select CP (CAN Parameter, default) or MH (Machine Health) data. Supply `startDate` and `endDate` (recommended: one-day window) to constrain the response and improve performance."
        },
        {
          "info": {
            "name": "Get fault codes for a vehicle",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/telemetry/:vehicleId/fault-codes",
            "params": [
              {
                "name": "vehicleId",
                "value": "",
                "type": "path"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get fault codes for a vehicle"
        },
        {
          "info": {
            "name": "Get aggregated metrics for a vehicle",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/metrics/:vehicleId",
            "params": [
              {
                "name": "vehicleId",
                "value": "",
                "type": "path"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Aggregated daily metrics including operating hours, idle hours, fuel remaining ratio, distance, and peak daily speed."
        }
      ]
    },
    {
      "info": {
        "name": "Operations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List operations by vehicle",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/operations/by-vehicle/:vehicleId",
            "params": [
              {
                "name": "vehicleId",
                "value": "",
                "type": "path"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List operations by vehicle"
        }
      ]
    },
    {
      "info": {
        "name": "Prescriptions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Send prescription Rx file to vehicle or FieldOps",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fieldops.cnh.com/prescriptions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send prescription Rx file to vehicle or FieldOps"
        }
      ]
    },
    {
      "info": {
        "name": "Farm Setup",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List growers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/growers"
          },
          "docs": "List growers"
        },
        {
          "info": {
            "name": "List farms",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/farms",
            "params": [
              {
                "name": "growerId",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List farms"
        },
        {
          "info": {
            "name": "List fields",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/fields",
            "params": [
              {
                "name": "farmId",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List fields"
        }
      ]
    },
    {
      "info": {
        "name": "Webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List webhook subscriptions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fieldops.cnh.com/webhooks"
          },
          "docs": "List webhook subscriptions"
        },
        {
          "info": {
            "name": "Create webhook subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fieldops.cnh.com/webhooks",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create webhook subscription"
        }
      ]
    }
  ],
  "bundled": true
}