[TypeScript] Data type definitions for Shopify Orders, Customer objects etc

Highlighted
Shopify Partner
13 0 0

Hi Folks, I was wondering if shopify has a package with type definitions for shopify order and others data types which we receive from the the admin apis. This could be very helpful in frontend development for us.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
644 78 141

Hey @dsingh,

If you're using GraphQL, our docs show the type for each field returned through the API. Here's an example for orders: link.

For REST our docs show an example response for each field, so you can use that to determine the type. Here's a link.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes