POST api/b2c/paymentTransaction/cancel

Cancels a transaction and its sales.

Request Information

URI Parameters

None.

Body Parameters

An instance of the CancelPaymentTransactionRequestDTO.

Cyberlogic.eTourism.Mappings.Web.Dto.Excursions.CancelPaymentTransactionRequestDTO
NameDescriptionTypeAdditional information
TransactionId

integer

None.

ForbidRedirect

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "TransactionId": 1,
  "ForbidRedirect": true
}

text/html

Sample:
{"TransactionId":1,"ForbidRedirect":true}

application/xml, text/xml

Sample:
<CancelPaymentTransactionRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Excursions">
  <ForbidRedirect>true</ForbidRedirect>
  <TransactionId>1</TransactionId>
</CancelPaymentTransactionRequestDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

An object with empty errormessage

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />