Skip to main content
GET
/
api
/
farmer
/
order
/
{id}
Get an order
curl --request GET \
  --url https://localhost:8080/api/farmer/order/{id}
{
  "id": 123,
  "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"
}

Path Parameters

id
integer
required

Response

200 - */*

OK

id
integer
receptionist
object
date
string<date>
session
object
location
string
latitude
number
longitude
number
cropType
object
area
number
cost
number
orderStatus
enum<string>
Available options:
pending,
cancelled,
confirmed,
assigned,
in_progress,
completed
paymentStatus
enum<string>
Available options:
pending,
paid,
failed
paymentMethod
enum<string>
Available options:
cash,
visa,
mastercard
completionDate
string<date>
confirmed
boolean
creationDate
string<date>
I