Get Booking Requests
Returns every request a booking has sent to providers, ordered from newest to oldest.
/api/integration/booking/{bookingId}/requestsRequest
curl -X GET "https://uat.integration.cl.sodtrack-shared.sodtrack.com/api/integration/booking/{bookingId}/requests" \
-H "Authorization: Bearer $SODTRACK_TOKEN" \
-H "origin: <your-origin>"Base URL: https://uat.integration.cl.sodtrack-shared.sodtrack.com · other environments
Path parameters
| Name | Type | Description |
|---|---|---|
bookingIdrequired | string | — |
Headers
| Name | Type | Description |
|---|---|---|
origin | string | — |
Responses
[
{
"id": 9812,
"provider": {
"id": 57,
"reference": "PRV-0057",
"name": "John",
"lastname": "Smith"
},
"accepted": true,
"active": true,
"replyDate": "2026-12-03T14:22:10.000Z",
"activationDate": "2026-12-03T14:05:00.000Z",
"createdDate": "2026-12-03T14:05:00.000Z"
},
{
"id": 9811,
"provider": {
"id": 63,
"reference": null,
"name": "Mary",
"lastname": "Johnson"
},
"accepted": false,
"active": true,
"replyDate": "2026-12-03T14:10:45.000Z",
"activationDate": "2026-12-03T14:05:00.000Z",
"createdDate": "2026-12-03T14:05:00.000Z"
},
{
"id": 9790,
"provider": {
"id": 71,
"reference": "PRV-0071",
"name": "Peter",
"lastname": "Brown"
},
"accepted": null,
"active": false,
"replyDate": null,
"activationDate": "2026-12-02T09:00:00.000Z",
"createdDate": "2026-12-02T09:00:00.000Z"
}
]Error responses for this endpoint follow the shared error reference.
Purpose
Returns every request a booking has sent to providers, ordered from newest to oldest. Each request includes the provider it was sent to and that provider's answer.
Use it to follow how a booking is being offered to providers: who received it, who accepted or rejected it, which requests are still open, and when each one was sent and answered.
Field Definitions
🧩 Booking Data (path parameter)
| Field | Type | Required | Description |
|---|---|---|---|
bookingId | integer | ✅ | Sodtrack identifier of the booking whose requests are returned. |
Example Request
The request has no body and no query parameters; only bookingId is sent, as part of the URL.
Response Example
[
{
"id": 9812,
"provider": {
"id": 57,
"reference": "PRV-0057",
"name": "John",
"lastname": "Smith"
},
"accepted": true,
"active": true,
"replyDate": "2026-12-03T14:22:10.000Z",
"activationDate": "2026-12-03T14:05:00.000Z",
"createdDate": "2026-12-03T14:05:00.000Z"
},
{
"id": 9811,
"provider": {
"id": 63,
"reference": null,
"name": "Mary",
"lastname": "Johnson"
},
"accepted": false,
"active": true,
"replyDate": "2026-12-03T14:10:45.000Z",
"activationDate": "2026-12-03T14:05:00.000Z",
"createdDate": "2026-12-03T14:05:00.000Z"
},
{
"id": 9790,
"provider": {
"id": 71,
"reference": "PRV-0071",
"name": "Peter",
"lastname": "Brown"
},
"accepted": null,
"active": false,
"replyDate": null,
"activationDate": "2026-12-02T09:00:00.000Z",
"createdDate": "2026-12-02T09:00:00.000Z"
}
]Response Fields
| Field | Type | Description |
|---|---|---|
[] | array | Requests sent by the booking. Empty when the booking exists but has not sent any request. |
[].id | number | Unique Sodtrack identifier of the request. |
[].provider | object | Provider the request was sent to. |
[].provider.id | number | Unique Sodtrack identifier of the provider. Use it with Get Provider to obtain the provider's full record. |
[].provider.reference | `string | null` |
[].provider.name | `string | null` |
[].provider.lastname | `string | null` |
[].accepted | `boolean | null` |
[].active | boolean | true while the request is open. false once it was closed (for example, cancelled or expired) and can no longer be answered. |
[].replyDate | `string | null` |
[].activationDate | `string | null` |
[].createdDate | string | Date and time (ISO 8601, UTC) when the request was created. |
Error Responses
| HTTP Status | Error | Description |
|---|---|---|
400 Bad Request | — | bookingId is not a valid integer. |
401 Unauthorized | — | Authentication missing or invalid. |
404 Not Found | BOOKING_NOT_FOUND | No booking exists with the given bookingId. The message includes the requested id, for example BOOKING_NOT_FOUND: 12345. |
500 Internal Server Error | — | Unexpected server error. Contact Sodtrack support. |
Business Rules & Constraints
Booking without requests
A booking that exists but has not sent any request returns 200 OK with an empty array. 404 Not Found is returned only when the booking itself does not exist.
Ordering
Requests are always returned from newest to oldest. When a booking is offered to providers in successive rounds, the most recent round appears first.
Reading the request status
accepted and active are independent: accepted holds the provider's answer, and active tells whether the request is still open.
accepted | active | Meaning |
|---|---|---|
null | true | Sent to the provider, waiting for an answer. |
null | false | Closed before the provider answered. |
true | any | The provider accepted the request. |
false | any | The provider rejected the request, or a previous acceptance no longer applies because the booking was assigned to another provider. |
No pagination
All requests of the booking are returned in a single response; the endpoint does not paginate.