{
  "opencollection": "1.0.0",
  "info": {
    "name": "Nutshell Quotes API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Quotes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a quote",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.nutshell.com/rest/quotes/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Quote ID"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get a single quote by the ID provided."
        },
        {
          "info": {
            "name": "Update the status of a quote",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.nutshell.com/rest/quotes/:id/status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Quote ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Updates a quote to a native Nutshell status (READY, SENT, REVOKED, ACCEPTED, ARCHIVED). Odoo-specific fulfillment states should be stored on the lead via custom fields."
        },
        {
          "info": {
            "name": "Create an invoice from a quote",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.nutshell.com/rest/quotes/:id/invoice",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Quote ID"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Creates a new invoice by duplicating the quote (same as in-app create invoice from quote). Line items, recipient, and most document fields are copied from the quote; invoice template defaults apply for payment/body/footer fields. No request body is required."
        },
        {
          "info": {
            "name": "Get a list of quotes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.nutshell.com/rest/quotes",
            "params": [
              {
                "name": "filter[lead]",
                "value": "",
                "type": "query",
                "description": "Filter quotes by lead"
              },
              {
                "name": "filter[dateMin]",
                "value": "",
                "type": "query",
                "description": "Filter quotes created after this date. Date expected in the format YYYY-MM-DD"
              },
              {
                "name": "filter[dateMax]",
                "value": "",
                "type": "query",
                "description": "Filter quotes created before this date. Date expected in the format YYYY-MM-DD"
              },
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "Limit the number of results returned, for pagination."
              },
              {
                "name": "page[page]",
                "value": "",
                "type": "query",
                "description": "Request a specific page of results, for pagination. Used in conjunction with the page[limit] parameter. Indexing is 0-based."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get a list of quotes"
        }
      ]
    }
  ],
  "bundled": true
}