POST api/SubmitToRemedy/Submit

Request Information

URI Parameters

None.

Body Parameters

RemedyOrder
NameDescriptionTypeAdditional information
RandomNumber

integer

None.

PaymentStatus

string

None.

Title

string

None.

FirstName

string

None.

LastName

string

None.

PhoneNumber

string

None.

AccountNumber

string

None.

Address

string

None.

OfferName

string

None.

Customization

string

None.

Email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "randomNumber": 1,
  "paymentStatus": "sample string 2",
  "title": "sample string 3",
  "firstName": "sample string 4",
  "lastName": "sample string 5",
  "phoneNumber": "sample string 6",
  "accountNumber": "sample string 7",
  "address": "sample string 8",
  "offerName": "sample string 9",
  "customization": "sample string 10",
  "email": "sample string 11"
}

text/html

Sample:
{"randomNumber":1,"paymentStatus":"sample string 2","title":"sample string 3","firstName":"sample string 4","lastName":"sample string 5","phoneNumber":"sample string 6","accountNumber":"sample string 7","address":"sample string 8","offerName":"sample string 9","customization":"sample string 10","email":"sample string 11"}

application/xml, text/xml

Sample:
<RemedyOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WWW.CableOne.ShoppingCartBusinessEntities">
  <AccountNumber>sample string 7</AccountNumber>
  <Address>sample string 8</Address>
  <Customization>sample string 10</Customization>
  <Email>sample string 11</Email>
  <FirstName>sample string 4</FirstName>
  <LastName>sample string 5</LastName>
  <OfferName>sample string 9</OfferName>
  <PaymentStatus>sample string 2</PaymentStatus>
  <PhoneNumber>sample string 6</PhoneNumber>
  <RandomNumber>1</RandomNumber>
  <Title>sample string 3</Title>
</RemedyOrder>

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 'RemedyOrder'.

Response Information

Resource Description

JsonResponseResult
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

ContentEncoding

Encoding

None.

ContentType

string

None.

Data

Object

None.

JsonRequestBehavior

JsonRequestBehavior

None.

MaxJsonLength

integer

None.

RecursionLimit

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "contentEncoding": null,
  "contentType": "sample string 3",
  "data": {},
  "jsonRequestBehavior": 0,
  "maxJsonLength": 1,
  "recursionLimit": 1
}

text/html

Sample:
{"success":true,"message":"sample string 2","contentEncoding":null,"contentType":"sample string 3","data":{},"jsonRequestBehavior":0,"maxJsonLength":1,"recursionLimit":1}

application/xml, text/xml

Sample:
<JsonResponseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WWW.CableOne.ShoppingCartUtilities">
  <ContentEncoding xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Text" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc" />
  <ContentType xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 3</ContentType>
  <Data xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc" />
  <JsonRequestBehavior xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">AllowGet</JsonRequestBehavior>
  <MaxJsonLength xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">1</MaxJsonLength>
  <RecursionLimit xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">1</RecursionLimit>
  <Message>sample string 2</Message>
  <Success>true</Success>
</JsonResponseResult>