Error Messages: /void
Every request to POST /v1/void that returns HTTP 400, with the error key and the message for each case.
This page lists the requests to POST /v1/void that return HTTP 400, with the error key and the message for each case. The endpoint is documented on /void. The conventions for these tables and the errors that several endpoints share are on Error Messages by Endpoint.
POST /v1/void names the order in the request body with orderId or orderExternalId. All 400 responses use Format A.
| Trigger | Error key | Message |
|---|---|---|
No idempotencyKey | IdempotencyKey | An idempotency key is required. |
Both orderId and orderExternalId sent, or neither | OrderId | Provide exactly one of orderId or orderExternalId. |
Order is not in capturerequired status | Void | Order is not in correct state to be voided |
| Order is already captured | Void | Order has been captured and cannot be voided |
| Order has no authorization to release | Void | No successful authorization to void |
amount exceeds the remaining authorized amount | Void | Invalid void amount. |
| Partial void sent, and partial voids are not enabled for the merchant | Void | Partial void is not enabled for this merchant |
- A void that the processor does not apply returns
500withstatus: "FAILED"and the reason in theerrorsarray, not200. See /void. - If no order matches
orderIdororderExternalId, the API returns404. - A
400from the last five rows, and a404, are stored against theidempotencyKey. Send a new key after you correct the request.
Updated about 17 hours ago
Did this page help you?

