Skip to main content

Queries

The root query fields. Every request starts at one of these.

Argument behavior is shared across all of them — dates are Unix timestamps, sort accepts only a per-type list of fields, and first/last override sort. See Filtering and Sorting before building a query.

authenticate

Check that API Keys are working

Returns String.

affiliates

Returns a list of Client's Affiliates

Returns [Affiliate].

ArgumentTypeNotes
idIDReturns only the record with this id.
statusStringExact match. The returned type lists the values that can appear.
emailStringExact match on the affiliate's email address.
created_fromIntUnix timestamp in seconds. Exclusive — matches rows created strictly after it.
created_toIntUnix timestamp in seconds. Inclusive — matches rows created at or before it.
last_login_fromIntUnix timestamp in seconds. Exclusive.
last_login_toIntUnix timestamp in seconds. Inclusive.
last_conversion_fromIntUnix timestamp in seconds. Exclusive.
last_conversion_toIntUnix timestamp in seconds. Inclusive.
offer_idIntReturns only records tied to this offer.
updated_fromIntUnix timestamp in seconds. Exclusive — matches rows updated strictly after it.
updated_toIntUnix timestamp in seconds. Inclusive — matches rows updated at or before it.
sortStringField 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.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

clicks

A list of clicks

Returns [Click].

ArgumentTypeNotes
idIDReturns only the record with this id.
sub_idIDMatches the subid carried on the tracking link.
created_fromIntUnix timestamp in seconds. Exclusive — matches rows created strictly after it.
created_toIntUnix timestamp in seconds. Inclusive — matches rows created at or before it.
affiliate_idIDReturns only records belonging to this affiliate.
offer_idIDReturns only records tied to this offer.
creative_idIDReturns only records tied to this creative.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

conversions

A list of conversions

Returns [Conversion].

ArgumentTypeNotes
idIDReturns only the record with this id.
statusStringExact match. The returned type lists the values that can appear.
merchant_unique_idStringMatches the order identifier you sent when reporting the order. Identical in effect to order_id.
payment_statusStringPass UNPAID for conversions not yet in a payment. Any other value matches conversions that are already in one.
typeStringExact match. The returned type lists the values that can appear.
created_fromIntUnix timestamp in seconds. Exclusive — matches rows created strictly after it.
created_toIntUnix timestamp in seconds. Inclusive — matches rows created at or before it.
updated_fromIntUnix timestamp in seconds. Exclusive — matches rows updated strictly after it.
updated_toIntUnix timestamp in seconds. Inclusive — matches rows updated at or before it.
is_test_conversionBooleanPass true to return only test conversions, false for only real ones. Omit to return both.
affiliate_idIDReturns only records belonging to this affiliate.
offer_idIDReturns only records tied to this offer.
payment_idIDReturns only conversions included in this payment.
order_idStringMatches the order identifier you sent when reporting the order. Identical in effect to merchant_unique_id.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

conversion_triggers

A list of conversion triggers

Returns [ConversionTrigger].

ArgumentTypeNotes
idStringReturns only the record with this id.
statusStringExact match. The returned type lists the values that can appear.
triggerStringExact match on the trigger value — the coupon code, email address, or SKU.
created_fromIntUnix timestamp in seconds. Exclusive — matches rows created strictly after it.
created_toIntUnix timestamp in seconds. Inclusive — matches rows created at or before it.
updated_fromIntUnix timestamp in seconds. Exclusive — matches rows updated strictly after it.
updated_toIntUnix timestamp in seconds. Inclusive — matches rows updated at or before it.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

creatives

A list of creatives

Returns [Creative].

ArgumentTypeNotes
idIDReturns only the record with this id.
statusIDExact match. The returned type lists the values that can appear.
typeIDExact match. The returned type lists the values that can appear.
created_fromIntUnix timestamp in seconds. Exclusive — matches rows created strictly after it.
created_toIntUnix timestamp in seconds. Inclusive — matches rows created at or before it.
updated_fromIntUnix timestamp in seconds. Exclusive — matches rows updated strictly after it.
updated_toIntUnix timestamp in seconds. Inclusive — matches rows updated at or before it.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

