POST v{version}/{lang}/checkoutByCreditCard?paymentProvider={paymentProvider}&currency={currency}&wp={wp}

Checkout. Complete checkout for a reserved booking. Request must include a cookie containing a previously reserved booking. Completes payment authorization for supplied CC.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

paymentProvider

PaymentProvider

Required

currency

string

Default value is ISK

wp

string

Default value is GG

version

The requested API version

string

Required

Default value is 1.0

Body Parameters

CheckoutByCreditCardRequest
NameDescriptionTypeAdditional information
CardNumber

integer

Required

CardExpires

integer

None.

CardExpiresYear

integer

Required

CardExpiresMonth

integer

Required

CardCVC

integer

Required

EmailOptIn

boolean

None.

Cavv

string

None.

Xid

string

None.

SecurityLevelIndicator

integer

None.

Token

string

None.

DepositPayment

boolean

None.

PaymentProvider

PaymentProvider

None.

Request Formats

application/json, text/json

Sample:
{
  "CardNumber": 1,
  "CardExpires": 2,
  "CardExpiresYear": 3,
  "CardExpiresMonth": 4,
  "CardCVC": 5,
  "EmailOptIn": true,
  "Cavv": "sample string 7",
  "Xid": "sample string 8",
  "SecurityLevelIndicator": 1,
  "Token": "sample string 9",
  "DepositPayment": true,
  "PaymentProvider": 0
}

application/xml, text/xml

Sample:
<CheckoutByCreditCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models">
  <CardCVC>5</CardCVC>
  <CardExpires>2</CardExpires>
  <CardExpiresMonth>4</CardExpiresMonth>
  <CardExpiresYear>3</CardExpiresYear>
  <CardNumber>1</CardNumber>
  <Cavv>sample string 7</Cavv>
  <DepositPayment>true</DepositPayment>
  <EmailOptIn>true</EmailOptIn>
  <PaymentProvider>BORGUN</PaymentProvider>
  <SecurityLevelIndicator>1</SecurityLevelIndicator>
  <Token>sample string 9</Token>
  <Xid>sample string 8</Xid>
</CheckoutByCreditCardRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.