PUT
/
api
/
v2
/
subscriptions
/
charge
/
{paymentId}
/
simulate
curl --request PUT \
  --url https://sandbox.cashfree.com/api/v2/subscriptions/charge/{paymentId}/simulate \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Id: <x-client-id>' \
  --header 'X-Client-Secret: <x-client-secret>' \
  --data '{
  "status": "SUCCESS"
}'
{
"status": "OK",
"message": "Update Charge - Simulator",
"chargeResponse": {
"paymentId": 120322,
"status": "SUCCESS"
}
}

Headers

X-Client-Id
string
required

Client ID provided by Cashfree.

Example:

"asdf1234"

X-Client-Secret
string
required

Client Secret provided by Cashfree.

Example:

"qwer9876"

Path Parameters

paymentId
integer
required

The ID of the payment whose status is being updated.

Example:

120322

Body

application/json

Response

200
application/json

Successful update of the charge status.

The response is of type any.