Skip to main content

I am trying to creacte an api user in the sandbox environment, I can verify that I am doing everything correctly however I am getting “Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.” . I have tried using the primary and secondary keys, none are working for me. I have gone through most of the issues mentioned and the solution people justed nothing seems to be working for me. As a reference this is the request I am making,
curl --location 'https://sandbox.momodeveloper.mtn.com/v1_0/apiuser' \
--header 'Ocp-Apim-Subscription-Key: b93400415bde4c96b06c57e698789cda' \
--header 'X-Reference-Id: 8b1a5696-9c43-41c6-a884-d11e0f5bfe17' \
--header 'Content-Type: application/json' \
--data '{
    "providerCallbackHost": "https://webhook.site/b6b6cb4c-e9fa-42b8-96a8-b82e25859b85"
}'

 

Kindly ensure  you are not using the widget collection, 

Use the collection debit subscription primary key


@Ddamula oh ok, if the documentation could be updated that will be good.


Reply