Create an Export Job Event
Export API (v1)
Create an Export Job Event
deprecated
The Export Job Events imply the different status of an Export Job through the export lifecycle. Use this endpoint to create a new status. For example, started event implies the export job is initiated. The existing Export Job Events are as follows:
- started: An export job is initiated. This allows the integration service to start processing the export job items.
- failed: The export job has failed when an irrecoverable error happens and this could have happened while processing the export job items.
- completed: The export job items have been successfully exported.
- completed_with_errors: The export job items have been processed, although some of them could not be exported.
POST
Create an Export Job Event
Authorizations
JWT Bearer token authentication. Include the token in the Authorization header as: Bearer <token>
Body
application/json;charset=UTF-8
| Value | Description |
|---|---|
| started | The integration has started processing the job. |
| failed | The job has failed due to a connection error, authentication failure, or similar issue. |
| completed | The job has been successfully processed. |
| completed_with_errors | The job has been completed, but only some accounting entries were exported successfully. |
Available options:
started, failed, completed, completed_with_errors Identifier of the job the event is to be processed for.
Reason why the job failed in the case of a failure. Include this only when the export job event has a failed status.
| Value | Description |
|---|---|
| invalid_configuration | This would define a failure reason pertaining to invalid configuration needed to complete the export job or interact with the accounting system. |
| missing_configuration | This would define a failure reason pertaining to incomplete configuration needed to complete the export job or interact with the accounting system. |
| authentication_failure | Pleo API failed to authenticate with the integration service when sending off a WebHook API call. |
| accounting_system_authentication_failure | Integration service could not authenticate with the accounting system. |
| pleo_rate_limit | Irrecoverable rate limit issue with Pleo API. |
| accounting_system_rate_limit | Irrecoverable rate limit issue with the accounting system. |
| service_unreachable | Integration service unreachable. |
| accounting_system_unreachable | Integration service unable to reach accounting system. |
| validation_failure | Irrecoverable validation error making the job unprocessable. |
| authorization_failure | Authorisation revoked or user no longer has access in the accounting system. |
| integration_unusable | Integration service blocked or unusable for the customer. |
| job_expired | Job not updated within expiry time limit. |
| service_timeout | Irrecoverable timeout communicating with integration service. |
| accounting_system_timeout | Irrecoverable timeout communicating with accounting system. |
| canceled_by_user | Job was canceled by user. |
Available options:
invalid_configuration, missing_configuration, authentication_failure, accounting_system_authentication_failure, pleo_rate_limit, accounting_system_rate_limit, service_unreachable, accounting_system_unreachable, validation_failure, authorization_failure, integration_unusable, job_expired, service_timeout, accounting_system_timeout, canceled_by_user Response
default - application/json;charset=UTF-8
default response