POST api/v{version}/payments

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

PaymentModel
NameDescriptionTypeAdditional information
OrderId

integer

Required

OrderTypeId

PaymentRequestOrderType

Required

OrderRowVersion

string

Required

TotalPrice

decimal number

Required

Request Formats

application/json, text/json

Sample:
{
  "OrderId": 1,
  "OrderTypeId": 1,
  "OrderRowVersion": "sample string 1",
  "TotalPrice": 1.0
}

application/xml, text/xml

Sample:
<PaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.BindingModels">
  <OrderId>1</OrderId>
  <OrderRowVersion>sample string 1</OrderRowVersion>
  <OrderTypeId>ServiceRequestInvoice</OrderTypeId>
  <TotalPrice>1</TotalPrice>
</PaymentModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.