line_item
A line in a cart, or order. Each line item represents a product variant.
Properties | Type | Description |
|---|---|---|
| string from a set of values, refer to allocation_method values | Purchase limit rules. |
| string from a set of values, refer to allow_oversold values | Whether to buy at the selling price after the sale exceeds. |
| Returns | |
| The cart id of the parent cart of the line item. | |
| The compare at price of the line item. | |
| The customary discount ratio of the line item. | |
| The customary saved price of the line item. | |
| The barcode of the line item's variant. | |
| an array of discount_application | The discount applications for the line item. |
| The id of the discount application of the line item. | |
| The discount ratio of the line item. | |
| The discount price of the line item. | |
| The sales of the discount of the line item's variant. | |
| The discount saved price of the line item. | |
| The stock of the discount of the line item's variant. | |
| The discount total of the line item. | |
| A timestamp of the end of the discount. | |
| The combined price, in the currency's subunit, of all of the items in the line item. This includes any line-level discounts. The value is equal to | |
| The price of the line item in the currency's subunit. This includes any line-level discounts. The value is output in the customer's local (presentment) currency. | |
| The ID of the line item. | |
| The image of the line item's variant. | |
| The inventory quantity of the line item's variant. | |
| The combined price of the line item. | |
| Returns | |
| The note of the line item. | |
| an array of variant_option | The values of the line item's variant of the product option. |
| The original price of the line item. | |
| The price of the line item. | |
| The handle of the line item's product. | |
| The ID of the line item's product. | |
| an array of string | The tags of the line item's product. |
| The title of the line item's product. | |
| The URL of the line item's product. | |
| The properties of the line item. You can add, or allow customers to add, custom information to a line item by the Product options app. | |
| Returns | |
| The quantity of the line item. | |
| Returns | |
| The retail price of the line item's variant in the currency's subunit.. | |
| The saved price of the line item. | |
| The SKU of the line item's variant. | |
| A timestamp of the start of the discount. | |
| The store id. | |
| Returns | |
| Returns | |
| The ID of the line item's variant. | |
| The title of the line item's variant. | |
| The vendor of the line item's product. | |
| The vendor URL of the line item's product. | |
| The weight of the line item's variant. | |
| The weight unit of the line item's variant. | |
| The wholesale price of the line item's variant. |
allow_oversold values
| Possible values | Description |
|---|---|
| check | Buy at selling price after oversold |
| uncheck | not oversell |
allocation_method values
| Possible values | Description |
|---|---|
| all | Purchase limit specified per person per activity. |
| each | Each person is limited to purchasing the specified quantity of each item. |
| none | No limit. |
{
"id": "298049_1825cbb82902c53fdc4e12283829e832",
"properties": "",
"note": "",
"variant_id": "4a3d825c-2fac-4f72-a68b-b8604b0935c4",
"product_id": "b1ab6324-ae4f-4cca-907e-18af16839447",
"quantity": "1",
"discount_id": "65c00d9b-060c-4206-a2d8-f2971cacee43",
"limit_time": -1,
"limit_buy": 0,
"user_limit_buy": -1,
"discount_sales": 1,
"discount_sales_rate": "1",
"discount_stock": 87,
"ends_at": -1,
"starts_at": 1682405275,
"allow_oversold": "uncheck",
"allocation_method": "none",
"price": "205.2",
"compare_at_price": "228",
"discount_price": "205.2",
"customary_saved_price": "22.8",
"customary_off_ratio": 10,
"discount_saved_price": "22.8",
"discount_off_ratio": "10",
"use_before_price": false,
"before_price": "188",
"title": "促销",
"trunk_price": "0",
"total_price": "0",
"inventory_tracking": true,
"inventory_policy": "deny",
"inventory_quantity": 87,
"cart_id": "298049",
"store_id": "7126",
"user_id": "",
"user_sign": "8f7be7ef-367f-473c-91b6-b32a75971450",
"created_at": "2023-07-06 14:09:48",
"updated_at": "2023-07-06 14:09:48",
"custom": false,
"parts_price": null,
"variant_title": "pink",
"product_title": "Sale Squared Sunglasses ",
"product_handle": "sale-squared-sunglasses",
"product_tags": [
"Color_Lightcoral",
"Location_Alabama",
"Price_$200-$300"
],
"published": true,
"published_at": "2022-08-11T08:15:07Z",
"product_url": "/products/sale-squared-sunglasses",
"available": true,
"available_quantity": 87,
"cost_price": "0.00",
"weight": "0.00",
"weight_unit": "kg",
"sku": "",
"spu": "",
"vendor": "Nero Theme Fashion",
"vendor_url": "",
"taxable": false,
"requires_shipping": true,
"barcode": "",
"mixed_wholesale": false,
"tax_code": "",
"retail_price": "0.00",
"product_type": "",
"image": {
"src": "//cdn.shoplazza.com/d8217e1e2e216cd8b71b1035bde035ec.jpeg",
"path": "d8217e1e2e216cd8b71b1035bde035ec.jpeg",
"width": 1280,
"height": 1710,
"alt": ""
},
"options": [
{
"name": "Color",
"value": "pink"
}
],
"wholesale_price": [
{
"min_quantity": 1,
"price": "205.20"
}
],
"discount_applications": [
{
"type": "discount_flashsale",
"subtype": "discount_flashsale",
"discount_id": "65c00d9b-060c-4206-a2d8-f2971cacee43",
"title": "促销",
"value": "",
"discount_type": "",
"value_type": "",
"allocation_method": "",
"target_selection": "",
"target_type": "",
"total_discount_amount": "0",
"discount_amount": "0",
"is_free_gift": false,
"icon": "//cdn.shoplazza.com/oss/operation/372e6ab307143855fbd0ad3d28568d1e.svg"
}
],
"saved_price": 22.8,
"line_price": "205.20",
"original_line_price": 228,
"flashsale_tip": false,
"discount_info": {
"id": "298049",
"variant_id": "4a3d825c-2fac-4f72-a68b-b8604b0935c4",
"product_id": "b1ab6324-ae4f-4cca-907e-18af16839447",
"quantity": 1,
"discount_id": "65c00d9b-060c-4206-a2d8-f2971cacee43",
"limit_time": -1,
"limit_buy": 0,
"user_limit_buy": -1,
"discount_sales": 1,
"discount_sales_rate": "1",
"discount_stock": 87,
"ends_at": -1,
"starts_at": 1682405275,
"allow_oversold": "uncheck",
"allocation_method": "none",
"price": "205.2",
"compare_at_price": "228",
"discount_price": "205.2",
"customary_saved_price": "22.8",
"customary_off_ratio": "10",
"discount_saved_price": "22.8",
"discount_off_ratio": "10",
"use_before_price": false,
"before_price": "188",
"title": "促销",
"trunk_price": "0",
"total_price": "0",
"inventory_tracking": true,
"inventory_policy": "deny",
"inventory_quantity": 87
},
"item_id": "298049",
"can_buy": true,
"discount_total": "0.00",
"final_line_price": "205.20",
"final_price": "205.20"
}Updated 26 days ago
