Meritt Get started

Through the API

Affiliate program for Recurly

With Recurly, your server reports the sale to Meritt through the API, in three calls, as soon as Recurly confirms the payment. Attribution and the ledger are the same as for Stripe.

What Meritt reads

Worth knowing

Setting it up

  1. Create an API key under Payment system; the calls are documented on the same screen.
  2. At checkout, read the click cookie on your domain and store it in an account custom field (custom_fields).
  3. When Recurly sends you charge_invoice.paid, call POST /v1/conversions with the amount, the currency, the click and the customer id.
  4. On successful_refund_notification, call POST /v1/conversions/reverse with the payment reference.

How long it takes

One key, and two calls added to your webhook handling.

Questions

Why not report the sale at checkout?

At that moment the payment is not confirmed, and when it is, in the webhook, the cookie is gone. The Recurly passthrough field carries the click between the two.

Is a sale reported twice counted twice?

No. With the same reference, the second call answers “already received” and nothing is added.

Does the JSON notification carry the amount?

No: according to Recurly it only carries the id and the invoice number. Your server reads the invoice through the Recurly API before reporting the sale to us.

Without Credit Invoices?

The successful payment notification (successful_payment_notification) does the same job.

Recurly documentation checked on October 19, 2026: docs.recurly.com › charge invoice notifications, docs.recurly.com › payment notifications, docs.recurly.com › custom fields

See also

Affiliate program for Recurly

Free until your first commission. No card asked for.