refund

suspend fun refund(accessToken: String, momoTransaction: MomoTransaction, apiVersion: String, productSubscriptionKey: String, uuid: String): Response<Unit>

Initiates a refund directly via the Disbursements service.

Return

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

Parameters

accessToken

The bearer access token used to authenticate the request.

momoTransaction

The transaction payload; set MomoTransaction.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.