UpdateOrder

Used to update an order. Each of the fields is optional. Omitting a field will leave it unchanged.

Fields

FieldDescription
customerid
int

New customer ID

Example value:3
customfields
map<string, mixed>

Change custom field values

Example value:{ "c_mykey": 123.000000 }
deliveryaddress

Delivery address

Example value:{ "city": "Leuven", "street1": "Main street" }
deliveryscenarioid
int

New delivery scenario ID

Example value:2
expiryts
string

Expiry timestamp, as string in ISO 8601 format. Cannot be in the past.

Example value:"2017-03-27 15:30:00"
ordercosts

Set manual order costs. Setting the amount to 0 will remove the order cost from the order.

Example value:[ { "amount": 2.500000, "servicechargedefinitionid": 1 }, { "amount": 3.000000, "servicechargedefinitionid": 2 } ]
paymentscenarioid
int

New payment scenario ID

Example value:3
rappelts
string

Rappel timestamp, as string in ISO 8601 format. Cannot be in the past.

Example value:"2017-03-27 15:30:00"

Example

 1{
 2    "customerid": 3,
 3    "customfields": {
 4        "c_mykey": 123.000000
 5    },
 6    "deliveryaddress": {
 7        "city": "Leuven",
 8        "street1": "Main street"
 9    },
10    "deliveryscenarioid": 2,
11    "expiryts": "2017-03-27 15:30:00",
12    "ordercosts": [
13        {
14            "amount": 2.500000,
15            "servicechargedefinitionid": 1
16        },
17        {
18            "amount": 3.000000,
19            "servicechargedefinitionid": 2
20        }
21    ],
22    "paymentscenarioid": 3,
23    "rappelts": "2017-03-27 15:30:00"
24}