Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 3.18 KB

File metadata and controls

28 lines (22 loc) · 3.18 KB

SimpleOrder

Order information.

Properties

Name Type Description Notes
id str Unique identifier of an existing order that will be linked to the redemption of this request. [optional]
source_id str Unique source identifier of an existing order that will be linked to the redemption of this request. [optional]
status str The order status. [optional]
customer_id str Unique customer identifier of the customer making the purchase. The ID is assigned by Voucherify. [optional]
referrer_id str Unique identifier of the referrer assigned by Voucherify. [optional]
amount int 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. [optional]
discount_amount int Sum of all order-level discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). [optional]
applied_discount_amount int This field shows the order-level discount applied. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). [optional]
items_discount_amount int Sum of all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). [optional]
items_applied_discount_amount int Sum of all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `sum(items, i => i.applied_discount_amount)` [optional]
total_discount_amount int Sum of all order-level AND all product-specific discounts applied to the order. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). [optional]
total_applied_discount_amount int Sum of all order-level AND all product-specific discounts applied in a particular request. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount` [optional]
total_amount int Order amount after undoing all the discounts through the rollback redemption. It is expressed as an integer in the smallest currency unit (e.g. 100 cents for $1.00). [optional]
items List[SimpleOrderItem] Array of items applied to the order. It can include up to 500 items. [optional]
metadata object A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas. [optional]
object str The type of the object represented by JSON. [optional] [default to 'order']

[Back to Model list] [Back to API list] [Back to README]