Skip to main content

Job State Webhook

Overview

The Job State Webhook is designed to provide real-time updates on the status of a job. It is triggered whenever there is a change in the job's state or when the job is archived. This webhook delivers a payload containing key details about the job's current state, enabling you to seamlessly integrate and respond to changes within your systems. To receive these notifications, configure your callback_url in the settings of your portal.

Job States

This section details the various states a job can be in, providing users with understanding of each state's meaning.

StateDescription
in_progressJob is being actively worked on and under way.
pending_approvalJob is ready for review from the client, and is pending approval.
export_in_progressJob has been approved by the client, and the export is in progress.
export_failedA failure occured during the export process.
client_action_requiredJob cannot be processed because it requires further action from the client. Progress has been temporarily suspended.
flaggedCompleted job has been submitted back to Woflow for rework due to quality error.
cancelledCustomer requested to cancel the job while it was in progress.
failedAn unexpected technical error occurred and the job cannot be completed.
completedJob has been completed and data deliverables are ready.

Payload Values

ValuesTypeDescription
stateStringIndicates the state of the job.
status_reasonsStringProvides reasons for job escalation. Applicable only when the job state is client_action_required.
job_idIDA unique identifier for the job.
client_mappingsObjectCustom mappings for the client's system.
notesStringAdditional messages explaining the reason for job escalation.
archivedBooleanSpecifies whether the job has been archived.

Example Payloads

in_progress

{
"state": "in_progress",
"status_reasons": null,
"job_id": "779a4057-7e71-4541-a14b-10ec4802ab55",
"client_mappings": {},
"notes": null,
"archived": false
}

pending_approval

{
"state": "pending_approval",
"status_reasons": null,
"job_id": "779a4057-7e71-4541-a14b-10ec4802ab55",
"client_mappings": {},
"notes": null,
"archived": false
}

client_action_required

{
"state": "client_action_required",
"status_reasons": "Missing menu source",
"job_id": "779a4057-7e71-4541-a14b-10ec4802ab55",
"client_mappings": {},
"notes": "The url provided does not link to a menu.",
"archived": false
}

completed

{
"state": "completed",
"status_reasons": null,
"job_id": "779a4057-7e71-4541-a14b-10ec4802ab55",
"client_mappings": {},
"notes": null,
"archived": false
}