POST api/Payments

Request Information

URI Parameters

None.

Body Parameters

Altai.Web.Services.Models.Payment
NameDescriptionTypeAdditional information
InvoiceNumber

System.String

None.

ShoppingCartId

System.String

None.

ContactId

System.String

None.

CreditCardNumber

System.String

None.

ExpirationDateMMYY

System.String

None.

NameOnCard

System.String

None.

PaymentType

System.String

None.

PONumber

System.String

None.

CVV

System.String

None.

CreditCardType

Integer Value that represents the credit card type

System.Int32

None.

TotalAmount

System.Decimal

None.

BillToAddress

Altai.Web.Services.Models.CheckoutAddress

None.

ShipToAddress

Altai.Web.Services.Models.CheckoutAddress

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceNumber": "sample string 1",
  "ShoppingCartId": "sample string 2",
  "ContactId": "sample string 3",
  "CreditCardNumber": "sample string 4",
  "ExpirationDateMMYY": "sample string 5",
  "NameOnCard": "sample string 6",
  "PaymentType": "sample string 7",
  "PONumber": "sample string 8",
  "CVV": "sample string 9",
  "CreditCardType": 10,
  "TotalAmount": 11.0,
  "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:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Altai.Web.Services.Models">
  <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>
  <CVV>sample string 9</CVV>
  <ContactId>sample string 3</ContactId>
  <CreditCardNumber>sample string 4</CreditCardNumber>
  <CreditCardType>10</CreditCardType>
  <ExpirationDateMMYY>sample string 5</ExpirationDateMMYY>
  <InvoiceNumber>sample string 1</InvoiceNumber>
  <NameOnCard>sample string 6</NameOnCard>
  <PONumber>sample string 8</PONumber>
  <PaymentType>sample string 7</PaymentType>
  <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 2</ShoppingCartId>
  <TotalAmount>11</TotalAmount>
</Payment>

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.