REFUNDED); the order status and fulfillment_status stay as they are, so no webhook is sent to the POS.
Only orders that are already fulfilled, and whose resolved_at is within the last 24 hours, can be refunded from Storefront. Calling it again answers 200 with the order.
Requires a Storefront API access token from Token
exchange.
@fire-spark/storefront, call order.refund(): it checks the order is delivered, voids the device charges and calls this endpoint with type: "REFUND". order.refundOrder() still calls it without a body.
Path parameters
Request body
Optional, same fields as Cancel order.type can only be REFUND. A reported REVERSED tender ends REFUNDED.
Request
Response
Returns200 with the order and its refunded tenders.