Skip to content

Settles transactions

Request

POST {{baseURL}}/pay-api/v1/transactions/settle

This endpoint settles, or completes, a transaction.

A settlement transaction is the step in the payment process when an authorized transaction is finalized. The funds are transferred to the merchant's acquiring bank.

See Also:
To capture a transaction, see POST /pay-api/v1/transactions/capture.
To create a transaction, see POST /pay-api/v1/transactions/sale.
To list transactions, see GET /pay-api/v1/transactions.

Security
Bearer
Bodyapplication/json
paymentProcessorIdstring, (uuid)required

Specifies the payment processor identifier.

A list of available payment processers can be found with GET {{baseURL}}/pay-api/v1/configurations/payments. See response availablePaymentProcessors.id.

Example: 8f5a4c27-71c4-4b5d-944e-8bb457594d86

Example:"8f5a4c27-71c4-4b5d-944e-8bb457594d86"

Submits the open batch for a card processor.

All captured transactions in the batch are sent for settlement.

POST /pay-api/v1/transactions/settle HTTP/1.1
Host: sandbox.api.flute.com
Authorization: Bearer <YOUR_JWT_HERE>
Accept: application/json
Content-Type: application/json

{
  "paymentProcessorId": "64aa4643-2c62-45fa-9554-3a69833114e9"
}

Responses

OK

Bodyapplication/json
codeinteger, (int32)

A vendor independent response code.

Valid values are:

ValueNameDescription
0ApproveOperation fully or partially approved.
1DeclineOperation declined.
2ErrorSomething prevents to complete the operation. Request format is wrong, or system error, or any other reason that prevented normal processing.

Example: 0

Example:0
messagestring or null

Free-form result description.

processorResponseCodestring or null

Processor-specific response code that precisely describes the operation result.

Response

The processor accepts the batch.

code is 0 (Approve).

{ "code": 0, "message": "Batch submitted for settlement", "processorResponseCode": "00" }