This article demonstrates setting up a JavaScript API endpoint that authenticates ShipWorks HTTP requests.
The instructions below build on the steps to create a JavaScript API that runs an export in Set up JavaScript API to run an export . It also uses Postman to request the JavaScript API endpoint, similar to Test an export via JavaScript API HTTP request except with the ShipWorks advanced settings.
-
In integrator.io, return to
→ → . -
Open the custom endpoint Demo – ShipWorks auth.
-
Click Enable ShipWorks authentication and supply your ShipWorks username and password.
-
Copy the URL shown in the Advanced > Invoke field.
-
Save and close the JavaScript API.
With the ShipWorks option, you do not need to generate an API token and send it with the request.
-
In Postman, paste the Invoke URL into the GET request field.
-
In the Body tab, select the type x-www-form-urlencoded.
-
Continuing in the Body tab, enter key-value pairs for the username , password , and body, according to your credentials and expected content.
-
Click Send.
-
Verify the export (Shopify records shown).