MediaClip - POST

Create a new order using a raw XML or JSON request. Requries Header "StoreRole" On Success: 200 Created Or 417 Expectation Failed if one or more of the items failed to import.

api/{role}/MediaClip

Request Information

PropertyNoteTypeInfo
role string None

Model

PropertyNoteTypeInfo
OrderRequestHeader

Order Request Header

MediaClipOrderRequestHeaderDTO Required
ItemOut

Item Out

Collection of MediaClipItemOutDTO Required

Request Formats

application/json, text/json

{
  "orderRequestHeader": {
    "orderId": "test 1",
    "orderDate": "2017-12-11T03:05:03.4825727-08:00",
    "shipTo": {
      "address": {
        "postalAddress": {
          "deliverTo": "test 1",
          "street1": "test 2",
          "street2": "test 3",
          "city": "test 4",
          "state": "test 5",
          "postalCode": "test 6",
          "country": {
            "isoCountryCode": "test 1",
            "value": "test 2"
          }
        },
        "email": {
          "value": "test 1"
        },
        "phone": {
          "number": "test 1"
        }
      },
      "carrierIdentifier": [
        {
          "domain": "test 1",
          "value": "test 2"
        },
        {
          "domain": "test 1",
          "value": "test 2"
        }
      ]
    },
    "billTo": {
      "address": {
        "postalAddress": {
          "deliverTo": "test 1",
          "street1": "test 2",
          "street2": "test 3",
          "city": "test 4",
          "state": "test 5",
          "postalCode": "test 6",
          "country": {
            "isoCountryCode": "test 1",
            "value": "test 2"
          }
        },
        "email": {
          "value": "test 1"
        },
        "phone": {
          "number": "test 1"
        }
      }
    },
    "shipping": {
      "money": {
        "currency": "test 1",
        "value": 2.0
      },
      "description": {
        "value": "test 1"
      }
    },
    "contact": {
      "idReference": [
        {
          "identifier": "test 1",
          "domain": "test 2"
        },
        {
          "identifier": "test 1",
          "domain": "test 2"
        }
      ]
    }
  },
  "itemOut": [
    {
      "lineNumber": 1,
      "quantity": 2,
      "itemId": {
        "buyerPartId": "test 1",
        "supplierPartId": "test 2",
        "supplierPartAuxiliaryId": "test 3",
        "idReference": [
          {
            "identifier": "test 1",
            "domain": "test 2"
          },
          {
            "identifier": "test 1",
            "domain": "test 2"
          }
        ]
      },
      "itemDetail": {
        "unitPrice": {
          "money": {
            "currency": "test 1",
            "value": 2.0
          }
        },
        "description": {
          "value": "test 1"
        }
      },
      "extrinsic": [
        {
          "name": "test 1",
          "value": "test 2"
        },
        {
          "name": "test 1",
          "value": "test 2"
        }
      ]
    },
    {
      "lineNumber": 1,
      "quantity": 2,
      "itemId": {
        "buyerPartId": "test 1",
        "supplierPartId": "test 2",
        "supplierPartAuxiliaryId": "test 3",
        "idReference": [
          {
            "identifier": "test 1",
            "domain": "test 2"
          },
          {
            "identifier": "test 1",
            "domain": "test 2"
          }
        ]
      },
      "itemDetail": {
        "unitPrice": {
          "money": {
            "currency": "test 1",
            "value": 2.0
          }
        },
        "description": {
          "value": "test 1"
        }
      },
      "extrinsic": [
        {
          "name": "test 1",
          "value": "test 2"
        },
        {
          "name": "test 1",
          "value": "test 2"
        }
      ]
    }
  ]
}

application/xml, text/xml

