completeReservation
Functionality to complete the reservation.
Please note:
By calling this function you have confirmed the purchase of the tickets. The tickets will be billed by the relevant user (museum) in the production environment.
Tickets from the TEST environment are not valid at the museum.
Contactinfo required
for some clients it is mandatory to add contact info to this request.
Below is the list of clients where this information is required.
Clients
The VanGogh Museum | Required as of 01-01-2019. |
URL
https://globalreseller.nl/webservices/completeReservation
HMAC calculation
apiKey + customerEmailAddress + customerFirstName + customerSurname + environment + reservationId + userId
Please note: optional fields only needs to be included when an optional field is used.
Input:
Name | Datatype | Description |
---|---|---|
apiKey | String | Your public apiKey needs to be included in every request. |
environment | Enum | "test" or "production" |
userId | Integer | The userId is a reference to the user (museum / attraction). The userId can be requested via getAvailableUsers and can be cached in your application. |
reservationId | Integer | Include the reservationId from the createReservation request. |
customerFirstName | String | (optional) Firstname of the customer. (please read "Contactinfo required" below) |
customerSurname | String | (optional) Surname of the customer. (please read "Contactinfo required" below) |
customerEmailAddress | String | (optional) Emailaddress of the customer. (please read "Contactinfo required" below) |
HMACKey | String | The HMACKey is calculated based on the input fields. |
Output:
Name | Datatype | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
success | Boolean | Indicates if the request was successfully executed. | ||||||||
ticketBarcodes |
Array with ticket barcodes
|
JSON input example
{
"apiKey":"PUT-YOUR-PUBLIC-API-KEY-HERE",
"environment":"test",
"reservationId":2,
"userId":1,
"HMACKey":"PUT-YOUR-CALCULATED-HMAC-KEY-HERE"
}
JSON output example
{
"success":true,
"ticketBarcodes":[
{
"barcode":1231231928311,
"ticketTypeId":1001,
"barcodeType":"QR"
},
{
"barcode":1287192831231,
"ticketTypeId":1001,
"barcodeType":"QR"
},
{
"barcode":7172313127312,
"ticketTypeId":1002,
"barcodeType":"QR"
},
{
"barcode":5181237123612312,
"ticketTypeId":1002,
"barcodeType":"QR"
}
]
}