POST api/Amazon/RequestOrder

Request Information

URI Parameters

None.

Body Parameters

AmazonOrderRequest
NameDescriptionTypeAdditional information
DeliveryAddress

AmazonAddress

None.

DeliveryContact

AmazonContact

None.

ProductList

Collection of AmazonProduct

None.

TotalAmount

decimal number

None.

SubTotalAmount

decimal number

None.

DeliveryAmount

decimal number

None.

TaxAmount

decimal number

None.

OtherChargeAmount

decimal number

None.

ReferenceId

string

None.

deliveryTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "DeliveryAddress": {
    "address": "sample string 1",
    "city": "sample string 2",
    "state": "sample string 3",
    "zip": "sample string 4",
    "floor": "sample string 5",
    "suite": "sample string 6",
    "notes": "sample string 7"
  },
  "DeliveryContact": {
    "firstName": "sample string 1",
    "lastName": "sample string 2",
    "company": "sample string 3",
    "phone": "sample string 4",
    "phoneExt": "sample string 5"
  },
  "ProductList": [
    {
      "productId": 1,
      "productName": "sample string 2",
      "productPrice": 3.0,
      "quantity": 4
    },
    {
      "productId": 1,
      "productName": "sample string 2",
      "productPrice": 3.0,
      "quantity": 4
    }
  ],
  "TotalAmount": 1.0,
  "SubTotalAmount": 2.0,
  "DeliveryAmount": 3.0,
  "TaxAmount": 4.0,
  "OtherChargeAmount": 5.0,
  "ReferenceId": "sample string 6",
  "deliveryTime": "2024-11-12T07:21:04.2748023-08:00"
}

text/html

Sample:
{"DeliveryAddress":{"address":"sample string 1","city":"sample string 2","state":"sample string 3","zip":"sample string 4","floor":"sample string 5","suite":"sample string 6","notes":"sample string 7"},"DeliveryContact":{"firstName":"sample string 1","lastName":"sample string 2","company":"sample string 3","phone":"sample string 4","phoneExt":"sample string 5"},"ProductList":[{"productId":1,"productName":"sample string 2","productPrice":3.0,"quantity":4},{"productId":1,"productName":"sample string 2","productPrice":3.0,"quantity":4}],"TotalAmount":1.0,"SubTotalAmount":2.0,"DeliveryAmount":3.0,"TaxAmount":4.0,"OtherChargeAmount":5.0,"ReferenceId":"sample string 6","deliveryTime":"2024-11-12T07:21:04.2748023-08:00"}

application/xml, text/xml

Sample:
<AmazonOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Specialtys.DTO.Request">
  <DeliveryAddress>
    <address>sample string 1</address>
    <city>sample string 2</city>
    <floor>sample string 5</floor>
    <notes>sample string 7</notes>
    <state>sample string 3</state>
    <suite>sample string 6</suite>
    <zip>sample string 4</zip>
  </DeliveryAddress>
  <DeliveryAmount>3</DeliveryAmount>
  <DeliveryContact>
    <company>sample string 3</company>
    <firstName>sample string 1</firstName>
    <lastName>sample string 2</lastName>
    <phone>sample string 4</phone>
    <phoneExt>sample string 5</phoneExt>
  </DeliveryContact>
  <OtherChargeAmount>5</OtherChargeAmount>
  <ProductList>
    <AmazonProduct>
      <productId>1</productId>
      <productName>sample string 2</productName>
      <productPrice>3</productPrice>
      <quantity>4</quantity>
    </AmazonProduct>
    <AmazonProduct>
      <productId>1</productId>
      <productName>sample string 2</productName>
      <productPrice>3</productPrice>
      <quantity>4</quantity>
    </AmazonProduct>
  </ProductList>
  <ReferenceId>sample string 6</ReferenceId>
  <SubTotalAmount>2</SubTotalAmount>
  <TaxAmount>4</TaxAmount>
  <TotalAmount>1</TotalAmount>
  <deliveryTime>2024-11-12T07:21:04.2748023-08:00</deliveryTime>
</AmazonOrderRequest>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.