If your Shopify plan/theme no longer supports “Additional scripts”, use webhooks + a server to report conversions reliably.
Many stores can’t run custom JavaScript on the order status page anymore. The reliable path is:
Your server calls the discount capture endpoint using your Discount Capture Secret (from the dashboard).
Request format
POST https://referlabs.com.au/api/discount-codes/redeem
Headers:
Content-Type: application/json
x-pepf-discount-secret: <ADD_SECRET>
Body:
{
"discountCode": "CODE_FROM_ORDER",
"orderReference": "ORDER-12345",
"amount": "199.00",
"metadata": {
"platform": "shopify",
"shopify_order_id": "1234567890",
"email": "customer@example.com"
}
}/api/discount-codes/redeem returns success.orderReference as a unique key).