requestToWithdrawDeliveryNotification

@POST(value = "/collection/{apiVersion}/requesttowithdraw/{referenceId}/deliverynotification")
abstract suspend fun requestToWithdrawDeliveryNotification(@Path(value = "apiVersion") apiVersion: String, @Path(value = "referenceId") referenceId: String, @Body momoNotification: MomoNotification, @Header(value = "notificationMessage") notificationMessage: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String, @Header(value = "X-Target-Environment") environment: String): Response<ERROR CLASS: Symbol not found for ResponseBody>

Sends a delivery notification for a request-to-withdraw transaction.

Return

A Response whose body contains the delivery result as a ResponseBody.

Parameters

referenceId

The UUID V4 reference ID used when calling requestToWithdraw.

apiVersion

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

momoNotification

The notification payload containing the message to deliver.

notificationMessage

The notification message text (also sent as a header per MTN API spec).

productSubscriptionKey

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

environment

The target environment (e.g., sandbox or production).