Zapier

Zapier: Code by Zapier

In Zapier, the easiest way to connect ShipPickup is with the Code by Zapier step: ready code calculates the rate, buys the cheapest label, and returns tracking to the next steps.

Downloadable files

What you’ll need

Step-by-step instructions

  1. Create a Zap: trigger (new order in your system or Webhooks by Zapier, Catch Hook).
  2. Add a 'Code by Zapier' step, 'Run JavaScript'. Paste the contents of zapier-code-step.js into the Code field.
  3. In 'Input Data', add fields from the file header and link them to the trigger data. Insert the live key into api_key: it is stored in the step settings, not in the code.
  4. Test the step. The output will include tracking_number, order_id, price, carrier, and status.
  5. Use the next steps to record tracking in your system, send an email or message.

Important to know

Files contain no keys or passwords: all secrets are set by you in environment settings. Do not publish files with your values.

← All ready-made solutions · Common Scenarios