Get Booking Requests

Returns every request a booking has sent to providers, ordered from newest to oldest.

GET/api/integration/booking/{bookingId}/requests

Request

cURL
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

NameTypeDescription
bookingIdrequiredstring—

Headers

NameTypeDescription
originstring—

Responses

Get Booking Requests
[
  {
    "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)

FieldTypeRequiredDescription
bookingIdinteger✅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

json
[
  {
    "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

FieldTypeDescription
[]arrayRequests sent by the booking. Empty when the booking exists but has not sent any request.
[].idnumberUnique Sodtrack identifier of the request.
[].providerobjectProvider the request was sent to.
[].provider.idnumberUnique Sodtrack identifier of the provider. Use it with Get Provider to obtain the provider's full record.
[].provider.reference`stringnull`
[].provider.name`stringnull`
[].provider.lastname`stringnull`
[].accepted`booleannull`
[].activebooleantrue while the request is open. false once it was closed (for example, cancelled or expired) and can no longer be answered.
[].replyDate`stringnull`
[].activationDate`stringnull`
[].createdDatestringDate and time (ISO 8601, UTC) when the request was created.

Error Responses

HTTP StatusErrorDescription
400 Bad Request—bookingId is not a valid integer.
401 Unauthorized—Authentication missing or invalid.
404 Not FoundBOOKING_NOT_FOUNDNo 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.

acceptedactiveMeaning
nulltrueSent to the provider, waiting for an answer.
nullfalseClosed before the provider answered.
trueanyThe provider accepted the request.
falseanyThe 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.