Skip to main content
This example is for a Node.js environment. If you’d like to see examples in your programming language, you can visit the page for the endpoint you wish to call.

Prerequisites

Ensure you have Axios or a similar library installed in your Node.js 18+ project.

Sample Code

The code below creates a location and then retrieves a list of locations where warehouse_id = ‘1234’.

Notes

  • Replace your_access_token_here with your actual access token for authentication.
  • This script handles both successful and error responses from the API.
You did it! Now that you’ve succesfully connected to our API, feel free to explore all of our endpoints.