cURL
curl --request POST \ --url https://www.closient.com/products/api/v1/products/{gtin}/hierarchy \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "child_gtin": "<string>", "quantity": 123, "hierarchy_level": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "parent_gtin": "<string>", "child_gtin": "<string>", "child_product_name": "<string>", "quantity": 123, "hierarchy_level": "<string>" }
Add a child product to this GTIN’s packaging hierarchy.
GTIN barcode of the parent product.
GTIN of the child product to link.
Number of child items contained in the parent.
GDSN packaging level: 'case', 'pack', 'pallet', etc.
OK