Knowledge Base      


How are refunds handled in ClickMagick?


You probably don’t need to worry too much about refunds as they’re unlikely to meaningfully affect your stats, but if you do want refunds accounted for in ClickMagick here’s how it works …


Refunds processed automatically

Some refunds are processed automatically by ClickMagick:

1. Refunds of affiliate sales tracked via Webhook or Postback URL will be processed automatically as long as your affiliate network also sends refund data to your Webhook or Postback URL. All major affiliate networks do this.

2. If you’re using the ClickMagick Shopify App, any refunds from Shopify will be processed automatically.

3. Refunds of any sales tracked via your Stripe integration will be processed automatically.


Manually mark a sale as refunded

In your sales log, you can simply click the Edit menu next to any sale and then select Refund Sale.
 


Automatically send refunds to ClickMagick

If you have the ability to send a webhook when a refund is issued in your system, or processed by your payment processing system, you can record your refunds in ClickMagick automatically.

Just have a webhook sent to the endpoint below when a refund is issued:

https://www.clkmg.com/api/s/post/?uid=[USERID]&s1=###&amt=###&ref=###
 
Here’s an explanation of the three parameters you can send to your endpoint URL:

s1 – This required value should be the email address or Campaigns Visitor ID for the visitor. If you don’t have the email address, you can get the Visitor ID from the first-party cookie that ClickMagick sets on your domain, or via the [cmc_vid] token which is available on any page with Campaigns Click Tracking code.

amt – This required value should be the amount of the refund, expressed as a negative value e.g. -99.00

ref – The optional “reference” value associated with the conversion. If the customer has multiple orders for the same amount as the refund, this is used to determine which order should be refunded.

Article 718 Last updated: 12/27/2023 7:25:03 AM
https://www.clickmagick.com/kb/?article=718