Re: How to implement integration between my ERP system and Shopify

How to implement integration between my ERP system and Shopify

mykolap
Shopify Partner
2 0 2

Hi, i am trying to create a shopify app to create integration between my ERP system backend and client shopify store. We want that client after installing our app could log in to ERP and either click button "Download catalog" or configured automatic download by schedule. This action must copy all product/collection and etc information to shopify store. I have found that shopify has REST and GraphQL API, but it requires API Token. How can i get permanent API token to use it in my backend?

Replies 2 (2)

BSSCommerce-B2B
Shopify Partner
1972 564 566

Hi @mykolap,

 

You can destructuring the access token from the session at afterAuth, and save it to the database to use to call Shopify API.

const { shop, accessToken } = session;

 

If using Remix template, you can add logic for saving token at afterAuth hook

BSSCommerceB2B_0-1718619764074.png

 

If using React Node Template, you can get session object from express res object like this

BSSCommerceB2B_1-1718619861875.png

 

 

Please give us a like and mark the solution if my answer is helpful.

Have a nice day sir! 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

jorhan
Shopify Partner
32 0 19

Hi Mykolap,

 

We already have a few customers integrated their ERP to Shopify via an app syncX: Stock Sync. You can check it out. 

 

 

Thanks,

Jor