Partners API, get Payout and Campaigns data

Kesemeven
New Member
1 0 0

Hi guys,

We are an affiliate organization that promotes Shopify using the referral link.

We don't own shops nor apps in the Shopify system.

 

I'm working on extracting data using Partner's API related to our performance and struggling to do so.

Using this documentation

https://shopify.dev/docs/partner-api/reference/common-objects/queryroot?api%5Bversion%5D=2020-10

I sent the following query using GraphQL

transactions (
createdAtMin: "2020-10-01T00:00:00Z",
createdAtMax: "2021-10-31T23:59:59Z"
) {
  edges {
    node {
      id
     createdAt
  }
   }
}

And received information only about one transaction out of many ( the only one that was paid) with Transaction_id and Created_At.

I'm trying to extract more extended information which is found in the Shopify Dashboard. 

For example,

The most important is data related to Top Campaigns (Conversion data for all campaigns)

Kesemeven_0-1614087402817.png

I would like to get Campaigns - Clicks - Trails, etc. ( This data is received by mail when I ask to export it )

 

As far as I can understand, 

The Admin endpoint is for existing shops, which we don't use or need.

 

Based on the following documentation:

https://shopify.dev/tutorials/make-paginated-requests-to-rest-admin-api

Link: "<https://{shop}.myshopify.com/admin/api/{version}/products.json?page_info={page_info}&limit={limit}>

 

I would be gladful to get a better understanding of how Partners API works and what is the best way to receive more expanded information such as campaign tokens, payout, etc.

 

Thank you.

 

0 Likes