Shopify Admin whoami (signed-in account)
Report which Shopify account the Shopify admin is signed in as in this browser: the account email and name, and the store it opened. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Shopify admin scripts.
Input
None
Output
evidence requiredloggedIn requiredname optionalStore name.
email optionalStore contact email.
store optionalStore handle from admin.shopify.com/store/<handle>.
FAQ
Shopify: list invoices
List a Shopify store's billing invoices — number, date, type, status, amount and invoiceUrl — for the store the signed-in account lands on. Metadata only: feed a row's invoiceUrl to admin.shopify.com/download_invoice to fetch that invoice's PDF. A store that has never been invoiced returns an empty list. Deactivated stores still return their full invoice list, even when their PDFs are unavailable.
Shopify store admin login (Google SSO)
Log into a Shopify store admin via Google SSO — clicks 'Continue with Google' on accounts.shopify.com, picks the account, skips the passkey-enrollment prompt if shown, then opens admin.shopify.com/store/<store>. Pass the store handle.
Download a Shopify invoice PDF
Download one Shopify store invoice PDF, given the invoiceUrl (or number) that admin.shopify.com/list_invoices returns. Exports the invoice as PDF from its billing page and saves the file under Shopify's own filename, returning where the browser saved it (or a link to it on a managed browser). Fails with a clear message when the invoice has no export or Shopify issues no PDF for it.
