POST api/bookings/sales/confirm

Confirms excursion sales if payed with creditcard.

Request Information

URI Parameters

None.

Body Parameters

Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.ConfirmSaleRequestDTO
NameDescriptionTypeAdditional information
TransactionId

string

None.

SellerId

integer

None.

SendEmailToSupplier

boolean

None.

Amount

string

None.

PaymentId

string

None.

PaymentDate

string

None.

PaymentStatus

string

None.

AuthCode

string

None.

Currency

string

None.

Signature

string

None.

Reference

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TransactionId": "sample string 1",
  "SellerId": 2,
  "SendEmailToSupplier": true,
  "Amount": "sample string 4",
  "PaymentId": "sample string 5",
  "PaymentDate": "sample string 6",
  "PaymentStatus": "sample string 7",
  "AuthCode": "sample string 8",
  "Currency": "sample string 9",
  "Signature": "sample string 10",
  "Reference": "sample string 11"
}

text/html

Sample:
{"TransactionId":"sample string 1","SellerId":2,"SendEmailToSupplier":true,"Amount":"sample string 4","PaymentId":"sample string 5","PaymentDate":"sample string 6","PaymentStatus":"sample string 7","AuthCode":"sample string 8","Currency":"sample string 9","Signature":"sample string 10","Reference":"sample string 11"}

application/xml, text/xml

Sample:
<ConfirmSaleRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Bookings">
  <Amount>sample string 4</Amount>
  <AuthCode>sample string 8</AuthCode>
  <Currency>sample string 9</Currency>
  <PaymentDate>sample string 6</PaymentDate>
  <PaymentId>sample string 5</PaymentId>
  <PaymentStatus>sample string 7</PaymentStatus>
  <Reference>sample string 11</Reference>
  <SellerId>2</SellerId>
  <SendEmailToSupplier>true</SendEmailToSupplier>
  <Signature>sample string 10</Signature>
  <TransactionId>sample string 1</TransactionId>
</ConfirmSaleRequestDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

An object with the imported SaleIds if the import is successful, the TicketIds otherwise.

Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.ConfirmSaleResponseDTO
NameDescriptionTypeAdditional information
ErrorMessage

string

None.

ErrorStackTrace

string

None.

TransactionId

integer

None.

SaleId

integer

None.

ClientEmail

Cyberlogic.eTourism.Domain.Models.Shared.Email

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMessage": "sample string 1",
  "ErrorStackTrace": "sample string 2",
  "TransactionId": 3,
  "SaleId": 4,
  "ClientEmail": null
}

text/html

Sample:
{"ErrorMessage":"sample string 1","ErrorStackTrace":"sample string 2","TransactionId":3,"SaleId":4,"ClientEmail":null}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.