GET /api/org/orders
Every order of every client, newest first, with status, price and the client's reference; fetch one to read its document.
Surface: organisation. Who may call: organisation-key. Key: organisation.orders.all.
Example request
curl -X GET https://caremcp-test.fly.dev/api/org/orders \
-H "Authorization: Bearer <API key or session>"
Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {}
}
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",
"withdrawn"
]
},
"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"
]
},
"charged": {
"type": "boolean"
},
"clientId": {
"type": "string"
},
"clientRef": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"protocol",
"professions",
"status",
"professionalId",
"priceCents",
"currency",
"createdAt",
"claimedAt",
"reviewedAt",
"charged",
"clientId",
"clientRef"
],
"additionalProperties": false
}
}