Skip to main content

Cancel Order

Use the Order Cancel API to cancel an unpaid or pending payment order created using the Elite Neo Bank Payment Gateway. This API allows merchants to:
  • Cancel abandoned payment sessions
  • Expire unpaid payment links
  • Prevent duplicate payment attempts
  • Manage order lifecycle securely
Only eligible orders can be cancelled successfully.

Endpoint

To view all available base URLs and environments, refer to:

➡️ API Resources

Authentication required.

Refer to:
➡️ Headers
➡️ Signature Generation
➡️ Timestamp Validation

Request Parameters


Example Request Body


Example cURL Request


Example Success Response


Response Parameters


Cancel Eligible Statuses

Orders can typically be cancelled when they are in: Orders that are already:
  • PAID
  • FAILED
  • EXPIRED
  • CANCELLED
may not be cancellable.
Use Order Cancel API when:
  • Customer abandons checkout
  • Payment session expires
  • Merchant wants to stop pending payment attempts
  • Duplicate orders need cancellation

Important Notes

  • order_id must belong to your merchant account
  • Cancellation may fail for completed payments
  • Always verify final order status using Order Status API
  • Cancelled payment links should not be reused

  1. Create Order
  2. Redirect customer to payment page
  3. Customer abandons payment or session expires
  4. Call Order Cancel API
  5. Verify updated order status

Common Errors

400 Bad Request

Possible reasons:
  • Missing order_id
  • Invalid request payload
  • Incorrect request structure

401 Unauthorized

Possible reasons:
  • Invalid API key
  • Incorrect signature
  • Expired timestamp

Order Cannot Be Cancelled

Possible reasons:
  • Payment already completed
  • Order already cancelled
  • Invalid order state

Security Recommendations

  • Generate signatures server-side only
  • Use HTTPS for all API requests
  • Never expose secret keys publicly
  • Verify order ownership before cancellation
  • Validate timestamps for every request

Best Practices

  • Cancel abandoned payment sessions regularly
  • Verify order status before cancellation attempts
  • Avoid duplicate payment links
  • Store cancellation logs for reconciliation