The actions endpoint allows you to pull a list of every unique commissionable action (e.g. sales, leads, bonuses, etc) with all associated data Affluent has on that transaction, including SKU data. Importantly, if you're maintaining your own data store, this API allows you to pull actions based on the last time they were modified so that you do not need to perform historical data pulls in order to update pending transactions.

The JSON body requires:

  1. A dates object that specifies the date range for which you would like to query data. Dates are requested in UTC time so please bear that in mind. There are two accepted date types:
  • Use eventDateStart and eventDateEnd to request actions which occurred in that range. This should use dates. For example:
"dates": 
{
  "eventDateStart": "2021-09-19",
  "eventDateEnd": "2021-09-22"
}
  • RECOMMENDED FOR DATA STORES: Use affluentModifiedAtStart and affluentModifiedAtEnd to request actions based on a last modified date. This should use datetimes. For example:
"dates": 
{
  "affluentModifiedAtStart": "2021-09-21 00:00:00+00:00",
  "affluentModifiedAtEnd": "2021-09-22 00:00:00+00:00"
}
  1. A limit and offset (see Limit and Offset)

The JSON body can additionally accept:

  1. Filters

  2. An SKU flag (optional) to include or exclude SKU data. The default is false. For example:

"includeSkus": true
Language
Authentication
Query
URL
Click Try It! to start a request and see the response here!