GET /api/operator/orders

Every order by status, with money and who has it, never the brief or the review.

Surface: operator. Who may call: operator. Key: operator.orders.list.

Example request

curl -X GET https://caremcp.com/api/operator/orders?status=queued \
  -H "Authorization: Bearer <operator token>"

Example input

{
  "status": "queued"
}

Input schema

{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "status": {
   "type": "string",
   "enum": [
    "queued",
    "assigned",
    "reviewed",
    "refused"
   ]
  }
 }
}

Output schema

{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "array",
 "items": {
  "type": "object",
  "properties": {
   "id": {
    "type": "string"
   },
   "protocol": {
    "type": "string"
   },
   "professions": {
    "type": "array",
    "items": {
     "type": "string"
    }
   },
   "status": {
    "type": "string",
    "enum": [
     "queued",
     "assigned",
     "reviewed",
     "refused"
    ]
   },
   "professionalId": {
    "type": [
     "string",
     "null"
    ]
   },
   "priceCents": {
    "type": "integer",
    "minimum": -9007199254740991,
    "maximum": 9007199254740991
   },
   "currency": {
    "type": "string",
    "enum": [
     "USD",
     "EUR"
    ]
   },
   "createdAt": {
    "type": "string"
   },
   "claimedAt": {
    "type": [
     "string",
     "null"
    ]
   },
   "reviewedAt": {
    "type": [
     "string",
     "null"
    ]
   },
   "clientId": {
    "type": "string"
   },
   "clientRef": {
    "type": [
     "string",
     "null"
    ]
   }
  },
  "required": [
   "id",
   "protocol",
   "professions",
   "status",
   "professionalId",
   "priceCents",
   "currency",
   "createdAt",
   "claimedAt",
   "reviewedAt",
   "clientId",
   "clientRef"
  ],
  "additionalProperties": false
 }
}