POST api/Orders/UpdateOrderPayment

Request Information

URI Parameters

None.

Body Parameters

OrderPaymentViewModel
NameDescriptionTypeAdditional information
PaymentId

globally unique identifier

None.

PayableAmount

decimal number

None.

ResultCode

integer

None.

RefrenceCode

integer

None.

TransactionCode

string

None.

OrderId

globally unique identifier

None.

OrderNumber

integer

None.

RedirectUrl

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentId": "a777bf51-e62e-4098-87da-3d892412c028",
  "PayableAmount": 2.0,
  "ResultCode": 3,
  "RefrenceCode": 4,
  "TransactionCode": "sample string 5",
  "OrderId": "c64d75b8-23e3-40d7-ab90-82073fe484b4",
  "OrderNumber": 7,
  "RedirectUrl": "sample string 8"
}

text/html

Sample:
{"PaymentId":"a777bf51-e62e-4098-87da-3d892412c028","PayableAmount":2.0,"ResultCode":3,"RefrenceCode":4,"TransactionCode":"sample string 5","OrderId":"c64d75b8-23e3-40d7-ab90-82073fe484b4","OrderNumber":7,"RedirectUrl":"sample string 8"}

application/xml, text/xml

Sample:
<OrderPaymentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fruta.ViewModels">
  <OrderId>c64d75b8-23e3-40d7-ab90-82073fe484b4</OrderId>
  <OrderNumber>7</OrderNumber>
  <PayableAmount>2</PayableAmount>
  <PaymentId>a777bf51-e62e-4098-87da-3d892412c028</PaymentId>
  <RedirectUrl>sample string 8</RedirectUrl>
  <RefrenceCode>4</RefrenceCode>
  <ResultCode>3</ResultCode>
  <TransactionCode>sample string 5</TransactionCode>
</OrderPaymentViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>