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


OrderReturnUpdate
The method updates orders returns already saved in the database.


Input parameters
Incoming as $_POST fields.
orders_return_idsstringOrder Return IDs separated by a comma
update_typestringChange type: "status" = order status update
update_valuestringDepending on update_type, status ID



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



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

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


returned data JSON:
{"counter":3}

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