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 including partyIdType and partyId.
  • 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

KeyDatatypeRequiredDescription
X-Callback-Urlstring
X-Reference-Idstring
X-Target-Environmentstring
Content-Typestring
Ocp-Apim-Subscription-Keystring