Server Connect Manual
For product sites that report registrations and sales to the affiliate programme.
Base URL: https://affiliate.getosd.com/partner-events (since 1 December 2026; the old address affiliate-events.outsourcing-software-development.com no longer receives events)
1. Get an integration key
The programme administrator creates your product in Products & integrations, sets the IP address (or CIDR range) your server sends from, and gives you the integration key once. Keep it secret: anyone with the key can report sales.
Give the administrator your product's public URL as well — the landing page, e.g. https://timesaverbot.com. Affiliate referral links are built from it; without it the product gets no link in the affiliate's cabinet.
2. Send events
Every request is a JSON POST with two headers:
| Header | Value |
|---|---|
x-api-key | your integration key (the older x_api_key is accepted too, but proxies often drop headers with underscores) |
Content-Type | application/json |
Registration
POST/registrations
{
"affiliate_ref": "6a4eb2e9dc5877df7f44",
"external_event_id": "reg-2026-00001",
"user_email": "user@example.com",
"registered_at": "2026-05-08T21:00:00Z",
"status": "approved",
"metadata_json": { "campaign": "summer_launch" }
}
Sale
POST/sales
{
"affiliate_ref": "6a4eb2e9dc5877df7f44",
"external_event_id": "sale-2026-00001",
"user_email": "buyer@example.com",
"amount": 159.99,
"currency": "USD",
"sold_at": "2026-05-08T21:10:00Z"
}
Commission is recurring. Send a sale event for every successful payment a referred customer makes, renewals included, each with its own external_event_id. The Terms promise commission on every payment; reporting only the first one would make them wrong.
Refund and chargeback
POST/refunds
{
"sale_external_event_id": "sale-2026-00001",
"occurred_at": "2026-06-01T09:00:00Z",
"reason": "customer refund"
}
POST/chargebacks
{
"sale_external_event_id": "sale-2026-00001",
"occurred_at": "2026-06-01T09:00:00Z",
"reason": "issuer dispute"
}
Names the original sale, not the affiliate — the sale already knows whose it is. A chargeback has the same shape as a refund. Replaying either one is reported as a duplicate, not an error.
Responses and errors
| Code | error | When |
|---|---|---|
| 200 | — | Accepted. A repeated external_event_id (or a refund of an already refunded sale) returns "duplicate_ignored": true. |
| 403 | forbidden | No key, unknown or inactive key, or the request came from an IP not allowed for this key. |
| 400 | invalid_json | The body is not a JSON object, or a field has the wrong type (for example amount sent as a string). |
| 400 | invalid_affiliate | affiliate_ref (or affiliate_user_id) is missing or unknown. |
| 400 | invalid_external_event_id | external_event_id is missing or longer than 128 characters. |
| 400 | invalid_registered_at, invalid_status | Registration: no valid registered_at / occurred_at, or status is not approved, rejected or duplicate. |
| 400 | invalid_amount, invalid_currency, invalid_sold_at | Sale: amount is missing or 0, currency is not USD, EUR, GBP or ILS (NIS is accepted as ILS), or no valid sold_at / occurred_at. |
| 400 | invalid_sale_reference, invalid_occurred_at | Refund or chargeback: no sale_external_event_id, or occurred_at is not a valid datetime. |
| 400 | unknown_sale | Refund or chargeback names a sale your product never reported. |
| 429 | rate_limited | Too many requests from your IP in a minute. Retry after the Retry-After header. |
Datetimes: RFC 3339 (2026-05-08T21:10:00Z, 2026-05-08T23:10:00+02:00) or 2026-05-08 21:10:00 in UTC. Every error body is {"ok": false, "error": "…", "message": "…"}. Machine-readable description: OpenAPI 3.1.
3. Accept referral links
Each affiliate gets one link per product: your public URL plus a ref parameter, for example:
https://timesaverbot.com/?ref=6a4eb2e9dc5877df7f44
The value is the affiliate's ID — the same value the event endpoints expect in affiliate_ref. No separate affiliate code exists.
- Read
reffrom the inbound URL on any landing page. - Persist it, typically in a first-party cookie, so it survives until the visitor registers and pays.
- Store the value with the new customer and send it back as
affiliate_refin the/registrationsand/salespayloads on every event for that customer.
Attribution rules every product must follow
These are programme rules from section 3.6 of the Terms of Service, not choices left to the integration. Two products implementing them differently would attribute the same visitor differently, and the affiliate would be paid for one and not the other.
- Last click, not first touch. A newly arriving valid
refreplaces the stored one. A later click takes over from an earlier one. - A 30-day window, counted from the last click. Storing the mark again restarts the 30 days; it is a sliding window, not a fixed one.
- Freeze the mark when the account is created. From that point the customer belongs to that affiliate permanently, whatever the browser holds later: commission is recurring and not capped by the customer’s lifetime (section 4.3), and a plan change moves the amount, not the recipient (section 4.4).
- Ignore a malformed
ref, but keep the stored one. Clearing the mark on invalid input would make a tampered link a cheap way to strip an affiliate of a referral. - Carry the mark into any confirmation email link. Sign-up often starts on a desktop and finishes on a phone, where the cookie does not exist. The cookie still wins when both are present — otherwise a stale link would beat a more recent click and break last click.