Pricing response is different than what is on Digi-Key website?

The Digi-Key website makes many locale changes when you visit the website, it provides pricing based on this locale information and the account information signed into the website.

To match the API pricing response against the Digi-Key website:

Use the /partsearch/<version>/partdetails API  (this is the only method that will give you exact pricing for part)

Update the API request with locale information

--header 'x-digikey-locale-currency: REPLACE_THIS_VALUE' 

--header 'x-digikey-locale-language: REPLACE_THIS_VALUE' 

--header 'x-digikey-locale-shiptocountry: REPLACE_THIS_VALUE' 

--header 'x-digikey-locale-site: REPLACE_THIS_VALUE' 

Use the same Customer ID in the API request as signed in on the Digi-Key website

--header 'x-digikey-customer-id: REPLACE_THIS_VALUE'

 

categories: