Trialmile docs

Act

POST
/dev/riders/act

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

riderId*string
Length1 <= length
action*string

Value in

  • "picked_up"
  • "delivered"
  • "restock"
orderId?string
Length1 <= length
productId?string
Length1 <= length
amount?unknown|unknown|unknown

Response Body

application/json

curl -X POST "https://example.com/dev/riders/act" \  -H "Content-Type: application/json" \  -d '{    "riderId": "string",    "action": "picked_up"  }'
null