Calculate a refund
Calculate a surcharge refund amount.
To be compliant, refunds must proportionally include any surcharge that was included in the original payment.
This endpoint can assist with calculating the amount of the surcharge that should be refunded before processing a refund.
NOTE: This endpoint will fail if the Record payment capture endpoint was not previously called.
Calculate a surcharge refund amount.
To be compliant, refunds must proportionally include any surcharge that was included in the original payment.
This endpoint can assist with calculating the amount of the surcharge that should be refunded before processing a refund.
NOTE: This endpoint will fail if the Record payment capture endpoint was not previously called.
Path Parameters
The transaction ID returned from the initial surcharge calculation (txn_***)
Either the account.id or external identifier for a merchant account.
This can be used by a platform account to perform actions on behalf of a merchant account.
NOTE: This will be ignored if the request is not made by a registered platform account.
Request Body
The amount to be refunded to the customer.
CAUTION: The amountToBeRefunded should NOT be inclusive of the surcharge.
For example, if a 50% refund is intended, and the surcharge is $3.00, and the total amount charged to the customer is $103.00, then amountToBeRefunded should be $50.00 (5000).
HINT: Leave this blank to calculate as a 100% refund.
Represented in the lowest currency denomination (e.g. if currency is usd, then amountToBeRefunded is in cents).
The amount of the surcharge that has already been refunded to the customer for this transaction.
This will most likely be the summary amount that was returned from previous refund calculation requests.
Providing this will ensure that the calculation does not exceed the original surcharge amount, which can happen due to potential rounding discrepancies that may occur over the course of multiple refunds on the same transaction.
Represented in the lowest currency denomination (e.g. if currency is usd, then refundedSurchargeAmount is in cents).
The total amount of funds from this transaction that have been previously refunded to the customer.
Represented in the lowest currency denomination (e.g. if currency is usd, then totalAmountRefunded is in cents).
The surcharge amount that was charged to the customer on this transaction.
This should be provided if it is different from the surcharge that was calculated for the transaction, or different
from the capturedSurchargeAmount that was provided in the Record payment capture request.
If not provided, then the capturedSurchargeAmount provided in the Record payment capture request will be used if available,
and if not, then the surcharge that was calculated for the transaction will be used.
Represented in the lowest currency denomination (e.g. if currency is usd, then capturedSurchargeAmount is in cents).