Invalid currency error while creating payment

I am trying to implement a create payment api and want to test it out but here I’m facing some issue while calling the create payment api.

URL : https://sandboxapi.rapyd.net/v1/payments
Headers & Payload : Paste ofCode

Response :

“status”: {
“error_code”: “INVALID_CURRENCY”,
“status”: “ERROR”,
“message”: “The request attempted an operation that requires a currency, but the value was missing or not recognized. The request was rejected. Corrective action: Use the correct 3-letter ISO 4217 code for the currency in uppercase letters.”,
“response_code”: “INVALID_CURRENCY”,
“operation_id”: “618ae138-3fd2-4e83-8d6b-c4242b4fae22”
}

Can anyone please let me know what is wrong with this?

Hi Dharmesh 0415,

One way to test whether you are using a supported currency for the payment method type you selected is to run the List Payment Method by Country API call. It is documented here: List Payment Methods by Country

The response will give you a list of payment methods for that country, and a list of supported currencies for each payment method. It is possible you were using an unsupported currency for the payment.