POST {{baseURL}}/v2/settlements/batches/close
This endpoint closes the merchant's currently open batch and submits its unsettled transactions for settlement with the specified payment processor.
Settlement is processed asynchronously. Poll GET /v2/settlements/batches to monitor when settlement completes. This action is irreversible.
See Also:
To list settlement batches, see GET /v2/settlements/batches.
Security
Bearer
- Sandbox environmenthttps://sandbox.api.flute.com/v2/settlements/batches/close
- Production environmenthttps://api.flute.com/v2/settlements/batches/close
curl -i -X POST \
https://sandbox.api.flute.com/v2/settlements/batches/close \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paymentProcessorId": "70f07e54-ad9d-417c-9ab4-d4acc5302aa8"
}'OK
Identifies the batch settlement type.
Valid values are:
| Batch Type | Meaning |
|---|---|
| Open | An open batch is still active and accepting transactions. |
| PendingSettlement | The batch has been submitted for settlement and is processing with the acquirer or bank. |
| Settled | A settled batch has completed processing with the acquirer or bank. |
| Declined | The batch settlement was declined by the acquirer or bank. |
Example: Open
Response
{ "batchStatus": "PendingSettlement" }