After the sale
Void
Cancel a same-day sale before settlement by its storeyTransactionId.
Endpoint
POST /api/public/valet/sale/{storeyTransactionId}/voidNo body. A void cancels the sale the same day, before settlement; after that the money has moved and a refund is the only route — the response says so if you try. A sale that has already been partially refunded can only be refunded, never voided.
Request — cURL
curl -X POST https://storeypos.com/api/public/valet/sale/9f2c8e1a-4b3d-4000-8000-000000000001/void \
-H "X-Valet-Key: vk_live_XXXXXXXXXXXXXXXXXXXXXXXX" \
-H "X-Valet-Tag: vt_XXXXXXXXXXXXXXXXXXXX"Response
{
"storeyTransactionId": "9f2c8e1a-4b3d-4000-8000-000000000001",
"referenceId": "order-10482",
"reversalId": "rvs_8c20e5f71a93",
"kind": "void",
"amount": 42.5,
"status": "approved",
"authCode": null,
"rrn": "042619005831",
"error": null,
"declineCategory": null,
"channel": "terminal",
"refundedTotal": 0,
"remaining": 42.5,
"createdAt": "2026-09-16T18:26:12Z",
"cardFeeReturned": null,
"receiptData": {
"valetReference": "order-10482",
"storeyTransactionId": "9f2c8e1a-4b3d-4000-8000-000000000001",
"reversalId": "rvs_8c20e5f71a93",
"valorRefundTransactionId": "00000000000011463077",
"originalValorTransactionId": "00000000000011463060",
"approvalCode": null,
"rrn": "042619005831",
"dateTime": "2026-09-16T18:26:12Z",
"cardBrand": "visa",
"last4": "4242",
"amount": 42.5,
"entryMode": "contactless",
"kind": "void",
"valorTransactionId": "00000000000011463077",
"taxAmount": 2.5,
"feeAmount": null,
"batchNumber": "12",
"tranNumber": "VC08",
"originalAmounts": {
"subtotal": 40,
"taxAmount": 2.5,
"tipAmount": 0,
"shippingAmount": 0,
"feeAmount": null,
"total": 42.5
},
"refundedSoFar": 42.5,
"remaining": 0,
"paymentType": "card",
"giftCardLast4": null,
"balanceAfter": null,
"cardDifferenceFee": null,
"amountRequested": 42.5,
"amountCharged": 42.5,
"cardFeePercent": null,
"cardFeeReturned": null
}
}Void of the $100.00 sale
Request — cURL (same on both accounts)
curl -X POST https://storeypos.com/api/public/valet/sale/9f2c8e1a-4b3d-4000-8000-000000000001/void \
-H "X-Valet-Key: $VALET_KEY" \
-H "X-Valet-Tag: $VALET_TAG"Answer — $100.00 reversed
{
"storeyTransactionId": "9f2c8e1a-4b3d-4000-8000-000000000001",
"referenceId": "order-10490",
"reversalId": "rvs_8c20e5f71a93",
"kind": "void",
"amount": 100,
"status": "approved",
"authCode": null,
"rrn": "042619005831",
"error": null,
"declineCategory": null,
"channel": "terminal",
"refundedTotal": 0,
"remaining": 100,
"createdAt": "2026-09-16T18:26:12Z",
"cardFeeReturned": null,
"receiptData": {
"valetReference": "order-10490",
"storeyTransactionId": "9f2c8e1a-4b3d-4000-8000-000000000001",
"reversalId": "rvs_8c20e5f71a93",
"valorRefundTransactionId": "00000000000011463077",
"originalValorTransactionId": "00000000000011463060",
"approvalCode": null,
"rrn": "042619005831",
"dateTime": "2026-09-16T18:26:12Z",
"cardBrand": "visa",
"last4": "4242",
"amount": 100,
"entryMode": "contactless",
"kind": "void",
"valorTransactionId": "00000000000011463077",
"taxAmount": 0,
"feeAmount": null,
"batchNumber": "12",
"tranNumber": "VC08",
"originalAmounts": {
"subtotal": 100,
"taxAmount": 0,
"tipAmount": 0,
"shippingAmount": 0,
"feeAmount": null,
"total": 100
},
"refundedSoFar": 100,
"remaining": 0,
"paymentType": "card",
"giftCardLast4": null,
"balanceAfter": null,
"cardDifferenceFee": null,
"amountRequested": 100,
"amountCharged": 100,
"cardFeePercent": null,
"cardFeeReturned": null
}
}Answer — the whole $103.50 reversed
{
"storeyTransactionId": "9f2c8e1a-4b3d-4000-8000-000000000001",
"referenceId": "order-10490",
"reversalId": "rvs_8c20e5f71a93",
"kind": "void",
"amount": 103.5,
"status": "approved",
"authCode": null,
"rrn": "042619005831",
"error": null,
"declineCategory": null,
"channel": "terminal",
"refundedTotal": 0,
"remaining": 100,
"createdAt": "2026-09-16T18:26:12Z",
"cardFeeReturned": null,
"receiptData": {
"valetReference": "order-10490",
"storeyTransactionId": "9f2c8e1a-4b3d-4000-8000-000000000001",
"reversalId": "rvs_8c20e5f71a93",
"valorRefundTransactionId": "00000000000011463077",
"originalValorTransactionId": "00000000000011463060",
"approvalCode": null,
"rrn": "042619005831",
"dateTime": "2026-09-16T18:26:12Z",
"cardBrand": "visa",
"last4": "4242",
"amount": 100,
"entryMode": "contactless",
"kind": "void",
"valorTransactionId": "00000000000011463077",
"taxAmount": 0,
"feeAmount": 3.5,
"batchNumber": "12",
"tranNumber": "VC08",
"originalAmounts": {
"subtotal": 100,
"taxAmount": 0,
"tipAmount": 0,
"shippingAmount": 0,
"feeAmount": 3.5,
"total": 100
},
"refundedSoFar": 100,
"remaining": 0,
"paymentType": "card",
"giftCardLast4": null,
"balanceAfter": null,
"cardDifferenceFee": 3.5,
"amountRequested": 100,
"amountCharged": 103.5,
"cardFeePercent": 3.5,
"cardFeeReturned": null
}
}A void reverses the whole charged amount, fee included. You never send the percent: Valet uses the percent set on the location's account, and a cashDiscountPercent in the request is accepted and ignored. Gift cards and store credit never carry the fee. On the hosted payment window the customer sees the card price before paying. The rule in full: Card difference fee.
