POST api/AVALARA/CreateOrderPOST

Request Information

URI Parameters

None.

Body Parameters

OrderTrans
NameDescriptionTypeAdditional information
transaction_id

string

None.

transaction_date

string

None.

from_country

string

None.

from_zip

string

None.

from_state

string

None.

from_city

string

None.

from_street

string

None.

to_country

string

None.

to_zip

string

None.

to_state

string

None.

to_city

string

None.

to_street

string

None.

amount

decimal number

None.

shipping

decimal number

None.

sales_tax

decimal number

None.

LineItems

Collection of OrderLineItems

None.

Request Formats

application/json, text/json

Sample:
{
  "transaction_id": "sample string 1",
  "transaction_date": "sample string 2",
  "from_country": "sample string 3",
  "from_zip": "sample string 4",
  "from_state": "sample string 5",
  "from_city": "sample string 6",
  "from_street": "sample string 7",
  "to_country": "sample string 8",
  "to_zip": "sample string 9",
  "to_state": "sample string 10",
  "to_city": "sample string 11",
  "to_street": "sample string 12",
  "amount": 13.0,
  "shipping": 14.0,
  "sales_tax": 15.0,
  "LineItems": [
    {
      "id": 1,
      "quantity": 2,
      "product_identifier": "sample string 3",
      "description": "sample string 4",
      "unit_price": 5.0,
      "discount": 6.0,
      "sales_tax": 7.0
    },
    {
      "id": 1,
      "quantity": 2,
      "product_identifier": "sample string 3",
      "description": "sample string 4",
      "unit_price": 5.0,
      "discount": 6.0,
      "sales_tax": 7.0
    }
  ]
}

application/xml, text/xml

Sample:
<OrderTrans xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AvalaraWEBAPI.Controllers">
  <LineItems>
    <OrderLineItems>
      <description>sample string 4</description>
      <discount>6</discount>
      <id>1</id>
      <product_identifier>sample string 3</product_identifier>
      <quantity>2</quantity>
      <sales_tax>7</sales_tax>
      <unit_price>5</unit_price>
    </OrderLineItems>
    <OrderLineItems>
      <description>sample string 4</description>
      <discount>6</discount>
      <id>1</id>
      <product_identifier>sample string 3</product_identifier>
      <quantity>2</quantity>
      <sales_tax>7</sales_tax>
      <unit_price>5</unit_price>
    </OrderLineItems>
  </LineItems>
  <amount>13</amount>
  <from_city>sample string 6</from_city>
  <from_country>sample string 3</from_country>
  <from_state>sample string 5</from_state>
  <from_street>sample string 7</from_street>
  <from_zip>sample string 4</from_zip>
  <sales_tax>15</sales_tax>
  <shipping>14</shipping>
  <to_city>sample string 11</to_city>
  <to_country>sample string 8</to_country>
  <to_state>sample string 10</to_state>
  <to_street>sample string 12</to_street>
  <to_zip>sample string 9</to_zip>
  <transaction_date>sample string 2</transaction_date>
  <transaction_id>sample string 1</transaction_id>
</OrderTrans>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrderTrans'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>