Shopify Admin API integration in NodeJS app

Topic summary

Main topic: Setting up a Node.js integration with Shopify Admin API to fetch products and create individual discount codes.

  • Request: A newcomer seeks guidance on where to start, mentioning the need for an admin token and a “tunnel” to perform actions.
  • Guidance provided: A Node-focused tutorial (LogRocket) is recommended that covers app setup, authentication, and tunneling. For discount creation, the specific Admin REST API resource for discount codes is provided (2023-10 version).
  • Key concepts: Admin access tokens are required for authenticated Admin API calls. “Tunneling” means exposing a local development server to the internet so it can receive OAuth callbacks or webhook requests during development.
  • Outcomes/decisions: No implementation steps or code were shared; only learning resources and API references.
  • Status: Unresolved/ongoing; next step is for the requester to follow the tutorial and use the discount code API.
Summarized with AI on January 12. AI used: gpt-5.

I’m new to shopify, I want to create an API which will fetch product list and detail from shopify and create individual discount code. but to do that I need to create a tunnel using admin token which will allow me to perform this action, but I’m not sure how and where to begin with.

Any help will be great :slightly_smiling_face:

Hey @rockyScube

For Node specifically, there’s a pretty good tutorial here which runs through authentication, tunnelling, etc: https://blog.logrocket.com/build-shopify-app-with-node-js/

For the discounting piece, you’ll want to use this api.

Good luck!

1 Like