API Methods
Account ...
Blogs ...
Bookings ...
CreditHistory ...
Dashboard ...
DirectCam ...
DirectChat ...
Email ...
FieldReport ...
Groups ...
HotLists ...
Interview ...
Lists ...
Movie ...
Newsfeed ...
PhoneChat ...
Pictures ...
Profile ...
Search ...
Tours ...
Webcam ...

Get Booking

Use this method to get an AdultWork.com user's bookings object.

URL / Endpoint

Need help with Postman?

GET /v1/Bookings/GetBooking

GET /v1/Groups/Bookings/GetBooking (See Group manager)

Request

PropertyTypeDescription
BookingID integer The ID of the booking.

Group manager

If the authenticated user is the manager of a group, the user can impersonate another member of the group. This allows the manager to perform tasks of other group members without having to authenticate as them.

The request can be build in the same way as the regular request, but targeted towards the Group manager endpoint. Additionally, it has the following extra parameters:

PropertyTypeDescription
UserID integer Required. The ID of a member in the group that will be impersonated for this request.

Request Information

HTTP Method / Verb

Parameters can be passed to this operation using the HTTP GET method by passing parameters over the query string of the URI.

Headers

The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.

Authentication

An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.

Scopes

This endpoint requires the following scope:

Scope
account_escort_bookings

Samples

GET method

GET https://api-sandbox.adultwork.com/v1/Bookings/GetBooking
?BookingID=1
Authorization: bearer {your-access-token}

GET as Group manager

GET https://api-sandbox.adultwork.com/v1/Groups/Bookings/GetBooking
?UserID=123456 &BookingID=1
Authorization: bearer {your-access-token}

Response

PropertyTypeDescription
BookingID integer Represents the ID of the booking.
Date datetime Represents the date time of the booking.
MeetStartDate datetime Represents the start date of the booking.
MeetEndDate datetime Represents the end date of the booking.
ContactOnStartDate datetime Represents the start date of when the contact can be contacted.
ContactOnEndDate datetime Represents the end date of when the contact can be contacted.
ContactNumber string Represents the number of the contact can be reached on.
Comments string Represents the comments of the booking.
IsInCall boolean Represents if the booking is requested as an In-Call.
IsOutCall boolean Represents if the booking is requested as an Out-Call.
Price decimal Represents the price.
Currency string Represents the currency the user will be paid in.
Location string Represents the location.
IsScheduled boolean Represents if the booking is scheduled.
IsConfirmed boolean Represents if the booking is confirmed.
IsRead boolean Represents if the booking is read.
User aws:BookingUser Represents the user who made the booking.

Response Sample

The following example shows the AdultWork.com result for the request.

{
"BookingID": 1,
"Date": "2016-01-01T20:15:09.607",
"MeetStartDate": "2016-02-02T13:00:00",
"MeetEndDate": "2016-02-02T15:00:00",
"ContactOnStartDate": "2016-01-20T09:00:00",
"ContactOnEndDate": "2016-01-20T10:30:00",
"ContactNumber": "123456789",
"Comments": null,
"IsInCall": true,
"IsOutCall": false,
"Price": 200,
"Currency": "GBP",
"Location": "In-Call",
"IsScheduled": false,
"IsConfirmed": true,
"IsRead": true,
"User": {
"UserID": 123456,
"Nickname": "
JosepheneBlogs",
"FirstName": "
Josephene",
"LastName": "
Blogs",
"GenderID": 2,
"HasAlias": false,
"AliasHasNegativeRating": false,
"ClientNote": "Neutral",
"Ratings": {
"Total":33, "Positive":34, "Neutral":0, "Negative":1, "Ratings":35, "Disputes":0
}
}
}
<Booking>
	<BookingID>1</BookingID>
	<Date>2016-01-01T20:15:09.607</Date>
	<MeetStartDate>2016-02-02T13:00:00</MeetStartDate>
	<MeetEndDate>2016-02-02T15:00:00</MeetEndDate>
	<ContactOnStartDate>2016-01-02T09:00:00</ContactOnStartDate>
	<ContactOnEndDate>2016-01-02T10:30:00</ContactOnEndDate>
	<ContactNumber>123456789</ContactNumber>
	<Comments>NULL</Comments>
	<InCall>true</InCall>
	<OutCall>false</OutCall>
	<Price>200</Price>
	<Currency>GBP</Currency>
	<Location>In-Call</Location>
	<IsScheduled>false</IsScheduled>
	<IsConfirmed>true</IsConfirmed>
	<IsRead>true</IsRead>
	<User>
		<UserID>123456</UserID>
		<Nickname>JosepheneBlogs</Nickname>
		<FirstName>Josephene</FirstName>
		<LastName>Blogs</LastName>
		<GenderID>2</LastName>
		<HasAlias>false</HasAlias>
		<AliasHasNegativeRating>false</AliasHasNegativeRating>
		<ClientNote>Neutral</ClientNote>
		<Ratings>
			<Disputes>0</Disputes>
			<Negative>1</Negative>
			<Neutral>0</Neutral>
			<Positive>34</Positive>
			<Ratings>29</Ratings>
			<Total>33</Total>
		</Ratings>
	</User>
</Booking>