Send a draft payment batch for approval
POST/api/v1/payment_batches/:id/submit_for_approval
Moves a draft batch to pending_approval. The batch needs at least one instruction and every instruction must still validate. Asking twice is refused batch_not_submittable: the batch is no longer a draft.
Request
Responses
- 200
- 403
- 404
- 409
- 422
The batch, now pending_approval.
The token lacks the write scope.
No payment batch with this id is reachable by the token's grants.
stale_version: the batch changed since the expected_version you sent. NOTHING WAS CHANGED; details carries the current version and batch. idempotency_key_reuse and idempotency_request_in_progress also answer 409, with no details.
batch_not_submittable: the batch is not a draft. validation_failed: the Idempotency-Key header is missing, expected_version is not an integer, or the batch has no instruction or an instruction that no longer validates (details.instructions names their end_to_end_id).