Request body schema for POST v1/orders
.
Name | Type | Description | Notes |
---|---|---|---|
id | str | Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request. | [optional] |
source_id | str | Unique source ID of an existing order that will be linked to the redemption of this request. | [optional] |
status | str | The order status. | [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] |
initial_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. | [optional] |
items | List[OrderItem] | Array of items applied to the order. It can include up 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] |
created_at | datetime | Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format. | [optional] |
referrer_id | str | Unique referrer ID. | [optional] |
customer | Customer | [optional] | |
referrer | Referrer | [optional] |