Skip to main content

Schema Reference

Every query, type, field and argument the Refersion GraphQL API exposes. These pages are generated from the running schema, so they describe what the API actually accepts today.

The API is read-only: there is no mutation type. Everything hangs off a single root query.

Availability

The schema you get depends on the token you authenticate with, so a few fields are marked in the tables that follow:

MarkingMeaning
no markingAvailable to every token.
Merchant tokens onlyOnly for tokens generated from a Refersion merchant account.
Marketplace tokens onlyOnly for tokens generated from a Refersion Marketplace account.
Marketplace VIP tokens onlyOnly for marketplace accounts with VIP access enabled.

What you can see

You only ever receive your own data — the API scopes every query for you, and there is no argument that widens it:

  • Merchant tokens see the records belonging to your Refersion account.
  • Marketplace tokens see the records of the affiliate accounts linked to your marketplace user, across every merchant you are approved with.

Some records are filtered out before any argument you pass is applied. Those exclusions are noted on the relevant field — see Affiliate.status, Conversion.status and ConversionTrigger.status in particular.

Types

TypeDescription
AffiliateAffiliates of clients
ClickAn affiliate's click
ConversionA Conversion
ConversionTriggerA coupon code, email, or sku, that triggers a conversion for an affiliate.
CreativeA creative
ImageProduct Feed Images
MerchantThe connected store a product-feed product was synced from.
OfferAn offer
PageInfoPagination information about a query's result set.
PageInfoPayloadContains information about the paginated data
PaymentA payment
PlatformProduct Feed Platforms
ProductCollects information regarding products.
ProductFeedAffiliates Feed Products
ShopA shop
VariantProduct Feed Variants

Download the schema

The full SDL, if you would rather generate a client or explore it in a tool: