Offer
An offer
Fields
| Field | Type | Availability | Notes |
|---|---|---|---|
id | ID | The record's Refersion id. | |
type | String | ||
commission | String | The commission the offer pays, as a decimal string. Read together with type. | |
flat_rate_currency | String | ISO 4217 currency of commission when type is a flat rate. | |
cookie_days | String | How many days a click stays eligible for attribution. | |
commission_terms | String | The commission terms shown to affiliates. | |
business_category | String | ||
unified_payments | Boolean | ||
shop | Shop | ||
affiliates | [Affiliate] | Takes arguments — see below. | |
conversions | [Conversion] | Takes arguments — see below. | |
clicks | [Click] | Takes arguments — see below. | |
name | String | Merchant tokens only |
Sorting
sort accepts id, created, updated, status on this type, and sorts descending.
Any other value is ignored without an error.
Field arguments
affiliates
| Argument | Type | Notes |
|---|---|---|
id | ID | Returns only the record with this id. |
status | String | Exact match. The returned type lists the values that can appear. |
email | String | Exact match on the affiliate's email address. |
created_from | Int | Unix timestamp in seconds. Exclusive — matches rows created strictly after it. |
created_to | Int | Unix timestamp in seconds. Inclusive — matches rows created at or before it. |
last_login_from | Int | Unix timestamp in seconds. Exclusive. |
last_login_to | Int | Unix timestamp in seconds. Inclusive. |
last_conversion_from | Int | Unix timestamp in seconds. Exclusive. |
last_conversion_to | Int | Unix timestamp in seconds. Inclusive. |
sort | String | Field to sort by, descending. Each type accepts its own short list — see Sorting on the returned type's page. Anything else is ignored without an error. |
limit | Int | Rows to return. Anything outside 1–200 is replaced by 200. |
before | ID | Returns only rows with an id lower than this. Cursor-style paging. |
after | ID | Returns only rows with an id higher than this. Cursor-style paging. |
offset | Int | Rows to skip before returning results. |
conversions
| Argument | Type | Notes |
|---|---|---|
id | ID | Returns only the record with this id. |
status | String | Exact match. The returned type lists the values that can appear. |
type | String | Exact match. The returned type lists the values that can appear. |
created_from | Int | Unix timestamp in seconds. Exclusive — matches rows created strictly after it. |
created_to | Int | Unix timestamp in seconds. Inclusive — matches rows created at or before it. |
payment_status | String | Pass UNPAID for records not yet in a payment. Any other value matches records that are already in one. |
affiliate_id | ID | Returns only records belonging to this affiliate. |
sort | String | Field to sort by, descending. Each type accepts its own short list — see Sorting on the returned type's page. Anything else is ignored without an error. |
limit | Int | Rows to return. Anything outside 1–200 is replaced by 200. |
before | ID | Returns only rows with an id lower than this. Cursor-style paging. |
after | ID | Returns only rows with an id higher than this. Cursor-style paging. |
offset | Int | Rows to skip before returning results. |
clicks
| Argument | Type | Notes |
|---|---|---|
id | ID | Returns only the record with this id. |
sub_id | ID | Matches the subid carried on the tracking link. |
created_from | Int | Unix timestamp in seconds. Exclusive — matches rows created strictly after it. |
created_to | Int | Unix timestamp in seconds. Inclusive — matches rows created at or before it. |
affiliate_id | ID | Returns only records belonging to this affiliate. |
creative_id | ID | Returns only records tied to this creative. |
sort | String | Field to sort by, descending. Each type accepts its own short list — see Sorting on the returned type's page. Anything else is ignored without an error. |
limit | Int | Rows to return. Anything outside 1–200 is replaced by 200. |
before | ID | Returns only rows with an id lower than this. Cursor-style paging. |
after | ID | Returns only rows with an id higher than this. Cursor-style paging. |
offset | Int | Rows to skip before returning results. |
Referenced by
Related
- Queries — the root fields that reach this type.
- Filtering and Sorting — how arguments behave.