deposit

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

Initiates a deposit 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 containing amount, currency, and payee details.

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.