For the /actions endpoint There are two flags that you must add to your queries:
includeSkus
: Set this totrue
if you want to see all of the SKUs data associated with an action orfalse
if you want to hide this.includeCustomFields
: Set this totrue
if you want to see all of the custom field data associated with an action (there are 20 custom fields) orfalse
if you want to hide this.
## Sample JSON Body
{
"dates": {
"eventDateStart": "2021-09-19",
"eventDateEnd": "2021-09-22"
},
"includeSkus": false,
"includeCustomFields": true,
"limit": 100,
"offset": 0
}
Sample JSON Request
curl --request POST \
--url 'https://{server}-api.affluent.io/v1/actions?apiKey=YOUR_API_KEY&=' \
--header 'Content-Type: application/json' \
--data '{
"dates": {
"eventDateStart": "2021-09-19",
"eventDateEnd": "2021-09-22"
},
"includeSkus": false,
"includeCustomFields": true,
"limit": 100,
"offset": 0
}'