Cancel Order API

This document provides technical guidance for merchants to cancel an active payment link via the API.

Note
  • A cancelled order cannot be reactivated. A new payment link must be generated if needed.

  • Ensure the order being cancelled is in ACTIVE state; otherwise, cancellation may fail or have no effect.

API Endpoints
Sandbox Link
POST
https://sandbox.juspay.in/merchants/{merchant_id}/order/{order_id}/cancel
Production Link
POST
https://api.juspay.in/merchants/{merchant_id}/order/{order_id}/cancel
Authorization Header
Headers
Path Params
Body
200 : Success