Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 2.1 KB

File metadata and controls

21 lines (17 loc) · 2.1 KB

Voucherify.Model.OrdersUpdateRequestBody

Request body schema for PUT v1/orders/{orderId}.

Properties

Name Type Description Notes
SourceId string Unique source ID of an existing order that will be linked to the redemption of this request. For validation and redemption, if `source_id` is used with an existing order, the original order data will be used, like `items`, `amount`, and so on, not the one sent in the new request. [optional]
Status string 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]
InitialAmount 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]
DiscountAmount 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]
Items List<OrderItem> 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]
CreatedAt DateTimeOffset? Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format. [optional]
ReferrerId string Unique referrer ID. [optional]
Customer Customer [optional]
Referrer Referrer [optional]

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