Request To Pay
POST {{base_url}}/collection/v1_0/requesttopay
Create Request To Pay
This endpoint allows the client to initiate a request to pay.
Request Body
amount
(string): The amount to be requested.currency
(string): The currency in which the amount is requested.externalId
(string): The unique identifier for the request.payer
(object):partyIdType
(string): The type of party ID for the payer.(MSISDN/ALIAS/EMAIL)partyId
(string): The ID of the payer.
payerMessage
(string): Message from the payer.payeeNote
(string): Note for the payee.
Response (JSON Schema)
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"requestId": {
"type": "string"
}
}
}
Request Body Example
{
"amount": "",
"currency": "",
"externalId": "",
"payer": {
"partyIdType": "",
"partyId": ""
},
"payerMessage": "",
"payeeNote": ""
}
Request Body
{"amount"=>"600", "currency"=>"EUR", "externalId"=>"00004335", "payer"=>{"partyIdType"=>"MSISDN", "partyId"=>"{{MSISDN}}"}, "payerMessage"=>"MoMo Market Payment", "payeeNote"=>"MoMo Market Payment"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Reference-Id | string | UUID V4 string to identify the request (Unique for each request) | |
X-Target-Environment | string | Environment (sandbox or production syntax == mtn+country) | |
Content-Type | string | Specify the nature of the data in the body of a request | |
Ocp-Apim-Subscription-Key | string | Product primary subscription key, from momodeveloper.mtn.com | |
X-Callback-Url | string | endpoint url to receive transaction status for (Failed or Successful) POST and PUT |