Zamok Kiosk API
    Preparing search index...
    refund: PayloadAC<"REFUND", RefundParams> = ...

    Dispatch to submit a refund request.

    refundRequest requires uniqueRefundRequestId and refundReason. Optional lineItems contain lineItemId and optional refundAmountInCents; omit them to refund according to the API's full transaction behavior.

    {
    type: "REFUND",
    payload: {
    transactionId: "transaction-id",
    refundRequest: {
    uniqueRefundRequestId: "refund-request-id",
    lineItems: [{ lineItemId: "line-item-id", refundAmountInCents: 12550 }],
    refundReason: "REQUESTED_BY_CUSTOMER"
    }
    }
    }