List all actions

Returns a list of the actions attributed to you. Actions are returned by creation date, with the most recently created actions appearing first.

Parameters


CampaignId optional

Filters all actions for a given brand's campaign (or program).


State optional

Filters all actions based on their state value.

Possible enum values
PENDING Action is awaiting its locking date for approval, or to be manually approved. Actions that have been modified will also have this state.
APPROVED Action reached its locking date and was approved, or was manually approved and will pay out the partner. No further modifications can occur.
REVERSED Action was reversed and will not pay out the partner.

ActionDateStart optional

Filters out all actions that have an EventDate on or after this value.


ActionDateEnd optional

Filters out all actions that have an EventDate on or before this value.


StartDate optional

Filters out all actions that have a last updated date on or after this value. Can be sent in along with EndDate as a replacement for ActionDateStart.

📘

Note: State transitions (e.g., from Pending to Approved) are not considered updates and will not be filtered by StartDate. We recommend using LockingDateStart or referencing the LockingDate value returned in the action object.


EndDate optional

Filters out all actions that have a last updated date on or before this value. Can be sent in along with StartDate as a replacement for ActionDateEnd.

📘

Note: State transitions (e.g., from Pending to Approved) are not considered updates and will not be filtered by EndDate. We recommend using LockingDateEnd or referencing the LockingDate value returned in the action object.


LockingDateStart optional

Filters out all actions that have a LockingDate on or after this value. Can be sent in along with LockingDateStart as a replacement for ActionDateStart.


LockingDateEnd optional

Filters out all actions that have a LockingDate on or before this value. Can be sent in along with LockingDateEnd as a replacement for ActionDateEnd.

Returns


An array of action objects up to a limit dictated by @pagesize. Each entry in the array is a separate action object. If no actions meet the criteria, the resulting array will be empty. This request should never return an error.

Example request


curl 'https://api.impact.com/Mediapartners/<AccountSID>/Actions' \
  -X GET \
  -u '<AccountSID>:<AuthToken>' \
  -H 'Accept: application/json' \
  -d 'CampaignId=1000' \
  -d 'ActionDateStart=2020-09-01T00:00:00Z' \
  -d 'ActionDateEnd=2020-09-30T00:00:00Z'
  -G

Example response


{
  "@page": "1",
  ...
  "Actions": [
  	{
      "Id": "1000.4636.158133",
      "CampaignId": "1000",
      "CampaignName": "Acme Campaign",
      "ActionTrackerId": "2240",
      "ActionTrackerName": "Sale",
      "EventCode": "",
      "State": "PENDING",
      "AdId": "506720",
      "Payout": "0.88",
      "DeltaPayout": "0.88",
      "IntendedPayout": "0.88",
      "Amount": "21.99",
      "DeltaAmount": "21.99",
      "IntendedAmount": "21.99",
      "Currency": "USD",
      "ReferringDate": "2020-09-10T09:45:07-07:00",
      "EventDate": "2020-09-10T10:42:38-07:00",
      "CreationDate": "2020-09-10T10:51:23-07:00",
      "LockingDate": "2020-09-26T00:00:00-07:00",
      "ClearedDate": "",
      "ReferringType": "CLICK_COOKIE",
      "ReferringDomain": "",
      "PromoCode": "SUMMERSALE2020",
      "Oid": "9217374917472",
      "CustomerArea": "855",
      "CustomerCity": "Santa Barbara",
      "CustomerRegion": "California",
      "CustomerCountry": "US",
      "SubId1": "",
      "SubId2": "",
      "SubId3": "",
      "SharedId": "RT-19247423",
      "Uri": "/Advertisers/<AccountSid>/Actions/1000.4636.158133"
  	},
    {
      ...
    }
  ]
}