Update Customer Order
CustomerOrderUpdateCustomerOrderResponse CustomerOrders.UpdateCustomerOrder(CustomerOrderUpdateCustomerOrderParamsparameters, CancellationTokencancellationToken = default)
PUT/api/v2/public/stores/{store_number}/orders/customerorder
Updates an existing customer order and its lines in one store. Use it to change quantities or status after the order was created, rather than deleting and recreating it.
Update Customer Order
CustomerOrderUpdateCustomerOrderParams parameters = new()
{
StoreNumber = "store_number"
};
var response = await client.CustomerOrders.UpdateCustomerOrder(parameters);
Console.WriteLine(response);{
"success": true,
"data": "data",
"message": "message"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}Returns Examples
{
"success": true,
"data": "data",
"message": "message"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}