Skip to content
NEWCollect for MSMEs: UPI Autopay, eNACH & remindersExplore app ↗

Cancel Payment Link

Cancel a payment link when the payer should no longer be able to complete payment using the hosted URL.

DELETE /api/v1/integrations/pay/payment_links/:order_id
Terminal window
curl -X DELETE 'https://[base_url]/api/v1/integrations/pay/payment_links/:order_id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic <token>'
ParameterTypeRequiredDescription
order_idstringYesPayment link order ID returned by Create Payment Link.
{
"status": "success",
"message": "Payment link cancelled successfully!"
}
CodeHTTP CodeDescription
HUE00000400Bad request error.
HUE00001404Resource not found.
  • Cancel only links that should no longer accept payments.
  • Use Get Payment Link to verify the final status if your workflow needs confirmation.