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
Endpoint
To view all available base URLs and environments, refer to:
➡️ API ResourcesAuthentication 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:
PAIDFAILEDEXPIREDCANCELLED
Recommended Use Cases
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_idmust 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
Recommended Workflow
- Create Order
- Redirect customer to payment page
- Customer abandons payment or session expires
- Call Order Cancel API
- 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
