Jobs
Endpoints for listing, retrieving, downloading, and replaying partner jobs.
Returns a list of jobs based on creation date filters.
Use your AccountSID as the username and AuthToken as the password.
Unique identifier for the partner account.
Return jobs scheduled after this date (YYYY-MM-DD).
Return jobs scheduled before this date (YYYY-MM-DD).
A list of job objects.
curl -L \
--url 'https://api.impact.com/Mediapartners/{AccountSID}/Jobs' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'A list of job objects.
{
"Jobs": [
{
"Id": "d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f",
"Type": "ClickExport",
"ProgramId": "3629",
"CreatedBy": "<AccountSID>",
"CreatedDate": "2022-06-07T04:33:50-05:00",
"StartedDate": "2022-06-07T04:33:50-05:00",
"CompletedDate": "2022-06-07T04:33:50-05:00",
"AbandonedDate": "2022-06-07T04:33:50-05:00",
"CancelledDate": "2022-06-07T04:33:50-05:00",
"FailedDate": "2022-06-07T04:33:50-05:00",
"LastProgressUpdateDate": "2022-06-07T04:33:50-05:00",
"Status": "COMPLETED",
"StatusMessage": "Job processing completed successfully.",
"RecordsProcessed": 250,
"PercentageComplete": 100,
"Replayable": true,
"ResultUri": "/Mediapartners/<AccountSID>/Jobs/d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f/Download"
}
]
}Returns an object describing the status of the queried job.
Use your AccountSID as the username and AuthToken as the password.
Unique identifier for the partner account.
The unique job identifier.
Current job status and details.
The unique identifier for this job.
d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915fThe type of job.
ClickExportPossible values: The impact.com Program ID (CampaignId) this job was scheduled for.
3629The Account SID of the account that scheduled this job.
<AccountSID>The date and time the job was initially scheduled.
2022-06-07T04:33:50-05:00The date and time the job last started running.
2022-06-07T04:33:50-05:00The date and time the job was last successfully completed.
2022-06-07T04:33:50-05:00Set when an attempt is made to start a job that is already running.
2022-06-07T04:33:50-05:00The date and time the job was last canceled.
2022-06-07T04:33:50-05:00The date and time processing of this job last raised an error.
2022-06-07T04:33:50-05:00The date and time progress on job processing was last updated.
2022-06-07T04:33:50-05:00The current processing status of the job.
COMPLETEDPossible values: A human-readable message describing the current job status.
Job processing completed successfully.The number of records processed up to the last progress update.
250The percentage of job processing that has been completed.
100Indicates whether this job type supports replay.
trueAPI resource path to download the result file once the job is complete.
/Mediapartners/<AccountSID>/Jobs/d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f/Downloadcurl -L \
--url 'https://api.impact.com/Mediapartners/{AccountSID}/Jobs/{JobId}' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'Current job status and details.
{
"Id": "d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f",
"Type": "ClickExport",
"ProgramId": "3629",
"CreatedBy": "<AccountSID>",
"CreatedDate": "2022-06-07T04:33:50-05:00",
"StartedDate": "2022-06-07T04:33:50-05:00",
"CompletedDate": "2022-06-07T04:33:50-05:00",
"AbandonedDate": "2022-06-07T04:33:50-05:00",
"CancelledDate": "2022-06-07T04:33:50-05:00",
"FailedDate": "2022-06-07T04:33:50-05:00",
"LastProgressUpdateDate": "2022-06-07T04:33:50-05:00",
"Status": "COMPLETED",
"StatusMessage": "Job processing completed successfully.",
"RecordsProcessed": 250,
"PercentageComplete": 100,
"Replayable": true,
"ResultUri": "/Mediapartners/<AccountSID>/Jobs/d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f/Download"
}Download the job result file if the job was completed successfully. If the job isn't done, the job status will be returned. A job result is available for download for 90 days.
Use your AccountSID as the username and AuthToken as the password.
Unique identifier for the partner account.
The unique job identifier.
If set to Stream, the file is streamed directly instead of using a signed URL redirect.
Returns the job result file.
Job is not yet complete. Returns the current job status.
Redirects to a temporary signed URL for file download.
curl -L \
--url 'https://api.impact.com/Mediapartners/{AccountSID}/Jobs/{JobId}/Download' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'binaryReplay a completed job. Replays are intended for jobs with COMPLETED, FAILED, or CANCELLED status, or if additional results are expected for the chosen export window.
Use your AccountSID as the username and AuthToken as the password.
Unique identifier for the partner account.
The unique job identifier.
Job successfully queued for replay.
The unique identifier for this job.
d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915fThe type of job.
ClickExportPossible values: The impact.com Program ID (CampaignId) this job was scheduled for.
3629The Account SID of the account that scheduled this job.
<AccountSID>The date and time the job was initially scheduled.
2022-06-07T04:33:50-05:00The date and time the job last started running.
2022-06-07T04:33:50-05:00The date and time the job was last successfully completed.
2022-06-07T04:33:50-05:00Set when an attempt is made to start a job that is already running.
2022-06-07T04:33:50-05:00The date and time the job was last canceled.
2022-06-07T04:33:50-05:00The date and time processing of this job last raised an error.
2022-06-07T04:33:50-05:00The date and time progress on job processing was last updated.
2022-06-07T04:33:50-05:00The current processing status of the job.
COMPLETEDPossible values: A human-readable message describing the current job status.
Job processing completed successfully.The number of records processed up to the last progress update.
250The percentage of job processing that has been completed.
100Indicates whether this job type supports replay.
trueAPI resource path to download the result file once the job is complete.
/Mediapartners/<AccountSID>/Jobs/d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f/DownloadThe job is not in a replayable state or is not of a replayable type.
curl -L \
--request PUT \
--url 'https://api.impact.com/Mediapartners/{AccountSID}/Jobs/{JobId}/Replay' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'{
"Id": "d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f",
"Type": "ClickExport",
"ProgramId": "3629",
"CreatedBy": "<AccountSID>",
"CreatedDate": "2022-06-07T04:33:50-05:00",
"StartedDate": "2022-06-07T04:33:50-05:00",
"CompletedDate": "2022-06-07T04:33:50-05:00",
"AbandonedDate": "2022-06-07T04:33:50-05:00",
"CancelledDate": "2022-06-07T04:33:50-05:00",
"FailedDate": "2022-06-07T04:33:50-05:00",
"LastProgressUpdateDate": "2022-06-07T04:33:50-05:00",
"Status": "COMPLETED",
"StatusMessage": "Job processing completed successfully.",
"RecordsProcessed": 250,
"PercentageComplete": 100,
"Replayable": true,
"ResultUri": "/Mediapartners/<AccountSID>/Jobs/d8807a9f-a5ee-4e3f-ad2b-3dfd19d1915f/Download"
}Last updated
