Developer Discussions
Miniapp
Hello,
I have a question about your sandbox API at https://op-sandbox.paymaya.com/merchant/payments. I'm encountering an issue when attempting to post a request as I'm receiving the error message "{
"code": "1200",
"message": "Invalid credentials"
}" in the response. Could you please advise me on how to resolve this issue?
Thank you.
Below is the sample CURL.
curl --location 'https://op-sandbox.paymaya.com/merchant/payments'
--header 'Authorization: eyJraWQiOiJyc2ExIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJwaGlsc3RvY2tzIiwiYXpwIjoicGhpbHN0b2NrcyIsInNjb3BlIjoiYWRkX21vbmV5IGFkZHJlc3MgYmFsYW5jZSBwaG9uZSBvcGVuaWQgcHJvZmlsZSBwdXJjaGFzZSBlbWFpbCIsImlzcyI6Imh0dHBzOlwvXC9jb25uZWN0LXNiLWlzc3VpbmcucGF5bWF5YS5jb20iLCJleHAiOjE2ODMxODI0MDYsImlhdCI6MTY4MzE3ODgwNiwianRpIjoiZDNhZjc0YmEtYTg1Zi00MTZmLWIyMjQtMDJkMTY2YzAyMGQ1In0.A8165xVwGgGJ9cPCcQXZXQxd0rcHZxV3gL_Y8u30jTaSGnl0QHQxQ8SQgDIsLJgU4K0_zE1yJnGIxe00qySvqwHCH60aCAZOFRL_yW6tOxUzpyQfXnUJf2ihAHWhi2ARlMzWnkFrsqcd0Y9QIxSfR06wfiwg2ZrmWb6cKiNYMvKNiJdCznq2i6PbnQBjzZPosMaXfN5QOT9L_XMDayj8-KGiU6DxmuDeIP5Pl0UyZTtR2XpJQmzvjDaTQOjWhwU2PoXE-bijAV-bAgYFR0w_17-DtvpOW5Pg_QsgWOxyLevABPBXd7zwxWgFgvQN_6fk7UPP0hAvWL8lPh3gtK-jrQ'
--header 'X-Authorization: eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ.PbyAibo0Ewgv3U5KU8FG7Ah4zwTXfiecXCkJ7LmKAvN_Hg3HBVwhy1HFun2Qma3HHbmUg6DgJbqbD87uGYdNG33ilFsjOObcE3WFiua4YZQyrlz0SaXBVBjFYTmkYQs3AQYVRmQsO3bAxcgRSwHio2g73oaDx2vYCYxnIJh4VmJhZJCe63Eq2QEODDs3oOcoqmuALclgIZ3SRfF-7pDEeQoC1brnDqdogqOy4u4FCr3CRiGTR20Tes4u-fB6Ki3oMKGDiFohBV0JwiXHhIgT56XznndclNDMnSab11RKfUbrJd_PONQDe8SWu2FGx3GVI7KKllJ3RXzOyCE7W7km4g.MYKVHyn3u-DuEVuG.MdAqkxrq6EFWu27d_UrX4NpRW8dv8W9bLJFmapHxXqp4GqfKcfxcXscdJ68s2nEa2tm0v2TTaIwb3qOOPHV7OL45XYEMN2CTpzirEe9PNQJlG3YEcyjyKt7pnkiEoW9ndXx6FwmH6XB-k6afPpg8hQTB3Eu4CFjIFR-0YrnmZdngFKjx8QMhBw5ykX5ctHyy1bNxQS-g36_P-xvMIDNsaf8BkEO-pPsmhEWiBBm9tSBJ.F7i56ipZSFTiimJB26_Uww'
--header 'Request-Reference-No: 6320a65f-243d-4876-95fa-a8184c72f161'
--header 'Content-Type: application/json'
--data '{
"p2mId": "sk-MotBvmGNhGwe8NE6R1K24TYHp9xYsR2Jk6IfvQS4B5u",
"amount": {
"currency": "PHP",
"value": 5
}
}'