Fetches a product.
Security
oAuth2ClientCredentials
- https://api.qargo.comhttps://api.qargo.com/v1/products/product/{product_id}
import requests
product_id = "YOUR_product_id_PARAMETER"
url = "https://api.qargo.com/v1/products/product/" + product_id
headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Successful Response
Code of the product. Use it as the reference to the product in your system.
Default:""
Example:"UN1090"
Free-text description of the product.
Default:""
Example:"Acetone, flammable liquid"
Whether the product is archived. Archived products can't be used on new orders.
Response
{ "code": "UN1090", "description": "Acetone, flammable liquid", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Acetone", "is_archived": true, "product_type": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Chemicals", "code": "CHEM" }, "parent_product": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Acetone", "code": "UN1090" } }