--- title: "cancel_or_refund_on_terminal_request" url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_request" source_url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_request.md" canonical: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_request" last_modified: "2026-05-23T12:56:20+02:00" language: "en" --- # cancel\_or\_refund\_on\_terminal\_request [View source](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_request.md) The `cancel_or_refund_on_terminal_request` contains the following data elements: | Field | Type | Required | Description | | --------------------- | ------------------------ | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ped` | void | ![-x-](/user/data/smileys/emoji/x.png "-x-") | if not specified the PED object will be automatically populated. | | `merchant_account` | char | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The merchant account processing this transaction. Transactions can be performed with any of the merchant accounts that were returned when registering the POS. | | `tender_reference` | char | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | A reference to the tender provided by the PED. | | `terminal_id` | char | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | The `terminal_id` of the PED. | | `handle_receipt` | boolean | ![-x-](/user/data/smileys/emoji/x.png "-x-") | Specifies that the POS handles and prints receipts. If omitted, it is required that the PED prints the receipt. If there is no printer unit, the transaction will fail. | | `additional_data_obj` | additional\_data\_struct | ![-x-](/user/data/smileys/emoji/x.png "-x-") | Contains key/value pairs that can be used by the merchant to return specific additional data, in particular in the final transaction result. |