Search code examples
curlbigcommerce

BigCommerce - Find Customers by Tax Code?


Is there a way to find customers with a non-blank tax_exempt_category? I can see that it's a returned value, but I can't see a way to query or filter by it and I don't want to have to process all customers.


Solution

  • Here is a CURL request to get all customers with TAX exempt code "EXeMPT" - curl --location --request GET 'https://api.bigcommerce.com/stores/[STORE_HASH]/v2/customers?tax_exempt_category=EXeMPT' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'X-Auth-Token: [YOUR_TOKEN]' \ --header 'Authorization: Basic [YOUR_CREDS]'