refund

@POST(value = "/disbursement/{apiVersion}/refund")
abstract suspend fun refund(@Body refund: Refund, @Path(value = "apiVersion") apiVersion: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String, @Header(value = "X-Reference-Id") uuid: String): Response<Unit>

Initiates a refund for a previously completed transaction.

Return

A Response with an empty body; HTTP 202 indicates the request was accepted.

Parameters

refund

The refund payload; set Refund.referenceIdToRefund to the original transaction ID.

apiVersion

The API version to target (e.g., v1_0 or v2_0).

productSubscriptionKey

The Ocp-Apim-Subscription-Key for the Disbursements product.

uuid

A UUID V4 used as the X-Reference-Id to uniquely identify this request.