{
  "opencollection": "1.0.0",
  "info": {
    "name": "Elead Vehicle Sales APIs Activities Opportunities API",
    "version": "1.2.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "client_id",
      "value": "{{client_id}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Opportunities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a new opportunity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fortellis.io/sales/v1/elead/opportunities",
            "headers": [
              {
                "name": "Request-Id",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new opportunity for an existing customer record."
        },
        {
          "info": {
            "name": "Query opportunities by date range",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fortellis.io/sales/v1/elead/opportunities/search",
            "headers": [
              {
                "name": "Request-Id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "dateFrom",
                "value": "",
                "type": "query"
              },
              {
                "name": "dateTo",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Query opportunities by date range"
        },
        {
          "info": {
            "name": "Query opportunities changed since a date/time (within the past 7 days)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fortellis.io/sales/v1/elead/opportunities/searchDelta",
            "headers": [
              {
                "name": "Request-Id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "dateFrom",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "pageSize",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Query opportunities changed since a date/time (within the past 7 days)"
        },
        {
          "info": {
            "name": "Add a comment to an opportunity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fortellis.io/sales/v1/elead/opportunities/:opportunityId/comments",
            "headers": [
              {
                "name": "Request-Id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "opportunityId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add a comment to an opportunity"
        },
        {
          "info": {
            "name": "Send an email and create the corresponding activity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fortellis.io/sales/v1/elead/opportunities/:opportunityId/email",
            "headers": [
              {
                "name": "Request-Id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "opportunityId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send an email and create the corresponding activity"
        }
      ]
    }
  ],
  "bundled": true
}