Documentation of the shops data exchange protocol - baselinker.com
Function list
Tests
ChangeLog
Remap Builder


OrderUpdate
The method updates orders already saved in the database.


Input parameters
Incoming as $_POST fields.
orders_idsstringOrder IDs separated by a comma
update_typestringChange type: "status" = order status update, "paid" = order was paid, "delivery_number" = set shipping number
update_valuestringDepending on update_type, status ID, posting number, or information about paying for the order (0 or 1)
delivery_method_namestringName of delivery method, available only when 'update_type' is 'delivery_number'
tracking_urlstringUrl to package tracking, available only when 'update_type' is 'delivery_number'



Outgoing data
Array fields that the method should return.
counterintthe number of orders in which the changes were made (even if the order remained the same as before)



Example:
Input data:
Array
(
    [order_ids] => 1234,1235,1236
    [update_type] => status
    [update_value] => sent
)

POST request:
order_ids=1234%2C1235%2C1236&update_type=status&update_value=sent


returned data JSON:
{"counter":3}

Dane wyjściowe:
Array
(
    [counter] => 3
)