PatchOrder
Purpose | Changing order fields without changing the order contents |
---|---|
Request type | asynchronous/synchronous |
Supported agent version, SH | WSA v2.8.5.7 |
PluggetSystemType | RKMid |
Request format
|
Parameter | Type | Mandatory | Description |
---|---|---|---|
taskType | string | + | Task type (PatchOrder) |
sync | Synchronous method call (either synchronous or asynchronous) | ||
|-timeout | int | - | Agent response timeout in seconds, default is 120 seconds |
|-objectId | int | + | Restaurant code in the licensing system |
orderGuid | guid | + | Order Guid in Keeper |
fields | array | + | Array: list of fields to change |
|- name | string | + | The name of the field to be changed. For a list of fields available for modification, see the table below |
|- value | string | + | New value of the field. Can be null – the old value is deleted |
List of fields available for update:
Name | Description |
---|---|
ChangeBackFrom | Amount for which change is required |
Comment | Comment to order |
Delivery.Courier.Name | Delivery courier name |
Delivery.Courier.Phone | Delivery courier phone number |
Delivery.Address | Delivery address |
Delivery.Address.Comment | Comment on the delivery address |
PayMethod | Payment method |
Response format
|
Parameter | Parameter type | Mandatory | Description |
---|---|---|---|
fields | array | + | Array: list of fields to change |
|- name | string | + | Name of the field being modified |
|- isSuccess | boolean | + | Field changed successfully/not updated (see error) |
|- error | string | - | Error description if field is not updated |
Example request
|
Example answer
|