Retrieve HS Code from product variants in order shipment

AteBAteB Member Posts: 1

Hi,

We need te retrieve the HS Code from a product variant in a order shipment.

The only way I see is by getting the article number (or EAN/SKU) from the shipment product, retrieve all the product variants from the webshop and loop trough the variants until you find the product.

Is this the only way or is there a faster, more safe and more logical way?

Thanks in advance!

1 comment

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 61 moderator

    Hi @AteB ,

    Thank you for contacting us.

    If you want to fetch the article code, EAN or SKU you can use this

    GET /shipments/{shipment_id}/products.json
    

    Unfortunately, the HS code isn't in the orderProducts at this moment. You'll need get all the variants.

    For searching for specific article code, EAN or SKU you can make use of the query parameters:

    GET /variants.json?sku={sku_value}
    GET /variants.json?articleCode{articleCode}
    GET /variants.json?ean={ean}
    

    This is not working for HS Code unfortunately. I hope this will help.

Sign In or Register to comment.