(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{486:function(e,a,t){"use strict";t.r(a);var s=t(63),r=Object(s.a)({},(function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"orders"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#orders"}},[e._v("#")]),e._v(" Orders")]),e._v(" "),t("div",{staticClass:"custom-block warning"},[t("p",{staticClass:"custom-block-title"},[e._v("NOTE")]),e._v(" "),t("p",[e._v("The URI for the API endpoint is often the same for multiple endpoints, the difference being in HTTP methods.")])]),e._v(" "),t("h2",{attrs:{id:"retrieve-amount-of-sale-orders-based-on-given-date-range"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#retrieve-amount-of-sale-orders-based-on-given-date-range"}},[e._v("#")]),e._v(" Retrieve amount of sale orders based on given date range")]),e._v(" "),t("div",{staticClass:"language- extra-class"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[e._v("GET https://api.wolfeo.me/sales-amount\n")])])]),t("h3",{attrs:{id:"example-request"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#example-request"}},[e._v("#")]),e._v(" Example Request")]),e._v(" "),t("div",{staticClass:"language-curl extra-class"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[e._v('curl --request GET "https://api.wolfeo.me/sales-amount?api_key=demo_key&period=all"\n')])])]),t("h3",{attrs:{id:"parameters"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[e._v("#")]),e._v(" Parameters")]),e._v(" "),t("p",[t("strong",[e._v("GET")])]),e._v(" "),t("table",[t("thead",[t("tr",[t("th",[e._v("Parameter")]),e._v(" "),t("th",[e._v("Type")]),e._v(" "),t("th",[e._v("Description")])])]),e._v(" "),t("tbody",[t("tr",[t("td",[e._v("api_key*")]),e._v(" "),t("td",[t("em",[e._v("string")])]),e._v(" "),t("td",[e._v("Your secret Wolfeo API key, required for all API calls")])]),e._v(" "),t("tr",[t("td",[e._v("period*")]),e._v(" "),t("td",[t("em",[e._v("string")])]),e._v(" "),t("td",[e._v("Option for filtering contacts, required")])]),e._v(" "),t("tr",[t("td",[e._v("range")]),e._v(" "),t("td",[t("em",[e._v("string")])]),e._v(" "),t("td",[e._v("Date range of contact created")])])])]),e._v(" "),t("p",[t("em",[e._v("* denotes a required parameter")])]),e._v(" "),t("h3",{attrs:{id:"possible-values-for-period"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#possible-values-for-period"}},[e._v("#")]),e._v(' Possible values for "period"')]),e._v(" "),t("p",[t("code",[e._v("today")]),e._v(", "),t("code",[e._v("yesterday")]),e._v(", "),t("code",[e._v("last7days")]),e._v(", "),t("code",[e._v("last30days")]),e._v(", "),t("code",[e._v("between")])]),e._v(" "),t("h3",{attrs:{id:"example-value-for-range"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#example-value-for-range"}},[e._v("#")]),e._v(' Example value for "range"')]),e._v(" "),t("div",{staticClass:"language- extra-class"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[e._v("2023-06-01to2023-06-29\n")])])]),t("h3",{attrs:{id:"example-url"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#example-url"}},[e._v("#")]),e._v(" Example url")]),e._v(" "),t("p",[e._v("for all")]),e._v(" "),t("p",[t("code",[e._v("https://api.wolfeo.me/sales-amount?api_key=demo_key&period=all")])]),e._v(" "),t("p",[e._v("for today")]),e._v(" "),t("p",[t("code",[e._v("https://api.wolfeo.me/sales-amount?api_key=demo_key&period=today")])]),e._v(" "),t("p",[e._v("for yesterday")]),e._v(" "),t("p",[t("code",[e._v("https://api.wolfeo.me/sales-amount?api_key=demo_key&period=yesterday")])]),e._v(" "),t("p",[e._v("for last7days")]),e._v(" "),t("p",[t("code",[e._v("https://api.wolfeo.me/sales-amount?api_key=demo_key&period=last7days")])]),e._v(" "),t("p",[e._v("for last30days")]),e._v(" "),t("p",[t("code",[e._v("https://api.wolfeo.me/sales-amount?api_key=demo_key&period=last30days")])]),e._v(" "),t("p",[e._v("for between")]),e._v(" "),t("p",[t("code",[e._v("https://api.wolfeo.me/sales-amount?api_key=demo_key&period=between&range=2023-06-01to2023-06-29")])]),e._v(" "),t("h3",{attrs:{id:"sample-return"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#sample-return"}},[e._v("#")]),e._v(" Sample Return")]),e._v(" "),t("div",{staticClass:"language-json extra-class"},[t("pre",{pre:!0,attrs:{class:"language-json"}},[t("code",[t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),t("span",{pre:!0,attrs:{class:"token property"}},[e._v('"amount"')]),t("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),t("span",{pre:!0,attrs:{class:"token number"}},[e._v("906")]),e._v("\n"),t("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]);