Manage

Execute bulk process

Starts execution of the bulk process identified by the bulk_id parameter.

A bulk process is created by one of the bulk operations (creating users, sends, transfers, or wire transfers, blocking cards, and so on) and sits in SUBMITTED until you execute it. Nothing runs until this call.

The process must be in SUBMITTED; calling it in any other state fails with INVALID_STATE, and calling it twice fails with ALREADY_SUBMITTED.

Fields

mode decides what happens when an individual operation fails:

ModeEffect
ON_FAILURE_STOPExecution stops at the first operation that returns a 4xx or 5xx.
ON_FAILURE_CONTINUEExecution carries on through failures and reports them at the end.

webhookInterval is the number of operations between Bulk Process Progress webhooks. The effective minimum is 25% of the total, so a smaller value still yields four webhooks across the run.

It returns immediately

Execution is asynchronous: a 204 means the run was accepted, not that it finished. The process moves to RUNNING and settles on one of:

Final stateMeaning
COMPLETEDEvery operation succeeded.
PARTIALLY_COMPLETEDExecution finished, but some operations failed.
FAILEDNo operation executed.
CANCELLEDThe run was canceled before finishing.

Track it with Get bulk process, and find which individual operations failed with List bulk operations, filtering on status.

Controlling a run

While RUNNING, you can pause the process and later resume it, or cancel it. Canceling is final. Operations that have already executed aren't rolled back by either.

Read The bulk process for the full lifecycle.

post/bulks/{bulk_id}/execute

Request

  • Base URL: https://sandbox.weavr.io/multi
  • URL: https://sandbox.weavr.io/multi/bulks/{bulk_id}/execute
  • Auth: HTTP bearer and API key in header api-key

Path parameters

bulk_idstring required
Example:2468013579

The bulk id of the bulk process.

Request body

mode'ON_FAILURE_STOP' | 'ON_FAILURE_CONTINUE'

ON_FAILURE_STOP : the execution of the bulk process stops after the first bulk operation that fails (operation returns a 4xx or 5xx response code). ON_FAILURE_CONTINUE: the execution of the bulk process resumes as normal even when any of the bulk operations fail.

webhookIntervalinteger

The count of operations after which a Bulk Process Progress will be sent. For example, if set to 10, a webhook is sent after every tenth operation is attempted. The minimum value for count is 25% of all operations. If a value below this is entered, a webhook will only be sent for each 25% of operations attempted (i.e. 4 webhooks per Bulk Process).

Example request

{
  "webhookInterval": 50
}

Response

Success - No Content.

Changes

No recorded changes to this operation across all 1 revision of this API.