transfer

@POST(value = "/{productType}/{apiVersion}/transfer")
abstract suspend fun transfer(@Path(value = "productType") productType: String, @Path(value = "apiVersion") apiVersion: String, @Body momoTransaction: MomoTransaction, @Header(value = "X-Reference-Id") uuid: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String, @Header(value = "X-Target-Environment") environment: String): Response<Unit>

Makes a request to transfer funds.

Return

A Response indicating the result of the transfer.

Parameters

productType

The API Products (MomoConstants.ProductTypes).

apiVersion

The app Version (e.g., v1_0 or v2_0).

momoTransaction

The transfer payload MomoTransaction.

uuid

The unique reference ID for the transfer.

productSubscriptionKey

The Product subscription Key (Ocp-Apim-Subscription-Key).

environment

The API environment (X-Target-Environment).