---
updatedAt: 2026-10-29T08:22:22.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Line item

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Field
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        yotpo\_product\_id
      </td>

      <td style={{ textAlign: "left" }}>
        long
      </td>

      <td style={{ textAlign: "left" }}>
        Yotpo's unique ID for the product. This value is read-only.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        external\_product\_id\
        (required)
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        The merchant's unique ID for the product.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        quantity\
        (required)
      </td>

      <td style={{ textAlign: "left" }}>
        integer
      </td>

      <td style={{ textAlign: "left" }}>
        The quantity of the line item.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        total\_price
      </td>

      <td style={{ textAlign: "left" }}>
        double
      </td>

      <td style={{ textAlign: "left" }}>
        The total price of the line item.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        subtotal\_price
      </td>

      <td style={{ textAlign: "left" }}>
        double
      </td>

      <td style={{ textAlign: "left" }}>
        The price of the products after discounts but before shipping, taxes, and tips.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        coupon\_code
      </td>

      <td style={{ textAlign: "left" }}>
        string
      </td>

      <td style={{ textAlign: "left" }}>
        The coupon code that was used in the purchase.

        * Max length: 255 characters
        * Case sensitive
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        custom\_properties
      </td>

      <td style={{ textAlign: "left" }}>
        object
      </td>

      <td style={{ textAlign: "left" }}>
        An array of custom property objects.
      </td>
    </tr>
  </tbody>
</Table>

# Sibling pages

* [About common objects](https://docs.yotpo.com/docs/common-objects.md)
* [GTIN](https://docs.yotpo.com/docs/gtin.md)