cURL
curl --request POST \ --url https://localhost:8080/api/sprayer/order/{id}/paid
{ "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" }
OK
Show child attributes
pending
cancelled
confirmed
assigned
in_progress
completed
paid
failed
cash
visa
mastercard