Skip to content

Instantly share code, notes, and snippets.

@youmikoh
Created May 23, 2022 11:09
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youmikoh/362ee9e42ef136c855b4ab02f0cdb946 to your computer and use it in GitHub Desktop.
Save youmikoh/362ee9e42ef136c855b4ab02f0cdb946 to your computer and use it in GitHub Desktop.

A Practical Guide to Test Orders on Development Stores

If you are familiar with using REST APIs with tools like Postman or Insomnia, please follow the dev doc example here and skip this guide!


  1. Create a custom app from the Admin of your development store {your-dev-store-name}.myshopify.com and enable Admin API access scopes read_orders and write_orders.

img

  1. Install the your custom app to generate the Admin API access token. Keep this window open as we will need this page in step 4.

img

  1. Click the below button to fork the test order demo and create a Postman account if necessary.

Run in Postman

  1. Open the forked Your development store environment, and enter your dev store name. Reveal and copy the token from step 2, and enter it into Postman. Make sure to save!

img

  1. Navigate to Collections and set the environment to Your development store at the top right corner.

img

  1. Run the Generate a test order collection to create a test order.

img

  1. (Optional) Set the iterations to as many test orders as you need.

img

  1. (Optional) Adjust the orders attributes in the 1. Create an order request body. Please refer to The Order resource dev docs fore more details.

img

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment