POST /void

Void an order ---- [auth scope: api-user]

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orderReferencestringRequired

The unique order reference that was provided when creating the order. This is your merchant-specific identifier for the order. Use this reference to identify which order to perform operations on (e.g., capture, void, refund, get status).

Example: ORD-2024-001234
Body
voidReferencestringRequired

A unique reference identifier for this void request. This must be unique per merchant.

Example: 12345679281
descriptionstringOptional

An optional description or note for this void. This can be used to record the reason for voiding the order (e.g., "order cancelled", "customer requested cancellation"). This description is stored with the void record for reference.

Example: voided order due to cancellation by customer
amountnumberRequired

The amount to void from the authorized order. Must be a positive number with up to 2 decimal places. For full void, this should equal the remaining uncaptured authorized amount (order amount plus surcharge minus any previously captured amounts). For partial void (if the APM supports it), this can be any amount up to the remaining uncaptured authorized amount. The sum of all captures and voids cannot exceed the total order amount plus surcharge. If the APM does not support partial voids it must be equal to the full authorized amount.

Example: 2
Responses
200Success
application/json
post
/orders/{orderReference}/void

Sample Request/Response

{
    "voidReference": "LatEHAuPtpN2HSrTMK-1",
    "description": "Please void this order",
    "amount": 100
}

Last updated