post
https://api-sandbox.paymentlabs.io/batches//imports//finish
Creates the payments of an import in its batch. The payments are created in the background.
Call it when the import is ready or processed_with_errors. errorHandling decides what happens to invalid rows:
allOrNone: create the payments only if every row is valid. An import with invalid rows is refused with400.importValid: create a payment for each valid row and skip the invalid ones.
The import moves to finishing, then finished when every payment exists; poll Get Import. The payments are DRAFT and are
not sent: submit them with Submit Batch, Submit Payments or Submit Payment.
Requires the Write permission.
Errors
400:errorHandlingisallOrNoneand the import has invalid rows. Fix the file and import it again, or finish withimportValid.400 VALIDATION_ERROR:errorHandlingis missing or invalid.404 NOT_FOUND: the batch or the import does not exist.423: the import is notreadyorprocessed_with_errors, or the batch does not accept payments.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
202The payments are being created. Poll Get Import until status is finished.
