Articles in this section

Test an export via JavaScript API HTTP request

For testing purposes, you can use an API tool to invoke a JavaScript API, simulating the request that an app will make in a production environment. This example uses Postman to make a request to the JavaScript API that we built in Example 1a: Set up JavaScript API to run an export.

A. Provide the URL to the JavaScript API endpoint

  1. In integrator.io, return to ResourcesAPIJavaScript.

  2. Open the custom endpoint (ex. Demo – export).

  3. Copy the URL shown in the Invoke field.

  4. Close the JavaScript API without saving any changes.

  5. In your Postman request, select POST for the type and paste the URL into the Request URL field.

B. Retrieve the API token

  1. In integrator.io, navigate to ResourcesAPI token.

  2. On the line that contains the API token (ex. Postman JavaScript API), click Show token.

  3. Click the copy icon copy.svg​​ next to the unmasked access token to copy it to your clipboard.

  4. In Postman, open the Authorization tab.

  5. For the Type, select Bearer token.

  6. Paste the token into the Token field.

C. Submit the request

  1. In Postman, open the Headers tab.

  2. For the header Content-Type, select application/json.

  3. Click Send.

  4. Verify the export (Shopify records shown).

See full example