How to Change your Region to get Suitable Results

Modified on Wed, 09 Nov 2022 at 10:07 AM

Many of our distributor partners provide different inventory levels depending on the user's country. The API defaults to US and USD for country and currency but these can be overridden to get results more suitable to your region.
 
Compare the query for Great Britain:
query GBMatch {
  supMultiMatch(
    country: "GB"
    currency: "GBP"
    queries: [{ mpn: "AR 32 HZL-TT", limit: 3 }]
  ) {
    parts {
      sellers(authorizedOnly: true) {
        company {
          name
        }
        offers {
          inventoryLevel
        }
      }
    }
  }
}

... with the query in the US: 

query USMatch {
  supMultiMatch(
    queries: [{ mpn: "AR 32 HZL-TT", limit: 3 }]
  ) {
    parts {
      sellers(authorizedOnly: true) {
        company {
          name
        }
        offers {
          inventoryLevel
        }
      }
    }
  }
}

In this case, on this particular day, there were 1,370 parts avaialble to ship to GB. However, those in the US would only see 300 parts available.

Many distributors will ship to multiple countries, or not segregate stock by country, and as such the input country and currency is not used as a hard filter.

Country codes follow the ISO 3166 (alpha-2) standard; currency codes follow the ISO 4217 standard. 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article