POST v{version}/{lang}/Confirm2PayNowBooking
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version |
The requested API version |
string |
Required Default value is 1.0 |
lang | string |
None. |
Body Parameters
ConfirmPaymentName | Description | Type | Additional information |
---|---|---|---|
bookingId | string |
None. |
|
amount | decimal number |
None. |
|
currency | string |
None. |
|
amountPaid | decimal number |
None. |
|
currencyPaid | string |
None. |
|
website | string |
None. |
|
sessionId | string |
None. |
|
lang | string |
None. |
|
tradeStatus | string |
None. |
|
amountISK | decimal number |
None. |
|
tradeNo | string |
None. |
|
cardNumber | string |
None. |
|
pass | string |
None. |
|
paymentProvider | string |
None. |
|
requestUri | string |
None. |
|
adyenPspReference | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "bookingId": "sample string 1", "amount": 2.0, "currency": "sample string 3", "amountPaid": 4.0, "currencyPaid": "sample string 5", "website": "sample string 6", "sessionId": "sample string 7", "lang": "sample string 8", "tradeStatus": "sample string 9", "amountISK": 10.0, "tradeNo": "sample string 11", "cardNumber": "sample string 12", "pass": "sample string 13", "paymentProvider": "sample string 14", "requestUri": "sample string 15", "adyenPspReference": "sample string 16" }
application/xml, text/xml
Sample:
<ConfirmPayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Payment"> <adyenPspReference>sample string 16</adyenPspReference> <amount>2</amount> <amountISK>10</amountISK> <amountPaid>4</amountPaid> <bookingId>sample string 1</bookingId> <cardNumber>sample string 12</cardNumber> <currency>sample string 3</currency> <currencyPaid>sample string 5</currencyPaid> <lang>sample string 8</lang> <pass>sample string 13</pass> <paymentProvider>sample string 14</paymentProvider> <requestUri>sample string 15</requestUri> <sessionId>sample string 7</sessionId> <tradeNo>sample string 11</tradeNo> <tradeStatus>sample string 9</tradeStatus> <website>sample string 6</website> </ConfirmPayment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CentralPayConfirmResultName | Description | Type | Additional information |
---|---|---|---|
Status | CentralPayConfirmResultStatus |
None. |
|
Message | string |
None. |
|
BookRequest | BookRequest |
None. |
|
BookResult | BookResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 0, "Message": "sample string 1", "BookRequest": { "TotalAmount": 1.0, "Amount": 1.0, "Currency": "sample string 2", "AmountPaid": 1.0, "CurrencyPaid": "sample string 3", "AuthCode": "sample string 4", "CardNumber": "sample string 5", "PaymentType": "sample string 6", "TransactionId": "sample string 7", "TransactionDate": "2025-01-22T15:50:43.8112634+00:00", "Token": "sample string 8", "Comment": "sample string 9", "DepositPayment": true, "GiftCards": [ { "Id": 1, "Code": "sample string 1", "AmountAvailable": 2.0, "AmountUsed": 3.0, "Currency": "sample string 4", "TransactionId": "sample string 5" }, { "Id": 1, "Code": "sample string 1", "AmountAvailable": 2.0, "AmountUsed": 3.0, "Currency": "sample string 4", "TransactionId": "sample string 5" } ], "AcceptsMarketing": true }, "BookResult": { "Success": true, "Proceed": true, "ConfirmationCode": "sample string 3", "Message": "sample string 4", "ClientMessage": "sample string 5", "ApiStatusCode": 1 } }
application/xml, text/xml
Sample:
<CentralPayConfirmResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Payment"> <BookRequest xmlns:d2p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models"> <d2p1:AcceptsMarketing>true</d2p1:AcceptsMarketing> <d2p1:Amount>1</d2p1:Amount> <d2p1:AmountPaid>1</d2p1:AmountPaid> <d2p1:AuthCode>sample string 4</d2p1:AuthCode> <d2p1:CardNumber>sample string 5</d2p1:CardNumber> <d2p1:Comment>sample string 9</d2p1:Comment> <d2p1:Currency>sample string 2</d2p1:Currency> <d2p1:CurrencyPaid>sample string 3</d2p1:CurrencyPaid> <d2p1:DepositPayment>true</d2p1:DepositPayment> <d2p1:GiftCards xmlns:d3p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Widget"> <d3p1:WidgetGiftCardDto> <d3p1:AmountAvailable>2</d3p1:AmountAvailable> <d3p1:AmountUsed>3</d3p1:AmountUsed> <d3p1:Code>sample string 1</d3p1:Code> <d3p1:Currency>sample string 4</d3p1:Currency> <d3p1:Id>1</d3p1:Id> <d3p1:TransactionId>sample string 5</d3p1:TransactionId> </d3p1:WidgetGiftCardDto> <d3p1:WidgetGiftCardDto> <d3p1:AmountAvailable>2</d3p1:AmountAvailable> <d3p1:AmountUsed>3</d3p1:AmountUsed> <d3p1:Code>sample string 1</d3p1:Code> <d3p1:Currency>sample string 4</d3p1:Currency> <d3p1:Id>1</d3p1:Id> <d3p1:TransactionId>sample string 5</d3p1:TransactionId> </d3p1:WidgetGiftCardDto> </d2p1:GiftCards> <d2p1:PaymentType>sample string 6</d2p1:PaymentType> <d2p1:Token>sample string 8</d2p1:Token> <d2p1:TotalAmount>1</d2p1:TotalAmount> <d2p1:TransactionDate>2025-01-22T15:50:43.8112634+00:00</d2p1:TransactionDate> <d2p1:TransactionId>sample string 7</d2p1:TransactionId> </BookRequest> <BookResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models"> <d2p1:ApiStatusCode>1</d2p1:ApiStatusCode> <d2p1:ClientMessage>sample string 5</d2p1:ClientMessage> <d2p1:ConfirmationCode>sample string 3</d2p1:ConfirmationCode> <d2p1:Message>sample string 4</d2p1:Message> <d2p1:Proceed>true</d2p1:Proceed> <d2p1:Success>true</d2p1:Success> </BookResult> <Message>sample string 1</Message> <Status>NOT_FOUND</Status> </CentralPayConfirmResult>