Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.49 KB

Order.md

File metadata and controls

32 lines (20 loc) · 1.49 KB

Order

Order information.

Properties

Name Type Description
id String Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request.
sourceId String Unique source ID of an existing order that will be linked to the redemption of this request.
status StatusEnum The order status.
amount Integer 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.
initialAmount Integer 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.
discountAmount Integer Sum of all order-level discounts applied to the order.
items List<OrderItem> Array of items applied to the order. It can include up 500 items.
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.

Enum: StatusEnum

Name Value
CREATED "CREATED"
PAID "PAID"
CANCELED "CANCELED"
FULFILLED "FULFILLED"