curl --location -g --request POST 'https://relay.exostack.cloud/{{relay_path}}/api/inventory/product/' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"product_group_number": 0,
"taxes_included": true,
"serial_numbers": {
"has_serial_number": true,
"serial_number_required": true,
"existing_serial_number_only": true
},
"unit_code_description": "string",
"unit_code": "string",
"location": "string",
"sequence": "string",
"upc": "string",
"upc_is_variable": true,
"description": "string",
"description_locale": {
"fr": "string",
"en": "string",
"es": "string"
},
"metadata": {
"comment": "string",
"show_comment": true,
"print_comment_in_transactions": true
},
"stocks": {
"qty_in_demo": 0,
"qty_under_repair": 0,
"reorder_point_qty": 0,
"maximum_qty": 0,
"product_bo_allowed": true,
"bo_allowed": true,
"delivery_delay": 0
},
"selling_price": {
"regular": 0,
"promo": 0,
"seasonal_ending": 0,
"liquidation": 0,
"demo": 0,
"bulk_price": {
"from_one_to_qty": 0,
"from_one_to_price": 0,
"up_to_qty": 0,
"up_to_price": 0,
"and_more_price": 0
}
},
"selling_prices": {
"cad": {
"regular": 0,
"promo": 0,
"seasonal_ending": 0,
"liquidation": 0,
"demo": 0,
"bulk_price": {
"from_one_to_qty": 0,
"from_one_to_price": 0,
"up_to_qty": 0,
"up_to_price": 0,
"and_more_price": 0
}
},
"usd": {
"regular": 0,
"promo": 0,
"seasonal_ending": 0,
"liquidation": 0,
"demo": 0,
"bulk_price": {
"from_one_to_qty": 0,
"from_one_to_price": 0,
"up_to_qty": 0,
"up_to_price": 0,
"and_more_price": 0
}
}
},
"last_cost": 0,
"reference": {
"product_group_id": 0,
"sort_key": "string",
"sort_key_2": "string"
},
"number": "string",
"active": true
}'