Jobs
Endpoints for listing, retrieving, downloading, and replaying partner jobs.
Returns a list of jobs scheduled by the account.
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).
OK
curl -L \
--url 'https://api.impact.com/Mediapartners/{AccountSID}/Jobs' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'OK
{
"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.
OK
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: */*'OK
{
"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 completed successfully. If the job is not finished, the current status is returned (202). A job result is available 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 redirect.
Returns the result file.
Job is still processing; returns the job status.
Redirects to a temporary signed URL for download.
curl -L \
--url 'https://api.impact.com/Mediapartners/{AccountSID}/Jobs/{JobId}/Download' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'binaryReplay a completed job. Useful for jobs that COMPLETED, FAILED, or CANCELLED, or when additional results are expected for the export window.
Use your AccountSID as the username and AuthToken as the password.
Unique identifier for the partner account.
The unique job identifier.
OK - Returns the status of the replayed job.
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 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

