Developer Discussions
error code: K007
over 1 year ago by zhou qiao
hello ,when I use public_key to test create checkout:
curl --request POST
--url https://pg.maya.ph/checkout/v1/checkouts
--header 'accept: application/json'
--header 'authorization: Basic cGstRlpYSnFnYVpmNFBRZjJ2OWlJMDRkUk9sM2xPMmlVQ1hUeGlpS2M3aVFNRzo='
--header 'content-type: application/json'
--data '
{
"totalAmount": {
"value": 1000,
"currency": "PHP"
},
"requestReferenceNumber": "5fc10b93-bdbd-4f31-b31d-4575a3785009"
}
'
response:
{"error":"Invalid key scope. Please check the provided key's scopes.","code":"K007","reference":"01d76364-d04d-48ad-9106-1b8cb6020350"}