Juspay Developer Guide

Welcome to the Juspay Developer Guide. You'll find comprehensive guides and documentation to help you start working with Juspay Docs as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Void API

This will be used to void an authorized transaction.


NOTE: Please note the transaction status in response to Void API, when the underlying Payment gateways send:

  • Pending => VOID_INITIATED
  • Success => VOIDED
  • Failure => VOID_FAILED
  • Timeout/no response from PG => AUTHORIZED

The orders should be voided within 7 days of transaction initiation.


EMBEDDEDtxn_uuidstringtxn_uuid available in Order Status API response


curl -X POST https://api.juspay.in/v2/txns/euhlsjbd8yhjdm/void 
-u your_api_key:


Response ParamsValuesDescription
order_idstringOrderID for which the payment is being started.
txn_idstringTransaction ID for the payment attempt.
statusstringStatus of the transaction. PENDING_VBV indicates that the transaction requires authentication to complete. Please do not validate this at your end.
paymentstringContains the payment authentication details.
authenticationstringContains the authentication details.
methodstringHTTP Method for authentication. Can be one of GET or POST
urlstringURL to which the user has to be taken to for completing the authentication
paramsobjectPresent only when method is POST. Parameter map that has to be sent along with the URL for authentication.

Updated 10 months ago

Void API

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.