POST api/order/{id}/merge

Merge a list of orders into a specified order

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Order identifier

globally unique identifier

Required

Body Parameters

Order Merge details

OrderMerge
NameDescriptionTypeAdditional information
OrderGuid

Collection of byte

None.

OrderIdentifier

globally unique identifier

None.

MergeOrderIdentifiers

Collection of globally unique identifier

None.

DuplicateMergeMode

What to do with order quantities if the selected orders both have the same products

MergeMode

None.

Request Formats

application/json, text/json

Sample:
{
  "orderGuid": "/d83mMOw5kOFdO1bo7ypeQ==",
  "orderIdentifier": "9837dffd-b0c3-43e6-8574-ed5ba3bca979",
  "mergeOrderIdentifiers": [
    "d2fc9ce7-de5e-4811-9f65-25b4efe921ec",
    "d14a6591-5ed7-4d96-891a-168bbd86c55e"
  ],
  "duplicateMergeMode": 2
}

application/xml, text/xml

Sample:
<OrderMerge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Orders">
  <DuplicateMergeMode>2</DuplicateMergeMode>
  <MergeOrderIdentifiers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>d2fc9ce7-de5e-4811-9f65-25b4efe921ec</d2p1:guid>
    <d2p1:guid>d14a6591-5ed7-4d96-891a-168bbd86c55e</d2p1:guid>
  </MergeOrderIdentifiers>
  <OrderGuid>/d83mMOw5kOFdO1bo7ypeQ==</OrderGuid>
  <OrderIdentifier>9837dffd-b0c3-43e6-8574-ed5ba3bca979</OrderIdentifier>
</OrderMerge>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.