idstring | Unique identifier of the order line item. |
sku_idstring | Unique identifier of the SKU. It is assigned by Voucherify. |
product_idstring | Unique identifier of the product. It is assigned by Voucherify. |
related_objectstring | Used along with the source_id property, can be set to either sku or product.Available values: product, sku |
source_idstring | The merchant’s product/SKU ID (if it is different from the Voucherify product/SKU ID). It is useful in the integration between multiple systems. It can be an ID from an eCommerce site, a database, or a third-party service. |
quantityinteger | The quantity of the particular item in the cart. |
discount_quantityinteger | Number of dicounted items. |
initial_quantityinteger | A positive integer in the smallest unit quantity representing the total amount of the order; this is the sum of the order items’ quantity. |
amountinteger | The total amount of the order item (price * quantity). |
discount_amountinteger | Sum of all order-item-level discounts applied to the order. |
applied_discount_amountinteger | This field shows the order-level discount applied. |
applied_discount_quantityinteger | Number of the discounted items applied in the transaction. |
applied_quantityinteger | Quantity of items changed by the application of a new quantity items. It can be positive when an item is added or negative if an item is replaced. |
applied_quantity_amountinteger | Amount for the items changed by the application of a new quantity items. It can be positive when an item is added or negative if an item is replaced. |
initial_amountinteger | A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items’ amounts. |
priceinteger | Unit price of an item. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00. |
subtotal_amountinteger | Final order item amount after the applied item-level discount. If there are no item-level discounts applied, this item is equal to the amount.subtotal_amount=amount-applied_discount_amount |
productobject | An object containing details of the related product.Attributes Descriptionidstring
A unique identifier that represents the product and is assigned by Voucherify.
source_idstring
The merchant’s product ID (if it is different than Voucherify’s product ID). It is really useful in case of integration between multiple systems. It can be an ID from an eCommerce site, a database or a 3rd party service.
overrideboolean
The override set to true is used to store the product information in the system. If the product does not exist, it will be created with a source_id; if it does exist, the provided values for the name, price, and metadata will replace those already stored in the system.
namestring
Product name.
metadataobject
A set of custom key/value pairs that you can attach to a product. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.
pricenumber
Product price. A positive integer in the smallest currency unit (e.g. 100 cents for $1.00). |
skuobject | An object containing details of the related SKU.Attributes Descriptionidstring
A unique identifier that represents the SKU and is assigned by Voucherify.
source_idstring
The merchant’s SKU ID (if it is different than Voucherify’s SKU ID). It is really useful in case of integration between multiple systems. It can be an ID from an eCommerce site, a database or a 3rd party service.
overrideboolean
The override set to true is used to store the product information in the system. If the product does not exist, it will be created with a source_id; if it does exist, the provided values for the name, price, and metadata will replace those already stored in the system.
skustring
The SKU name.
pricenumber
SKU price. A positive integer in the smallest currency unit (e.g. 100 cents for $1.00).
metadataobject
A set of custom key/value pairs that you can attach to an SKU. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections. |
objectstring | The type of the object represented by JSON.Available values: order_item |
metadataobject | A set of custom key/value pairs that you can attach to an item object. It can be useful for storing additional information about the item in a structured format. It can be used to define business validation rules or discount formulas. |