Every answer is JSON with ok and a reason, plus click_id, transaction_id and replayed: true when they apply, for example {"ok": true, "reason": "paid", "click_id": "3f9a0c4be27d1856", "transaction_id": 123}. Branch on the status and reason, never on wording.
| Status | Reason | Meaning |
|---|---|---|
| 200 | paid | Counted, and a payout covers it. You're billed for it after its hold, and the creator earns it. |
| 200 | unpaid_no_rule | Counted, but no payout covers this event, so nothing is billed. It still uses its click's slot. |
| 200 | test_verified | Test received. The listing is verified. Nothing is billed. |
| 200 | reversed | You already reversed this event. It doesn't count again. |
| 202 | awaiting_handoff | Kept until your extension opens the install page with this install_id. Nothing bills until then. |
| 400 | invalid_payload | A field is missing or not valid, or install_id or click_id doesn't fit the platform. Fix the body. |
| 400 | json_required | Send Content-Type: application/json. |
| 400 | invalid_json | The body isn't a JSON object. |
| 401 | unauthorized | Missing or wrong event key, or no app with that public key. |
| 403 | app_archived | The app is archived. It accepts reversals only. |
| 403 | app_disabled | Tracking is turned off for this app. |
| 404 | click_not_found | Refermate has no such click or install. |
| 404 | relationship_not_found | That customer_id has no referral relationship with your program in this environment. |
| 409 | cross_environment | The click came from a different Refermate environment, such as a staging link. |
| 409 | duplicate_event | This click already has this event. A click pays at most one install and one activation. |
| 409 | event_id_conflict | This event_id was already used for a different event. |
| 410 | test_click_expired | The test link expired. Get a new one. |
| 413 | payload_too_large | The body is larger than 16 KiB. |
| 422 | billing_rejected | Refermate couldn't bill the charge. Check billing in Partners, then send the same body again. |
| 422 | inactive_referral_context | The creator's link or membership, your program, or your billing isn't active. |
| 422 | install_not_active | That install was reversed or has expired, so nothing more on its click pays. |
| 422 | invalid_occurred_at | occurred_at isn't a valid time with an offset, is before the click, or is more than 5 minutes ahead. |
| 422 | outside_attribution_window | The activation happened after your program's attribution window. |
| 422 | outside_install_window | The install happened after the click's install window. |
| 422 | platform_mismatch | platform doesn't match the app, or the store the click was sent to. |
| 422 | pricing_history_ambiguous | occurred_at falls in the same second as a change to your payouts, so Refermate can't tell which applied. Send occurred_at with milliseconds, or contact support. |
| 422 | test_flag_required | This is a test link's event. Send it with test: true. |
| 422 | test_not_allowed | test: true only works with a test link. |
| 422 | unsupported_commission_configuration | Your program's pricing can't pay app events. App payouts need a program priced in USD. |
| 429 | rate_limited | More than 3,000 events for this app in a minute. Wait for Retry-After (60 seconds), then send it again. |
| 500 | internal_error | Something failed on Refermate's side. Send the same body again in a few minutes. |
| 503 | creator_rate_unavailable | The creator's rate couldn't be read. Send the same body again in a few minutes. |
| 503 | pricing_history_unavailable | Your payout history couldn't be read. Send the same body again in a few minutes. |
| 503 | rate_limit_unavailable | The rate limit couldn't be checked. Send the same body again in a few minutes. |
| Status | Reason | Meaning |
|---|---|---|
| 200 | reversed | Reversed. Nothing is billed for it, and a reversed install's click pays nothing more. |
| 200 | duplicate_reversal | Already reversed. |
| 200 | test_reversal_received | A test event. Nothing changed. |
| 400 | invalid_payload | A field is missing or not valid. Fix the body. |
| 404 | event_not_found | Refermate has no such event for this app. |
| 422 | paid_event_not_reversed | You were already billed for it, or the creator was paid, so it can't be reversed. Contact support. |
| 423 | active_hold | The event is under a dispute or review hold. Send the same body again later. |
Reversals also answer json_required, invalid_json, unauthorized, payload_too_large, rate_limited, internal_error or rate_limit_unavailable the same way events do.
event_id is your idempotency key, unique within each app. Sending the same event again with the same event_id returns the first answer with replayed: true. The same event_id with any other field changed answers 409 event_id_conflict.occurred_at, changes the body and answers 409.billing_rejected with the same body, with backoff. After a 429, wait for Retry-After. Retry a reversal's 423 active_hold later. Fix any other refusal before you send it again.Order IDs that start with rm_app:, in any letter case, belong to app events (rm_app:<install|activation>:<click id>). A conversion or refund postback with one answers 400 invalid_payload, so a purchase never collides with an app event.
Every answer is JSON with ok and a reason, plus click_id, transaction_id and replayed: true when they apply, for example {"ok": true, "reason": "paid", "click_id": "3f9a0c4be27d1856", "transaction_id": 123}. Branch on the status and reason, never on wording.
| Status | Reason | Meaning |
|---|---|---|
| 200 | paid | Counted, and a payout covers it. You're billed for it after its hold, and the creator earns it. |
| 200 | unpaid_no_rule | Counted, but no payout covers this event, so nothing is billed. It still uses its click's slot. |
| 200 | test_verified | Test received. The listing is verified. Nothing is billed. |
| 200 | reversed | You already reversed this event. It doesn't count again. |
| 202 | awaiting_handoff | Kept until your extension opens the install page with this install_id. Nothing bills until then. |
| 400 | invalid_payload | A field is missing or not valid, or install_id or click_id doesn't fit the platform. Fix the body. |
| 400 | json_required | Send Content-Type: application/json. |
| 400 | invalid_json | The body isn't a JSON object. |
| 401 | unauthorized | Missing or wrong event key, or no app with that public key. |
| 403 | app_archived | The app is archived. It accepts reversals only. |
| 403 | app_disabled | Tracking is turned off for this app. |
| 404 | click_not_found | Refermate has no such click or install. |
| 404 | relationship_not_found | That customer_id has no referral relationship with your program in this environment. |
| 409 | cross_environment | The click came from a different Refermate environment, such as a staging link. |
| 409 | duplicate_event | This click already has this event. A click pays at most one install and one activation. |
| 409 | event_id_conflict | This event_id was already used for a different event. |
| 410 | test_click_expired | The test link expired. Get a new one. |
| 413 | payload_too_large | The body is larger than 16 KiB. |
| 422 | billing_rejected | Refermate couldn't bill the charge. Check billing in Partners, then send the same body again. |
| 422 | inactive_referral_context | The creator's link or membership, your program, or your billing isn't active. |
| 422 | install_not_active | That install was reversed or has expired, so nothing more on its click pays. |
| 422 | invalid_occurred_at | occurred_at isn't a valid time with an offset, is before the click, or is more than 5 minutes ahead. |
| 422 | outside_attribution_window | The activation happened after your program's attribution window. |
| 422 | outside_install_window | The install happened after the click's install window. |
| 422 | platform_mismatch | platform doesn't match the app, or the store the click was sent to. |
| 422 | pricing_history_ambiguous | occurred_at falls in the same second as a change to your payouts, so Refermate can't tell which applied. Send occurred_at with milliseconds, or contact support. |
| 422 | test_flag_required | This is a test link's event. Send it with test: true. |
| 422 | test_not_allowed | test: true only works with a test link. |
| 422 | unsupported_commission_configuration | Your program's pricing can't pay app events. App payouts need a program priced in USD. |
| 429 | rate_limited | More than 3,000 events for this app in a minute. Wait for Retry-After (60 seconds), then send it again. |
| 500 | internal_error | Something failed on Refermate's side. Send the same body again in a few minutes. |
| 503 | creator_rate_unavailable | The creator's rate couldn't be read. Send the same body again in a few minutes. |
| 503 | pricing_history_unavailable | Your payout history couldn't be read. Send the same body again in a few minutes. |
| 503 | rate_limit_unavailable | The rate limit couldn't be checked. Send the same body again in a few minutes. |
| Status | Reason | Meaning |
|---|---|---|
| 200 | reversed | Reversed. Nothing is billed for it, and a reversed install's click pays nothing more. |
| 200 | duplicate_reversal | Already reversed. |
| 200 | test_reversal_received | A test event. Nothing changed. |
| 400 | invalid_payload | A field is missing or not valid. Fix the body. |
| 404 | event_not_found | Refermate has no such event for this app. |
| 422 | paid_event_not_reversed | You were already billed for it, or the creator was paid, so it can't be reversed. Contact support. |
| 423 | active_hold | The event is under a dispute or review hold. Send the same body again later. |
Reversals also answer json_required, invalid_json, unauthorized, payload_too_large, rate_limited, internal_error or rate_limit_unavailable the same way events do.
event_id is your idempotency key, unique within each app. Sending the same event again with the same event_id returns the first answer with replayed: true. The same event_id with any other field changed answers 409 event_id_conflict.occurred_at, changes the body and answers 409.billing_rejected with the same body, with backoff. After a 429, wait for Retry-After. Retry a reversal's 423 active_hold later. Fix any other refusal before you send it again.Order IDs that start with rm_app:, in any letter case, belong to app events (rm_app:<install|activation>:<click id>). A conversion or refund postback with one answers 400 invalid_payload, so a purchase never collides with an app event.