Skip to content
Get started

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.

ParametersExpand Collapse
CustomerOrderUpdateCustomerOrderParams parameters
required string storeNumber

The store the order belongs to.

Orders orders
required string OrderNumber
minLength1
Boolean? IsActive
Boolean? IsClaimed
Boolean? IsPicked
Boolean? IsRejected
IReadOnlyList<OrderLine>? OrderLines
required Long LineNumber
formatint64
required string ProductNumber
minLength1
string? Barcode
DateTimeOffset? DeliveryDate
formatdate-time
string? Description
Boolean IsPicked
Boolean? IsPickedFromWarehouse
DateTimeOffset? OrderingDatetime
formatdate-time
Double PickedQuantity
formatdouble
DateTimeOffset? PickupDate
formatdate-time
string? PreferredLocationCode
Double? Price
formatdouble
Double? Quantity
formatdouble
Int StockPool
formatint32
string? RejectionReasonCode
string? RejectionReasonCodeDescription
ReturnsExpand Collapse
class CustomerOrderUpdateCustomerOrderResponse:

Standard success response returned by mutation endpoints.

required Boolean Success

Indicates whether the operation completed successfully.

string? Data

Optional data payload returned by the operation.

string? Message

Human-readable message describing the result.

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."
}