Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.
Receive a Cashfree wallet top-up webhook
POST
/api/v1/cashfree/wallet-webhook
const url = 'https://api.pitch2sale.com/api/v1/cashfree/wallet-webhook';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pitch2sale.com/api/v1/cashfree/wallet-webhookUnauthenticated; called by Cashfree only. The raw body is verified with HMAC-SHA256 (x-webhook-signature, x-webhook-timestamp) before it is parsed; invalid or stale signatures get 401. A payment credits the wallet only when its order id, amount and currency match the order; replays never credit twice.
Responses
Section titled “Responses”OK
Rate limit exceeded
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}