SBReceiptLineItem

SBReceiptLineItem

This object represents a line item in a receipt.

AttributeDescriptionTypeRequired
idUnique identifier of the line itemintegerYes
productDetails of the product associated with the line itemSBReceiptItemProductNo
productIdIdentifier of the productintegerNo
variantIdIdentifier of the product variantintegerNo
variantDetails of the product variantSBProductVariantNo
priceUnit price of the productdecimalYes
quantityQuantity of products purchaseddecimalYes
totalDiscountsTotal discounts applied to the line itemSBMoneyNo
totalTaxesTotal taxes applied to the line itemSBMoneyNo
totalFeesTotal fees applied to the line itemSBMoneyNo
subTotalSubtotal before discounts and taxesSBMoneyYes
totalTotal amount after discounts and taxesSBMoneyYes
discountsList of discounts applied to the line itemSBReceiptItemDiscount[]No
taxesList of taxes applied to the line itemSBReceiptItemTax[]No
feesTotal fees applied to the line itemSBReceiptLineItemFee[]No

Exemple

{
  "product": {
    "id": 1,
    "name": "Example Product",
    "description": "This is an example product."
  },
  "productId": 1,
  "variantId": 2,
  "price": 19.99,
  "quantity": 3,
  "totalDiscounts": {
    "amount": 5.00,
    "currency": "USD"
  },
  "totalTaxes": {
    "amount": 2.00,
    "currency": "USD"
  },
  "subTotal": {
    "amount": 54.97,
    "currency": "USD"
  },
  "total": {
    "amount": 51.97,
    "currency": "USD"
  },
  "discounts": [],
  "taxes": [],
  "variant": {
    "id": 2,
    "name": "Example Variant",
    "additionalInfo": "This is an example variant."
  }
}