Create Payment Api failure { code: 57, message: 'You are not authorized to perform this operation' }
const token = '1000.0ecc513369f1788b6ecef06668f7835f.6b59d46c9d35621b0a33fd489f4ce320'
const reqdata = await request.json()
const repsonse = await fetch(url, {
method: 'POST',
headers: {
'Authorization': `Zoho-oauthtoken ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"customer_id": "209839000000035002",
"payment_mode": "cash",
"amount": reqdata.payload.payment.entity.amount / 100,
"date": "2024-11-12",
"payment_form": "cash",
})
});
{
code: 57,
message: 'You are not authorized to perform this operation'
}