Customer API query sometimes returns a 403 error

Customer API query sometimes returns a 403 error

Lorenzo_dr
Shopify Partner
1 0 0

Hello, I've been receiving this 403 error on some users requests on the Customer API but I can't understand the cause as the log doesn't tell much.

Error: [h2:error:customer.query] URL: https://shopify.com/XXX/account/customer/api/2024-01/graphql
API response error: 403 - Request ID: 7b48ca59-c767-4e54-84cf-11edce2aba5b-1710460643
  context.customer.query(CUSTOMER_QUERY);


This is the query:

 

customer {
      emailAddress {
        emailAddress
      }
      id
      firstName
      lastName
      phoneNumber {
        phoneNumber
      }
      companyContacts(first: 10) {
        edges {
          node {
            company {
              id
              externalId
              name
            }
          }
        }
      }
      orders(first: 250, sortKey: PROCESSED_AT, reverse: true) {
        edges {
          node {
            id
            createdAt
            processedAt
            financialStatus
            totalPrice {
              amount
              currencyCode
            }
            lineItems (first: 10) {
              edges {
                node {
                  id
                  title
                  image {
                    url
                    altText
                    height
                    width
                  }
                }
              }
            }
          }
        }
      }
    }
  }

 

 
Is there any way to better log the error or do you have any clue on what could be causing this issue?

Replies 0 (0)