Skip to main content
GET
/
api
/
receptionist
/
order
/
Get all orders
curl --request GET \
  --url https://localhost:8080/api/receptionist/order/
{
  "content": [
    {
      "id": 123,
      "farmer": {
        "id": 123,
        "email": "<string>",
        "fullName": "<string>",
        "phoneNumber": "<string>",
        "street": "<string>",
        "city": "<string>",
        "province": "<string>",
        "postalCode": "<string>",
        "expertise": "apprentice",
        "role": "farmer",
        "active": true
      },
      "receptionist": {
        "id": 123,
        "email": "<string>",
        "fullName": "<string>",
        "phoneNumber": "<string>",
        "street": "<string>",
        "city": "<string>",
        "province": "<string>",
        "postalCode": "<string>",
        "expertise": "apprentice",
        "role": "farmer",
        "active": true
      },
      "date": "2023-12-25",
      "session": {
        "id": 123,
        "startTime": {
          "hour": 123,
          "minute": 123,
          "second": 123,
          "nano": 123
        },
        "endTime": {
          "hour": 123,
          "minute": 123,
          "second": 123,
          "nano": 123
        }
      },
      "location": "<string>",
      "latitude": 123,
      "longitude": 123,
      "cropType": {
        "id": 123,
        "name": "<string>"
      },
      "area": 123,
      "cost": 123,
      "orderStatus": "pending",
      "paymentStatus": "pending",
      "paymentMethod": "cash",
      "completionDate": "2023-12-25",
      "confirmed": true,
      "creationDate": "2023-12-25"
    }
  ],
  "page": {
    "size": 123,
    "number": 123,
    "totalElements": 123,
    "totalPages": 123
  }
}

Query Parameters

orderStatus
enum<string>
Available options:
pending,
cancelled,
confirmed,
assigned,
in_progress,
completed
paymentMethod
enum<string>
Available options:
cash,
visa,
mastercard
cropType
integer
pageable
object
required

Response

200 - */*

OK

content
object[]
page
object
I