Requesttopay - POST

This operation is used to request from a consumer either Airtel or MTN (Payer). The payer will be asked to authorize the payment. The transaction will be executed once the payer has authorized the payment. The requesttopay will be in status PENDING until the transaction is authorized or declined by the payer or it is timed out by the system.

Request
Request URL https://payments.mobipayagrosys.com/api/all/collection/requesttopay/

Request Headers
Authorization Authorization header used for Basic authentication and oauth. Format of the header parameter follows the standard for Basic. Oauth uses Basic authentication type where the credential is the received access token.(Api-Username & Api-Key)
Api-Username Api Username which provides access to this API. Shared by MobiPay
Api-Key Api key which provides access to this API. Shared by MobiPay.

Request body

"body": {
	"mode": "formdata",
	"formdata": [
		{
			"key": "payer",
			"value": "256752894074",
			"type": "text"
		},
		{
			"key": "amount",
			"value": "15000",
			"type": "text"
		},
		{
			"key": "currency",
			"value": "UGX",
			"type": "text"
		},
		{
			"key": "externalId",
			"value": "1666666666",
			"type": "text"
		}
	]
}

Try