DELETEhttps://api.veriko.mx/v1/beneficiaries/imports/{id}

Cancel an import job

Audience
public
Auth
API key
Permission
beneficiaries:create
How-to guide →

Cancels an import job that has not been confirmed yet (pending, parsing or preview_ready). For jobs in terminal states (completed, failed, cancelled) or already committing returns 404. Accounts already persisted by a previous commit must be archived individually with DELETE /v1/beneficiaries/{id}.

Parameters
ParameterInTypeRequiredDescription
id*pathintegerrequired

Numeric ID of the import job.

e.g. 42
Request
curl -X DELETE 'https://api.veriko.mx/v1/beneficiaries/imports/{id}' \
  -H 'Authorization: Bearer veriko_••••' \
  -H 'Content-Type: application/json'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesDELETE /v1/beneficiaries/imports/{id}
StatusClassDescriptionBody
2042xxJob cancelled. No body.No body
4014xxAuthentication is required or the provided credentials are invalid.ErrorResponse
4034xxInsufficient permissions.ErrorResponse
4044xxJob does not exist or is in a terminal state.ErrorResponse
Errors from DELETE /v1/beneficiaries/imports/{id}
StatusCodeExample
401unauthorized

Invalid or missing authentication credentials.

Envelope
meta.request_id
c4d5e6f7a8b9
403forbidden

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c0
404not_found

Import job not found or already terminal.

Envelope
meta.request_id
f8a9b0c1d2e3