Get a Booking
GET /bookings/{id}
— Use this method to retrieve the booking record with the specified internal ID.
Parameters
Path parameters
Path parameter |
Required / Optional |
Description |
Type |
---|---|---|---|
|
Required |
The internal ID of the booking. |
integer |
Query string parameter
Path parameter |
Required / Optional |
Description |
Type |
---|---|---|---|
|
Optional |
A comma-separated list of attributes available for expansion. The comma-separated list may include spaces (or
Note:
The |
string |
|
Optional |
A comma-separated list of attributes to include in the response. If not specified, the response includes all attributes for the booking returned. Response Data Modifiers. |
string |
|
Optional |
The internal ID of the filter set to be applied.
|
integer |
Response definitions
A successful request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
An array containing the booking object requested. See Returned Data. |
|
An array of expanded objects, if the |
|
An object containing information about objects referenced by internal ID in the |
|
A string containing a brief message about the status of your request — for example, |
A failed request returns a JSON object with the following properties:
Property |
Description |
---|---|
|
A string containing a brief message about the status of your request — for example, |
Sample request
GET /rest/v1/bookings/234 HTTP/1.1
Host: company-id.app.netsuitesuiteprojectspro.com
Authorization: Bearer <OAuth2_access_token>
In the example, <OAuth2_access_token>
is the OAuth 2.0 access token obtained for the client application connecting to SuiteProjects Pro. See Authentication.
Sample response
{
"data": [
{
"priority": 1,
"bookingRequestId": 0,
"matchScore": 75,
"endTime": "",
"projectTaskId": 489,
"startTime": "",
"id": 234,
"updated": "2023-10-26 05:04:44",
"hours": 144,
"bookingTypeId": 4,
"jobCodeId": 12,
"percentage": 100,
"approvalStatus": "S",
"customerId": 19,
"endDate": "2021-03-31",
"startDate": "2021-03-08",
"scheduleRequestItemId": 0,
"repeatId": 0,
"externalId": "",
"dateSubmitted": "2023-10-26",
"sourceBookingId": 0,
"dateRejected": "0000-00-00",
"projectId": 61,
"asPercentage": false,
"attachments": [],
"dateApproved": "0000-00-00",
"userId": 437,
"preferred": 1,
"created": "2023-10-26 05:04:43",
"notes": "",
"resourceRequestQueueId": 1,
"ownerId": 856
}
],
"meta": {
"relationships": [
{
"attachments": {
"data": {
"id": [],
"type": "attachment"
}
},
"bookingTypeId": {
"data": {
"id": 4,
"type": "bookingTypeDisplayName"
}
},
"jobCodeId": {
"data": {
"id": 12,
"type": "jobCodeDisplayName"
}
},
"userId": {
"data": {
"id": 437,
"type": "userDisplayName"
}
},
"ownerId": {
"data": {
"id": 856,
"type": "userDisplayName"
}
}
}
]
},
"message": "success"
}