Skip to main content
GET
/
v1
/
api
/
superadmin
/
reservations
List all reservations with filters
curl --request GET \
  --url http://localhost:3091/v1/api/superadmin/reservations \
  --header 'Authorization: Bearer <token>'
{
  "totalPages": 123,
  "totalElements": 123,
  "first": true,
  "last": true,
  "size": 123,
  "content": [
    {
      "id": 123,
      "reservationNumber": "<string>",
      "idCreateur": 123,
      "idExpediteur": 123,
      "statut": "<string>",
      "annonceId": 123,
      "poidsReserve": 123,
      "expediteur": {
        "id": 123,
        "firstName": "<string>",
        "lastName": "<string>",
        "username": "<string>",
        "phoneNumber": "<string>",
        "nationality": "<string>",
        "birthDate": "<string>",
        "email": "<string>",
        "stripeConnectedAccountId": "<string>",
        "enabled": true,
        "walletBalance": 123,
        "pendingWithdrawalAmount": 123,
        "totalEarned": 123,
        "totalWithdrawn": 123
      },
      "createurProfil": {
        "id": 123,
        "firstName": "<string>",
        "lastName": "<string>",
        "username": "<string>",
        "phoneNumber": "<string>",
        "nationality": "<string>",
        "birthDate": "<string>",
        "email": "<string>",
        "stripeConnectedAccountId": "<string>",
        "enabled": true,
        "walletBalance": 123,
        "pendingWithdrawalAmount": 123,
        "totalEarned": 123,
        "totalWithdrawn": 123
      },
      "createur": "<string>",
      "lieuArrivee": "<string>",
      "lieuDepart": "<string>",
      "dateDepart": "2023-12-25",
      "dateArrivee": "2023-12-25",
      "annonce": "<string>",
      "codeDepot": "<string>",
      "createurEmail": "<string>",
      "infosContenu": "<string>",
      "codeLivraison": "<string>",
      "pointRdv": "<string>",
      "pointLivraison": "<string>",
      "paymentId": "<string>",
      "authorizationId": "<string>",
      "captureId": "<string>",
      "refundId": "<string>",
      "paymentStatus": "<string>",
      "paymentDate": "2023-11-07T05:31:56Z",
      "paymentApprovalUrl": "<string>",
      "reservationDate": "2023-11-07T05:31:56Z",
      "items": [
        {
          "categorieId": 123,
          "nom": "<string>",
          "quantiteReserve": 123,
          "code": "<string>"
        }
      ],
      "invoiceId": "<string>",
      "invoiceUrl": "<string>",
      "invoiceStatus": "<string>"
    }
  ],
  "number": 123,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "pageable": {
    "offset": 123,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "paged": true,
    "pageNumber": 123,
    "pageSize": 123,
    "unpaged": true
  },
  "numberOfElements": 123,
  "empty": true
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Query Parameters

status
string
startDate
string<date-time>
endDate
string<date-time>
userId
integer<int32>
page
integer<int32>
default:0
size
integer<int32>
default:20

Response

Reservations retrieved

totalPages
integer<int32>
totalElements
integer<int64>
first
boolean
last
boolean
size
integer<int32>
content
object[]
number
integer<int32>
sort
object
pageable
object
numberOfElements
integer<int32>
empty
boolean