Skip to content

Get a batch's fee quote​

GET
/v2/payments/bulk-withdrawals/batches/{id}/fee-quote

Requires DISBURSEMENTS_READ, granted by PAYMENTS_READ or DISBURSEMENTS_WRITE (bundles)

Returns the fee for the batch's withdrawals that are still pending or, once none are pending, the fee that was charged. Unlike GET /v2/payments/bulk-withdrawals/batches/{id}, this returns an error rather than null when the fee can't be quoted.

Parameters​

Path Parameters

id*

Batch ID.

Type
string
Required
Example"5b9a3c1e-2f4d-4a7b-9c8e-1d2f3a4b5c6d"
Format
"uuid"

Responses​

OK

application/json
JSON
{
"fee": "25.00",
"currency": "ZAR",
"withdrawalCount": 2,
"grossTotal": "20501.00",
"requiredTotal": "20526.00",
"feeGroups": null
}

Samples​

Errors

HTTPErrorWhen
400BAD_REQUESTA query parameter or field is invalid.
400-11INVALID_REQUESTThe batch ID isn't a valid UUID.
403-16098PAYMENTS_USER_ACCESS_NOT_CONFIGUREDPayments haven't been set up for your business yet.
404NOT_FOUNDNo batch with this ID exists on your account.
500INTERNAL_ERRORUnexpected error in the payments service.
502-16097EXCHANGE_API_ERRORThe payments service failed to process the request.
502EXCHANGE_API_ERRORThe payments service couldn't complete the request. Try again later.
503-16099PAYMENTS_BACKEND_PROXY_DISABLEDPayments endpoints are temporarily unavailable.

Plus the errors common to all signed endpoints.