--- title: pos.return.post.block.render description: >- Renders a custom information section within the post-return screen. Use this target for displaying supplementary return data like completion status, refund confirmations, or follow-up workflows alongside standard return details. Extensions at this target appear as persistent blocks within the post-return interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex post-return operations. api_version: 2025-07 api_name: pos-ui-extensions source_url: html: >- https://shopify.dev/docs/api/pos-ui-extensions/2025-07/targets/post-return/pos-return-post-block-render md: >- https://shopify.dev/docs/api/pos-ui-extensions/2025-07/targets/post-return/pos-return-post-block-render.md --- # pos.​return.​post.​block.​render Renders a custom information section within the post-return screen. Use this target for displaying supplementary return data like completion status, refund confirmations, or follow-up workflows alongside standard return details. Extensions at this target appear as persistent blocks within the post-return interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex post-return operations. ### Examples * #### Add a post-return block ##### Description Display custom information within the post-return screen as a persistent block. This example shows how to create blocks that show supplementary return data like completion status, refund confirmations, or follow-up workflows with interactive elements. ##### React ```tsx import React from 'react'; import { POSBlock, POSBlockRow, Text, reactExtension, useApi, } from '@shopify/ui-extensions-react/point-of-sale'; const ReturnBlock = () => { const api = useApi<'pos.return.post.block.render'>(); return ( {'Return block extension'} {`Order ID: ${api.order.id}`} ); }; export default reactExtension('pos.return.post.block.render', () => ( )); ``` ##### TS ```ts import { POSBlock, POSBlockRow, Text, extension, } from '@shopify/ui-extensions/point-of-sale'; export default extension('pos.return.post.block.render', (root, api) => { const block = root.createComponent(POSBlock, { action: {title: 'View return details', onPress: api.action.presentModal}, }); const mainText = root.createComponent(Text); mainText.append('Return block extension'); const subtitleText = root.createComponent(Text); subtitleText.append(`Order ID: ${api.order.id}`); const blockMainRow = root.createComponent(POSBlockRow); blockMainRow.append(mainText); const blockSubtitleRow = root.createComponent(POSBlockRow); blockSubtitleRow.append(subtitleText); block.append(blockMainRow); block.append(blockSubtitleRow); root.append(block); }); ```