We’ve started setting Payment Terms on orders (ie payment due later) - is there a way to expose this within a customer’s account? We’d ideally like to show the due date as we see it in admin.
There doesn’t seem to be a suitable Liquid variable for this, and I’m hoping to have to avoid fetching it via the admin/storefront API to show it.
No… I ended up writing / hosting a private API endpoint which takes the order ID and fetches this info from the Shopify API.
If I was doing this now, I’d probably use Shopify Flow. It’s easy to check on order create/edit if the order object has paymentTerms; then save this to a metafield which would be available to access.