Line item

FieldTypeDescription
yotpo_product_idlongYotpo's unique ID for the product. This value is read-only.
external_product_id
(required)
stringThe merchant's unique ID for the product.
quantity
(required)
integerThe quantity of the line item.
total_pricedoubleThe total price of the line item.
subtotal_pricedoubleThe price of the products after discounts but before shipping, taxes, and tips.
coupon_codestringThe coupon code that was used in the purchase.
- Max length: 255 characters
- Case sensitive
custom_propertiesobjectAn array of custom property objects.