<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FOTS.DTO">
  <ItemOut xmlns:d2p1="http://schemas.datacontract.org/2004/07/">
    <d2p1:ItemOut>
      <d2p1:Extrinsic>
        <d2p1:Extrinsic>
          <d2p1:Name>test 1</d2p1:Name>
          <d2p1:Value>test 2</d2p1:Value>
        </d2p1:Extrinsic>
        <d2p1:Extrinsic>
          <d2p1:Name>test 1</d2p1:Name>
          <d2p1:Value>test 2</d2p1:Value>
        </d2p1:Extrinsic>
      </d2p1:Extrinsic>
      <d2p1:ItemDetail>
        <d2p1:Description>
          <d2p1:Value>test 1</d2p1:Value>
        </d2p1:Description>
        <d2p1:UnitPrice>
          <d2p1:Money>
            <d2p1:Currency>test 1</d2p1:Currency>
            <d2p1:Value>2</d2p1:Value>
          </d2p1:Money>
        </d2p1:UnitPrice>
      </d2p1:ItemDetail>
      <d2p1:ItemId>
        <d2p1:BuyerPartId>test 1</d2p1:BuyerPartId>
        <d2p1:IdReference>
          <d2p1:IdReference>
            <d2p1:Domain>test 2</d2p1:Domain>
            <d2p1:Identifier>test 1</d2p1:Identifier>
          </d2p1:IdReference>
          <d2p1:IdReference>
            <d2p1:Domain>test 2</d2p1:Domain>
            <d2p1:Identifier>test 1</d2p1:Identifier>
          </d2p1:IdReference>
        </d2p1:IdReference>
        <d2p1:SupplierPartAuxiliaryId>test 3</d2p1:SupplierPartAuxiliaryId>
        <d2p1:SupplierPartId>test 2</d2p1:SupplierPartId>
      </d2p1:ItemId>
      <d2p1:LineNumber>1</d2p1:LineNumber>
      <d2p1:Quantity>2</d2p1:Quantity>
    </d2p1:ItemOut>
    <d2p1:ItemOut>
      <d2p1:Extrinsic>
        <d2p1:Extrinsic>
          <d2p1:Name>test 1</d2p1:Name>
          <d2p1:Value>test 2</d2p1:Value>
        </d2p1:Extrinsic>
        <d2p1:Extrinsic>
          <d2p1:Name>test 1</d2p1:Name>
          <d2p1:Value>test 2</d2p1:Value>
        </d2p1:Extrinsic>
      </d2p1:Extrinsic>
      <d2p1:ItemDetail>
        <d2p1:Description>
          <d2p1:Value>test 1</d2p1:Value>
        </d2p1:Description>
        <d2p1:UnitPrice>
          <d2p1:Money>
            <d2p1:Currency>test 1</d2p1:Currency>
            <d2p1:Value>2</d2p1:Value>
          </d2p1:Money>
        </d2p1:UnitPrice>
      </d2p1:ItemDetail>
      <d2p1:ItemId>
        <d2p1:BuyerPartId>test 1</d2p1:BuyerPartId>
        <d2p1:IdReference>
          <d2p1:IdReference>
            <d2p1:Domain>test 2</d2p1:Domain>
            <d2p1:Identifier>test 1</d2p1:Identifier>
          </d2p1:IdReference>
          <d2p1:IdReference>
            <d2p1:Domain>test 2</d2p1:Domain>
            <d2p1:Identifier>test 1</d2p1:Identifier>
          </d2p1:IdReference>
        </d2p1:IdReference>
        <d2p1:SupplierPartAuxiliaryId>test 3</d2p1:SupplierPartAuxiliaryId>
        <d2p1:SupplierPartId>test 2</d2p1:SupplierPartId>
      </d2p1:ItemId>
      <d2p1:LineNumber>1</d2p1:LineNumber>
      <d2p1:Quantity>2</d2p1:Quantity>
    </d2p1:ItemOut>
  </ItemOut>
  <OrderRequestHeader>
    <BillTo xmlns:d3p1="http://schemas.datacontract.org/2004/07/">
      <d3p1:Address>
        <d3p1:Email>
          <d3p1:Value>test 1</d3p1:Value>
        </d3p1:Email>
        <d3p1:Phone>
          <d3p1:Number>test 1</d3p1:Number>
        </d3p1:Phone>
        <d3p1:PostalAddress>
          <d3p1:City>test 4</d3p1:City>
          <d3p1:Country>
            <d3p1:ISOCountryCode>test 1</d3p1:ISOCountryCode>
            <d3p1:Value>test 2</d3p1:Value>
          </d3p1:Country>
          <d3p1:DeliverTo>test 1</d3p1:DeliverTo>
          <d3p1:PostalCode>test 6</d3p1:PostalCode>
          <d3p1:State>test 5</d3p1:State>
          <d3p1:Street1>test 2</d3p1:Street1>
          <d3p1:Street2>test 3</d3p1:Street2>
        </d3p1:PostalAddress>
      </d3p1:Address>
    </BillTo>
    <Contact xmlns:d3p1="http://schemas.datacontract.org/2004/07/">
      <d3p1:IdReference>
        <d3p1:IdReference>
          <d3p1:Domain>test 2</d3p1:Domain>
          <d3p1:Identifier>test 1</d3p1:Identifier>
        </d3p1:IdReference>
        <d3p1:IdReference>
          <d3p1:Domain>test 2</d3p1:Domain>
          <d3p1:Identifier>test 1</d3p1:Identifier>
        </d3p1:IdReference>
      </d3p1:IdReference>
    </Contact>
    <OrderDate>2017-12-11T03:05:03.4825727-08:00</OrderDate>
    <OrderId>test 1</OrderId>
    <ShipTo xmlns:d3p1="http://schemas.datacontract.org/2004/07/">
      <d3p1:Address>
        <d3p1:Email>
          <d3p1:Value>test 1</d3p1:Value>
        </d3p1:Email>
        <d3p1:Phone>
          <d3p1:Number>test 1</d3p1:Number>
        </d3p1:Phone>
        <d3p1:PostalAddress>
          <d3p1:City>test 4</d3p1:City>
          <d3p1:Country>
            <d3p1:ISOCountryCode>test 1</d3p1:ISOCountryCode>
            <d3p1:Value>test 2</d3p1:Value>
          </d3p1:Country>
          <d3p1:DeliverTo>test 1</d3p1:DeliverTo>
          <d3p1:PostalCode>test 6</d3p1:PostalCode>
          <d3p1:State>test 5</d3p1:State>
          <d3p1:Street1>test 2</d3p1:Street1>
          <d3p1:Street2>test 3</d3p1:Street2>
        </d3p1:PostalAddress>
      </d3p1:Address>
      <d3p1:CarrierIdentifier>
        <d3p1:CarrierIdentifier>
          <d3p1:Domain>test 1</d3p1:Domain>
          <d3p1:Value>test 2</d3p1:Value>
        </d3p1:CarrierIdentifier>
        <d3p1:CarrierIdentifier>
          <d3p1:Domain>test 1</d3p1:Domain>
          <d3p1:Value>test 2</d3p1:Value>
        </d3p1:CarrierIdentifier>
      </d3p1:CarrierIdentifier>
    </ShipTo>
    <Shipping xmlns:d3p1="http://schemas.datacontract.org/2004/07/">
      <d3p1:Description>
        <d3p1:Value>test 1</d3p1:Value>
      </d3p1:Description>
      <d3p1:Money>
        <d3p1:Currency>test 1</d3p1:Currency>
        <d3p1:Value>2</d3p1:Value>
      </d3p1:Money>
    </Shipping>
  </OrderRequestHeader>
</Order>

Response Information

PropertyNoteTypeInfo
FulfillerData MediaClipOrderImportFulfillerDataDTO None

Response Formats

application/json, text/json

Sample not available.