Delivery methods
As seen when obtaining the catalog, the tickets have the RequiresDeliveryManagement property, which indicates whether a delivery method should be indicated when making the reservation. Using this method it is possible to obtain the available delivery methods and thus complete the necessary information to make the reservation.
Access method
GET activity/deliverymethods
Request structure
ReservationId: (string). Identifier of the reservation obtained when confirming the cart.
Request example
GET BASEURL/activity/deliverymethods?ReservationId=8jugbkeo49fk3
Response structure
-
Methods: (list). Delivery methods array.Id: (string). Delivery method identifier.Name: (string). Delivery method name.Description: (string). Delivery method description.-
Type: (byte). Delivery method type.Possible values
- 0: Shipping
- 1: Pickup
-
DeliveryPoints: (list). Delivery points array. This property only appears whenType == 1and the delivery method has delivery points set.Id: (string). Delivery point identifier.Name: (string). Delivery point name.Address: (string). Address.City: (string). City.ZipCode: (string). Postal code.Province: (string). Province.CountryCode: (string). Alpha-2 country code, according to ISO 3166.PhoneNumber: (string). Telephone number.Email: (string). Email.
Success(boolean): value that indicates whether the call was processed correctly or not.Timestamp(dateTime): time at which the request was processed. ISO 8601 format (yyyy-MM-ddThh:mm:ss.fffffff).ErrorMessage(string): error message explaining why the request was not successful. If it was correct, it will returnnull.ErrorCodes(string[]): list of codes that identify the errors that occurred in the call.ErrorEntityBreakDown(list): list that contains objects with the name and ID in case of error.Id(string): identifierName(string): related name of the identifier.
Response example
{
"Methods":
[
{
"Id": "hen3s1e7ao4ch",
"Name": "Ship to home",
"Description": "Shipping test",
"Type": 0
},
{
"Id": "stai6dbnn7xws",
"Name": "Hotel Pickup",
"Description": "Pickup test",
"Type": 1,
"DeliveryPoints":
[
{
"Id": "md8jo6fumzj56",
"Name": "Hotel Prueba",
"Address": "Carrer Botigers, 1",
"City": "Paterna",
"ZipCode": "46019",
"Province": "Valencia",
"CountryCode": "es",
"PhoneNumber": "961345415",
"Email": "email@hotel.com"
}
]
}
],
"Success": true,
"Timestamp": "2021-02-18T17:02:27.8165916"
}