validateAccountHolderStatus

@GET(value = "/{productType}/{apiVersion}/accountholder/{accountHolderIdType}/{accountHolderId}/active")
abstract suspend fun validateAccountHolderStatus(@Path(value = "productType") productType: String, @Path(value = "apiVersion") apiVersion: String, @Path(value = "accountHolderId") accountHolderId: String, @Path(value = "accountHolderIdType") accountHolderType: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String, @Header(value = "X-Target-Environment") environment: String): Response<ResponseBody>

Makes a request to check the account holder status.

Return

A ResponseBody indicating the result of the account holder status check.

Parameters

productType

The API Products (MomoConstants.ProductTypes).

apiVersion

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

accountHolderId

The account holder unique ID (e.g., phone number).

accountHolderType

The account holder type (e.g., MSISDN).

productSubscriptionKey

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

environment

The API environment (X-Target-Environment).