offers

A list of offers

Returns [Offer].

ArgumentTypeNotes
idIDReturns only the record with this id.
created_fromIntUnix timestamp in seconds. Exclusive — matches rows created strictly after it.
created_toIntUnix timestamp in seconds. Inclusive — matches rows created at or before it.
updated_fromIntUnix timestamp in seconds. Exclusive — matches rows updated strictly after it.
updated_toIntUnix timestamp in seconds. Inclusive — matches rows updated at or before it.
statusStringExact match. The returned type lists the values that can appear.
typeStringExact match. The returned type lists the values that can appear.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

payments

A list of payments

Returns [Payment].

ArgumentTypeNotes
idIDReturns only the record with this id.
created_fromIntUnix timestamp in seconds. Exclusive — matches rows created strictly after it.
created_toIntUnix timestamp in seconds. Inclusive — matches rows created at or before it.
commission_totalStringExact match on the stored value. This is not a range filter.
totalStringExact match on the stored value. This is not a range filter.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

product_feed

A list of products

Returns [ProductFeed].

ArgumentTypeNotes
idIDReturns only the record with this id.
merchant_idIntReturns only records where this field equals the value you pass.
external_idStringReturns only records where this field equals the value you pass.
nameStringReturns only records where this field equals the value you pass.
descriptionStringReturns only records where this field equals the value you pass.
tagsStringReturns only records where this field equals the value you pass.
priceFloatReturns only records where this field equals the value you pass.
currencyStringReturns only records where this field equals the value you pass.
product_urlStringReturns only records where this field equals the value you pass.
rfsn_parameterStringReturns only records where this field equals the value you pass.
platform_idIntReturns only records where this field equals the value you pass.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

merchants

Product feed merchants

Returns [Merchant].

Does not work

This root query returns Internal server error on every request, as does pageInfo { total_results { merchants } }. Read the store through product_feed { merchant { … } } instead.

ArgumentTypeNotes
idIDReturns only the record with this id.
shop_nameStringReturns only records where this field equals the value you pass.
shop_identifierStringReturns only records where this field equals the value you pass.
shop_urlStringReturns only records where this field equals the value you pass.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

variants

Product feed variants

Returns [Variant].

ArgumentTypeNotes
idIDReturns only the record with this id.
product_idIntReturns only records tied to this product.
external_idStringReturns only records where this field equals the value you pass.
nameStringReturns only records where this field equals the value you pass.
priceStringReturns only records where this field equals the value you pass.
optionsStringReturns only records where this field equals the value you pass.
skuStringReturns only records where this field equals the value you pass.
sync_statusBooleanReturns only records where this field equals the value you pass.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

platforms

Product feed platforms

Returns [Platform].

Does not work

This root query returns Internal server error on every request. Read the platform through product_feed { vendor { … } } instead.

ArgumentTypeNotes
idIDReturns only the record with this id.
nameStringReturns only records where this field equals the value you pass.
sortStringField 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.
limitIntRows to return. Anything outside 1–200 is replaced by 200.
beforeIDReturns only rows with an id lower than this. Cursor-style paging.
afterIDReturns only rows with an id higher than this. Cursor-style paging.
offsetIntRows to skip before returning results.
firstIntActs as limit, but also forces sorting by id ascending and overrides any sort you pass.
lastIntActs as limit, but also forces sorting by id descending and overrides any sort you pass.

pageInfo

Deprecated

This will no longer return accurate results.

Will display pagination details

Returns PageInfo.

products

Collects information regarding products.

Returns [Product].

Does not work

This root query returns Internal server error on every request. Read line items through conversions { products { … } } instead.

ArgumentTypeNotes
nameStringReturns only records where this field equals the value you pass.
SKUStringReturns only records where this field equals the value you pass.
quantityIntReturns only records where this field equals the value you pass.
priceFloatReturns only records where this field equals the value you pass.
commissionFloatReturns only records where this field equals the value you pass.
commissionable_amountFloatReturns only records where this field equals the value you pass.

shops

A list of clients associated with account.

Returns [Shop].

Marketplace tokens only.