API call that updates the order values

Since pixi version: AVA 17.09 (8.4.33.31482) Additional notes: To identify the order that needs to be updated one of the "filter" conditions need to be provided.

    **Important:**
    Only orders that have status "OPEN, HOLD" can be updated.
    When all orderlines are on invoice/s the order can not be updated anymore.
    
    **Parameter @ShipDate**
    - When you send empty as string, existing value in OrderHeader will be deleted (set to NULL).
    - When you send as NULL, existing value in OrderHeader will not be changed.
    
    **Result messages:**
    
     - Success - Order with OrderNr: 138288 was updated. Error - Parameter
     - OrderNr/OrderNrExternal is mandatory parameter and needs to be
       provided.
     - Error - Order with OrderNr: -100 (XYZ) does not exist.
     - Error - Order with OrderNr: 138288 (ABS_279300286) can not be updated
       anymore.|

Request

POST https://apigateway.descartes.com/tms/pixi/pixiUpdateOrder

Request body

Name Type Required Description
OrderNr integer false

Filter: pixi order number

Type: int

Default value: NULL

Example: 123

Available from: AVA 17.09 (8.4.33.31482)

ShipDate string false

Preferred shipping date

Type: datetime

Default value: NULL

Example: YYYY-MM-DD hh:mm:ss

Available from: AVA 17.09 (8.4.33.31482)

ShopNote string false

Note received with this order from the shop (aka ShopComment).

Type: varchar(-1)

Default value: NULL

Example: abc

Available from: 22.02 (22.2.0.64904)

ShipCosts number false

Shipping costs for the order

Type: money

Default value: NULL

Example: 9.99

Available from: AVA 17.09 (8.4.33.31482)

VoucherID string false

ID of the voucher (must be provided with Voucher Amount)

Type: varchar(50)

Default value: NULL

Example: abc

Available from: 22.02 (22.2.0.64904)

PaymentType string false

Payment type code

Type: varchar(1)

Default value: NULL

Example: K

Available from: 22.02 (22.2.0.64904)

VoucherAmount number false

Amount covered with the associated voucher (cannot be provided without VoucherID)

Type: money

Default value: NULL

Example: 5.00

Available from: 22.02 (22.2.0.64904)

AddressRemarks string false

Details for delivery to end customer

Type: varchar(255)

Default value: NULL

Example: abc

Available from: 22.06 (22.6.0.28129)

OrderNrExternal string false

Filter: Shop order number

Type: varchar(50)

Default value: NULL

Example: abc123

Available from: AVA 17.09 (8.4.33.31482)


Response

1. Update status response

Name Type Description
Status string

Update status (Error/Success)

Type: varchar

Available from: 25.06 (25.6.0.58802)

Message string

Detail status description

Type: varchar

Available from: 25.06 (25.6.0.58802)