Update Order

Updates the specified order by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.

Path Params
string
required

Unique Voucherify order ID or order source ID.

Body Params

Specify the parameters of the order that are to be updated.

string | null

Unique source ID of an existing order that will be linked to the redemption of this request.

string

The order status.

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.

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.

integer

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).

items
array of objects

Array of items applied to the order. It can include up to 500 items.

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.

date-time

Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format.

string | null

Unique referrer ID.

customer
object
referrer
object
Response

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json