# Orders
NOTE
The URI for the API endpoint is often the same for multiple endpoints, the difference being in HTTP methods.
# Retrieve amount of sale orders based on given date range
GET https://api.wolfeo.me/sales-amount
# Example Request
curl --request GET "https://api.wolfeo.me/sales-amount?api_key=demo_key&period=all"
# Parameters
GET
Parameter | Type | Description |
---|---|---|
api_key* | string | Your secret Wolfeo API key, required for all API calls |
period* | string | Option for filtering contacts, required |
range | string | Date range of contact created |
* denotes a required parameter
# Possible values for "period"
today
, yesterday
, last7days
, last30days
, between
# Example value for "range"
2023-06-01to2023-06-29
# Example url
for all
https://api.wolfeo.me/sales-amount?api_key=demo_key&period=all
for today
https://api.wolfeo.me/sales-amount?api_key=demo_key&period=today
for yesterday
https://api.wolfeo.me/sales-amount?api_key=demo_key&period=yesterday
for last7days
https://api.wolfeo.me/sales-amount?api_key=demo_key&period=last7days
for last30days
https://api.wolfeo.me/sales-amount?api_key=demo_key&period=last30days
for between
https://api.wolfeo.me/sales-amount?api_key=demo_key&period=between&range=2023-06-01to2023-06-29
# Sample Return
{
"amount": 906
}