400 Bad request

Hello, am trying out the sandbox but keep getting 400 bad request. Below is the structure of my request object { "amount": "5000", "currency": "EUR", "externalId": "1234567", "payer": { "partyIdType": "MSISDN", "partyId": "0780717630" }, "payerMessage": "Hey", "payeeNote": "Hello world" }


    Hello! The problem might be in your header. Before submitting a /requesttopay - POST, you need to generate a Bearer token to use in /requesttopay - POST header as Authorisation value. Bearer token is generated after successfully submitting a /token - POST, here: https://momodeveloper.mtn.com/docs/services/collection/operations/token-POST? Click 'Try it' to test. The Authorisation value in /token - POST is a Basic authentication value with following format: AppUser+':'+APIKey encoded in Base64 string.
    Posted by Hidden Wed, 13 Nov 2019 10:56:33 GMT
    Okay thanks let me try
    Posted by Hidden Wed, 27 Nov 2019 06:55:48 GMT
    is that the format Authorisation: Basic AppUser:APIkey ?
    Posted by Hidden Sat, 14 Dec 2019 08:11:13 GMT

You're not signed in. Please sign-in to report an issue or post a comment.