https://api.smartrr.com/vendor/order/formatted?filterLike[emailOrName]={{ticket.customer.email}}
https://api.smartrr.com/vendor/customer/{{ticket.customer.integrations.42404.data[0].custRel.id}}/purchase-state/{{ticket.customer.integrations.42404.data[0].sts[0].id}}/skip
42404
in the above URL is the integration ID which is unique to every integration. You can find in the URL on Gorgias' integrationβs page.
data[0]
and sts[0]
refer to the subscription that you want to modify. 0 would be the most recent subscription and incrementing it by 1 will go back one subscription.
The double brackets in the URL signify a macro variable in Gorgias which you can learn more about here.