Finanace Payment Provider API?

looks like GET https://{shop_domain}/admin/api/{version}/reports.json?created_at_min=2025-04-05T00:00:00-00:00&created_at_max=2025-04-05T23:59:59-00:00 is decapricated and im getting this erorr when trying to invoke the api "Listing, creating, updating, and deleting custom reports is no longer supported. Im looking to access to payment by provider report through api, by stating date and location

1 Like

Hey @jody_tai :waving_hand: - the REST API itself is currently in Legacy mode and a lot of our older features such as the Reports API are no longer available to use.

At the moment, there isn’t a direct 1:1 replacement for the Reports API in our GraphQL Admin API though, but if you’re looking for the credit card company/sales channel for a particular set of orders, you could run this query in GraphQL which should provide the necessary info:

{
  orders(
    query: "created_at:>=2025-04-01 AND created_at:<=2025-04-07",
    first: 50
  ) {
    edges {
      node {
        id
        name
        createdAt
        totalPriceSet {
          shopMoney {
            amount
            currencyCode
          }
        }
        transactions {
          gateway
          paymentDetails {
            ... on CardPaymentDetails {
              company
            }
          }
          kind
          status
        }
      }
      cursor
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

This would be using our Orders API and if needed you could use this in a bulk operation to get a large segment of orders.

Hope this helps!