POST
/
gc
/
authorize
curl --request POST \
  --url https://sandbox.cashfree.com/gc/authorize \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-partner-api-key: <x-partner-api-key>' \
  --header 'x-partner-merchantid: <x-partner-merchantid>'
{
  "status": "SUCCESS",
  "subCode": "200",
  "message": "success_message",
  "data": {
    "token": "eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9...",
    "expiry": 1697611541
  }
}

Based on who you are, consider the below values in the API requests

Cashfree MerchantCashfree Partner
x-client-idx-partner-api-key
x-client-secretx-partner-merchantid

Headers

x-partner-api-key
string
required

Enter partner API keygit

x-partner-merchantid
string
required

Enter the merchant reference id used while creating merchant during onboarding

x-api-version
string
required

API version

Response

200
application/json
Successfully generated token
status
string
Example:

"SUCCESS"

subCode
string
Example:

"200"

message
string
Example:

"success_message"

data
object