Hi, could you elaborate a little more what you mean by location header of a discount code?
Discount codes are bund to a price rule which you will find referenced in the discount code itself, along with the code itself and how often it was used. I don't see how location comes in to play here?
Ah I get you. That endpoint returns a 303 aka see other status. What that means is basically that if the discount code is found, the header contains a URI to the actual resource - if you're testing this via Postman or Insomnia, it's likely you're being redirected straight away to that resource hence you see a 200 and nada else.
Don't know about Postman, but Insomnia you will find the request timeline which will clearly show the initial 303 response which includes he location in the header.
Hope this helps!