Request Preapproval
POST {{base_url}}/collection/v2_0/preapproval
Create Preapproval
This endpoint allows you to create a preapproval for a collection.
Request Body
payer
(object, required): Information about the payer includingpartyIdType
andpartyId
.payerCurrency
(string, required): The currency of the payer.payerMessage
(string, required): A message from the payer.validityTime
(string, required): The validity time of the preapproval.
Response
- Status: 202
- Content-Type: text/xml
- The response body is not provided (null).
Request Body
{"payer"=>{"partyIdType"=>"MSISDN", "partyId"=>"{{MSISDN}}"}, "payerCurrency"=>"EUR", "payerMessage"=>"HI MoMo API", "validityTime"=>"300"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Callback-Url | string | ||
X-Reference-Id | string | ||
X-Target-Environment | string | ||
Content-Type | string | ||
Ocp-Apim-Subscription-Key | string |