Skip to content

Instantly share code, notes, and snippets.

@dkarter
Last active February 14, 2023 19:04
Show Gist options
  • Save dkarter/8849d855a9c7618109844b76341cd8a8 to your computer and use it in GitHub Desktop.
Save dkarter/8849d855a9c7618109844b76341cd8a8 to your computer and use it in GitHub Desktop.
Malomo Tracking Page URL

Get Tracking Page URL

Returns the tracking page url for an account + order/return

API URL

https://api.gomalomo.com/public/tracking_pages/url

Parameters

  • account_id - Malomo account id (required)
  • slug - select which Malomo hosted tracking page to use (optional)
  • Passthrough (optional params that will be added to the tracking page url to get a particular Order / Return):
    • _m_id - Malomo Order ID OR _m_alt_id - Shopify Order ID
    • _m_return_alt_id - Loop Return ID

Headers

The Accept header is required! (see example below)

Example:

curl "https://api.gomalomo.com/public/tracking_pages/url?account_id=0000e895-a435-4db3-9ba8-d9d9be51aafb&_m_alt_id=4692134756397" \
     -H 'Accept: application/vnd.malomo+json; version=2'

Output:

{
  "url": "https://example.com/foo-bar?_m_alt_id=4692134756397"
}

This API endpoint does not require authentication, but it requires knowing the Malomo Account ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment