BokaMera.API.Host

<back to all web services

GetMyBookingReservations

Requires Authentication
The following routes are available for this service:
GET/bookingreservations/mineList the caller's own awaiting-payment reservationsReturns the logged-in customer's reservations that are still awaiting payment (committed but not yet paid/converted) so they can resume payment from their bookings list. Scoped to the caller's customer within the company; expired holds are excluded.
GetMyBookingReservations Parameters:
NameParameterData TypeRequiredDescription
CompanyIdqueryGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
MyBookingReservationsResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<MyBookingReservationResult>YesThe caller's awaiting-payment reservations.
ResponseStatusformResponseStatusYes
MyBookingReservationResult Parameters:
NameParameterData TypeRequiredDescription
SessionKeyformGuidNoThe opaque session key that identifies the reservation.
ServiceIdformintNoThe reserved service id.
ServiceNameformstringYesThe reserved service name.
FromformDateTimeNoThe reservation start.
ToformDateTimeNoThe reservation end.
NumberOfBookedSpotsformintNoNumber of reserved spots.
ExpirationDatetimeformDateTimeNoWhen the hold expires (company-local time).
ServerTimeformDateTimeNoThe company's current time, in the same frame as ExpirationDatetime.
StatusCodeformintNoThe BookingReservationStatus value (AwaitingPayment).
StatusNameformstringYesThe BookingReservationStatus name.
CurrencyIdformstringYesThe currency of the reservation, if resolved.
InternalReferenceIdformstringYesThe payable reference to use as the checkout InternalReferenceId when resuming payment.

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /bookingreservations/mine HTTP/1.1 
Host: testapi.bokamera.se 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Results":[{"ServiceId":0,"ServiceName":"String","NumberOfBookedSpots":0,"StatusCode":0,"StatusName":"String","CurrencyId":"String","InternalReferenceId":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}