Add an invoice block on the Thank you page

Only Shopify Plus plans are allowed to access Checkout Branding API. You can get more information about the checkout limitations by clicking here.