POST v1/PaymentSession/Reverse

Reverse Transaction with help of iFrame session key

URI template

v1/PaymentSession/Reverse

Request Information

URI Parameters

None.

Body Parameters

InReverseTransactionRequest
NameDescriptionTypeAdditional information
SiteId

Get or set the SiteId property

integer

Required

PaymentReferenceId

The preauth reference Id corresponding to the session transaction

string

Required

ReversalType

ReversalType

Required

Request Formats

application/json, text/json

Sample:
{
  "SiteId": 1,
  "PaymentReferenceId": "sample string 2",
  "ReversalType": 0
}

application/xml, text/xml

Sample:
<InReverseTransactionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineOrderingAPI.Inbound">
  <PaymentReferenceId>sample string 2</PaymentReferenceId>
  <ReversalType>Timeout</ReversalType>
  <SiteId>1</SiteId>
</InReverseTransactionRequest>

Response Information

Resource Description

A <see cref="T:Radiant.Order.Shared.Contracts.ServiceEntities.Requests.ReverseTransactionResponse" /> instance when successful, an error code and description when an error occurs.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.