Refunds
Initiate a Refund
Submit a full or partial refund against a completed payin transaction. Provide the original ref ID, order ID, amount, and refund type to start processing.
Initiate a Refund
Use this endpoint to initiate a refund against a previously completed payin (collection) transaction. You can issue a full refund or a partial refund by specifying the appropriate
refund_type and amount. Once submitted, bluSwap queues the refund for processing and returns a refund reference ID you can use to track its progress.
Headers
string
required
Your secret API key used to authenticate all requests.
string
required
Must be
application/json.Request Parameters
string
required
Reference ID of the original payin transaction you want to refund.
string
required
Unique order ID for this refund request.
number
required
Amount to be refunded. For a full refund this must match the original transaction amount.
string
required
Reason for initiating the refund. This is recorded against the refund record.
string
Additional description or notes for the refund. This field is optional.
string
required
Type of refund to perform. Pass
FULL_REFUND to refund the entire original transaction amount.Response
A successful request returns a200 OK with a JSON body containing the refund reference ID. Save the ref_id value — you need it to track refund progress using the Check Refund Status endpoint.
string
Unique reference ID assigned to this refund. Use it to poll refund status.
string
Initial status of the refund (e.g.
PENDING).Save the
ref_id returned in the response. You need it to track refund progress using the Check Refund Status endpoint.