I have started using your open api. When I tried using gettoken endpoint it shows response status code 415. Can you please resolve this?
Please make sure you are passing Content-Type header in the request
Content-Type: application/json
Please refer to the below cURL for using Generate Access Token API
curl --location --request POST 'https://developer.paytmmoney.com/accounts/v2/gettoken' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_key" : "{{apiKey}}",
"api_secret_key" : "{{apiSecret}}",
"request_token" : "{{requestToken}}"
}'
for more details please check the API Docs -
https://developer.paytmmoney.com/docs/api/generate-access-token/
2 Likes
404 Error, No records Found? Please help.
Hi @Hitesh1, please remove slash(‘/’) at the end of the url. Please find the valid curl command below -
curl --location --request POST 'https://developer.paytmmoney.com/accounts/v2/gettoken' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_key" : "{{apiKey}}",
"api_secret_key" : "{{apiSecret}}",
"request_token" : "{{requestToken}}"
}'
1 Like
Hi @himanshu
Please make sure you are passing Content-Type header in the request
Content-Type: application/json
Please refer to the below cURL for using Generate Access Token API
curl --location --request POST 'https://developer.paytmmoney.com/accounts/v2/gettoken' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_key" : "{{apiKey}}",
"api_secret_key" : "{{apiSecret}}",
"request_token" : "{{requestToken}}"
}'
for more details please check the API Docs -
https://developer.paytmmoney.com/docs/api/generate-access-token/
2 Likes
thanks
alot
ravi ji …
1 Like