For additional customization, we can also enable the Storefront API in order to provide unique experiences to your shoppers such as automatically applying discount codes upon text-to-buy!
Login to your Shopify admin
Select Apps in the search box.
Select App and Sales Channel Settings at the bottom of the list.
Select Develop Apps
Filter your list of apps for the existing custom API named one text
.
unauthenticated_write_checkouts
and unauthenticated_read_checkouts
are checked under the Checkout Storefront API access scopes and then click SaveOnce you’ve sent over your Storefront API access token, you’re all done! 🎉