Skip to content

Instantly share code, notes, and snippets.

@marcfowler
Last active June 5, 2019 22:22
Show Gist options
  • Save marcfowler/220ed63a0a1658ea382d to your computer and use it in GitHub Desktop.
Save marcfowler/220ed63a0a1658ea382d to your computer and use it in GitHub Desktop.
ThriveCart Webhook Parameters
event: string (order.success)
thrivecart_account: string (Your account's subdomain)
thrivecart_secret: string (Your account's 'secret word' parameter)
base_product: int (The ID of the front-end product this order relates to)
order_id: int (Unique order ID)
currency: string (Uppercase, 3-character currency code - USD, GBP, etc)
customer_id: int (Customer ID)
customer_identifier: string (Customer identifier from your payment processor - may be null)
customer: array (name, firstname, lastname, email, address)
order: array:
tax: int (Amount of tax charged)
tax_type: string (au-gst, nz-gst, gb, fr, us-tx, etc)
processor: string (stripe/paypal)
total: int (Total amount charged)
charges: array (type, name, reference, amount, frequency)
future_charges: array (type, name, reference, amount, frequency, due)
purchases: array (Array of the names of all purchases, including the front-end, bump, upsell(s)/downsell(s))
purchase_map: array (Array containing purchases; for example, product-12, bump-12, upsell-2, upsell-3, downsell-5)
purchase_map_flat: string (A string containing the above info concatenated into a single string: "product-12, bump-12, upsell-2")
fulfillment: array (id, hash, url. The URL links to the confirmation page that the customer was taken to after ordering)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment