--- title: "cancel_or_refund_on_terminal_response" url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_response" source_url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_response.md" canonical: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_response" last_modified: "2026-05-23T12:56:20+02:00" language: "en" --- # cancel\_or\_refund\_on\_terminal\_response [View source](/point-of-sale/classic-library-deprecation/classic-library-integrations/c-library-integration/structs/cancel_or_refund_on_terminal_response.md) The `cancel_or_refund_on_terminal_response` contains a `receipts_strct`. The `parsed_result`, the result returned by the library (`lib_result`) or terminal (`ped_result`), is passed in the `response_header` of `receipts_strct`.  Check the `ped_result` and `lib_result` for the results of processing the request. As this request is not processed on the PSP, no results will be returned in `psp_result`.