Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. options – JSON stringified configuration object, encoded Base64, that contains following fields:

    1. orderId – string containing order identifier (required)

    2. minDate – earliest pickup date in form of UTC timestamp (seconds, required)

    3. maxDate – latest pickup date in form of UTC timestamp (seconds, required)

    4. phoneNumber – customer’s phone number in E.164 format (optional)

    5. note – extra information such as order summary (for example, comma separated list of purchased items) to be displayed to the staff and customer in UI for improved UX (required, maximum 500 characters)

JavaScript code example: https://codesandbox.io/s/boring-rubin-briq0?file=/src/index.js

Option 2 - simple link

Option 2 is applicable whenever adding code-level logic is not possible, for example when vendor is using an ecom platform (like Shopify) that gives you limited control over the contents of your email

...