POST api/Invoice

Request Information

URI Parameters

None.

Body Parameters

Altai.Web.Services.Models.Invoice
NameDescriptionTypeAdditional information
ShoppingCartId

System.String

None.

BalanceDue

System.Decimal

None.

TotalAmount

System.Decimal

None.

Number

System.String

None.

Id

System.String

None.

Date

System.String

None.

StatusReason

System.Int32

None.

BillToAddress

Altai.Web.Services.Models.CheckoutAddress

None.

ShipToAddress

Altai.Web.Services.Models.CheckoutAddress

None.

Request Formats

application/json, text/json

Sample:
{
  "ShoppingCartId": "sample string 1",
  "BalanceDue": 2.0,
  "TotalAmount": 3.0,
  "Number": "sample string 4",
  "Id": "sample string 5",
  "Date": "sample string 6",
  "StatusReason": 7,
  "BillToAddress": {
    "Name": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "EmailAddress": "sample string 4",
    "Telephone": "sample string 5",
    "Address": {
      "Id": "sample string 1",
      "Street1": "sample string 2",
      "Street2": "sample string 3",
      "City": "sample string 4",
      "StateOrProvince": "sample string 5",
      "PostalCode": "sample string 6",
      "Country": "sample string 7",
      "AddressType": "sample string 8"
    }
  },
  "ShipToAddress": {
    "Name": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "EmailAddress": "sample string 4",
    "Telephone": "sample string 5",
    "Address": {
      "Id": "sample string 1",
      "Street1": "sample string 2",
      "Street2": "sample string 3",
      "City": "sample string 4",
      "StateOrProvince": "sample string 5",
      "PostalCode": "sample string 6",
      "Country": "sample string 7",
      "AddressType": "sample string 8"
    }
  }
}

application/xml, text/xml

Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Altai.Web.Services.Models">
  <BalanceDue>2</BalanceDue>
  <BillToAddress>
    <Address>
      <AddressType>sample string 8</AddressType>
      <City>sample string 4</City>
      <Country>sample string 7</Country>
      <Id>sample string 1</Id>
      <PostalCode>sample string 6</PostalCode>
      <StateOrProvince>sample string 5</StateOrProvince>
      <Street1>sample string 2</Street1>
      <Street2>sample string 3</Street2>
    </Address>
    <EmailAddress>sample string 4</EmailAddress>
    <FirstName>sample string 2</FirstName>
    <LastName>sample string 3</LastName>
    <Name>sample string 1</Name>
    <Telephone>sample string 5</Telephone>
  </BillToAddress>
  <Date>sample string 6</Date>
  <Id>sample string 5</Id>
  <Number>sample string 4</Number>
  <ShipToAddress>
    <Address>
      <AddressType>sample string 8</AddressType>
      <City>sample string 4</City>
      <Country>sample string 7</Country>
      <Id>sample string 1</Id>
      <PostalCode>sample string 6</PostalCode>
      <StateOrProvince>sample string 5</StateOrProvince>
      <Street1>sample string 2</Street1>
      <Street2>sample string 3</Street2>
    </Address>
    <EmailAddress>sample string 4</EmailAddress>
    <FirstName>sample string 2</FirstName>
    <LastName>sample string 3</LastName>
    <Name>sample string 1</Name>
    <Telephone>sample string 5</Telephone>
  </ShipToAddress>
  <ShoppingCartId>sample string 1</ShoppingCartId>
  <StatusReason>7</StatusReason>
  <TotalAmount>3</TotalAmount>
</Invoice>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

System.String

None.

Headers

System.Net.Http.Headers.HttpResponseHeaders

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

System.Boolean

None.