OrderReturnUpdate
The method updates orders returns already saved in the database.
Input parameters
Incoming as $_POST fields.
POST request:
returned data JSON:
Dane wyjściowe:
| orders_return_ids | string | Order Return IDs separated by a comma |
| update_type | string | Change type: "status" = order status update |
| update_value | string | Depending on update_type, status ID |
Outgoing data
Array fields that the method should return.
| counter | int | the 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
)
(
[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
)
(
[counter] => 3
)
Documentation of the shops data exchange protocol - baselinker.com