404 Not Found returned for 6504000000

Hello,

GET https://www.trade-tariff.service.gov.uk/api/v2/commodities/6504000000 returns a 404 Not Found HTTP status code but 6504000000 is a valid code from what I can see.

Is this something I’ve misunderstood about the process or is this a potential issue with the API?

Hi Dan,

It’s technically a declarable heading:
https://www.trade-tariff.service.gov.uk/api/v2/headings/6504

If you’re traversing from Chapter 65, it should say the type of child in the relationships some might be declarable headings, rather than commodities.

Hi Matt,

Thanks for this. I’m now checking for declarable headers in my process now and this seems to be working.

Great stuff on this API, btw, very useful. If you could pass the message on to the team.

Dan

1 Like