Cancel Order
The Cancel Order API is used to cancel a previously generated transaction that has not yet been paid by the customer. The purpose of this API is to prevent payment from being made on transactions that are no longer valid or intended. This API is typically used in scenarios such as:
- The customer cancels the order before completing the payment.
- The customer wishes to change the selected payment method.
- The merchant decides not to proceed with the transaction for specific reasons.
Once the cancellation is successfully executed, the transaction status will be updated to cancelled and it can no longer be paid.
Environment | Method | URL |
---|---|---|
Development | GET | https://devo.finnet.co.id/pg/payment/card/cancel/{orderId} |
Production | GET | https://live.finnet.co.id/pg/payment/card/cancel/{orderId} |
Data Request
No | Name | Type | Mandatory | Min Length | Max Length | Description |
---|---|---|---|---|---|---|
1 | order | Object | M | 1 | 12 | Detail of Order |
Sample Request
{
"order": {
"id": "FK002502070000196",
"amount": "22000"
}
}
Data Response
Sample Response
{
"responseCode": "2000000",
"responseMessage": "Request has been processed successfully",
"processingTime": 0.24898290634155273,
"traceId": "93a76615-a2c2-44fd-9dd3-1c0a22a6fe23"
}