POST v1/ConfirmOrderPayment

Request Information

URI Parameters

None.

Body Parameters

PaymentDto
NameDescriptionTypeAdditional information
iPaymentID

integer

None.

iTakeawayOrderID

integer

None.

vTransactionID

string

None.

dtPaymentDate

date

None.

dtStatusUpdated

date

None.

fPaymentPrice

decimal number

None.

bIsSuccess

boolean

None.

vFaultReason

string

None.

iPaymentType

integer

None.

SecurityKey

string

None.

VendorTXCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "iPaymentID": 1,
  "iTakeawayOrderID": 2,
  "vTransactionID": "sample string 3",
  "dtPaymentDate": "2025-10-25T12:08:55.2716652+01:00",
  "dtStatusUpdated": "2025-10-25T12:08:55.2716652+01:00",
  "fPaymentPrice": 1.1,
  "bIsSuccess": true,
  "vFaultReason": "sample string 4",
  "iPaymentType": 1,
  "SecurityKey": "sample string 5",
  "VendorTXCode": "sample string 6"
}

application/xml, text/xml

Sample:
<PaymentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TCB.Entity.Dtos">
  <SecurityKey>sample string 5</SecurityKey>
  <VendorTXCode>sample string 6</VendorTXCode>
  <bIsSuccess>true</bIsSuccess>
  <dtPaymentDate>2025-10-25T12:08:55.2716652+01:00</dtPaymentDate>
  <dtStatusUpdated>2025-10-25T12:08:55.2716652+01:00</dtStatusUpdated>
  <fPaymentPrice>1.1</fPaymentPrice>
  <iPaymentID>1</iPaymentID>
  <iPaymentType>1</iPaymentType>
  <iTakeawayOrderID>2</iTakeawayOrderID>
  <vFaultReason>sample string 4</vFaultReason>
  <vTransactionID>sample string 3</vTransactionID>
</PaymentDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.