List orders
/api/v1/orders
Read team orders with the same filters, 20-row pagination and public fields as the customer order page. Quotes are excluded.
Request example
curl "https://tovahub.com/api/v1/orders?product=all&page=1" \
-H "Authorization: Bearer $TOVAHUB_TOKEN"Examples only. No requests are sent from this page.
Illustrative response
{
"userId": "507f1f77bcf86cd799439012",
"page": 1,
"limit": 20,
"total": 1,
"items": [
{
"_id": "507f1f77bcf86cd799439013",
"type": "network",
"action": "enable",
"asset": "USD",
"amount": "700",
"paymentMode": "balance",
"paymentIntentId": null,
"status": "completed",
"createdAt": "2026-11-12T00:00:00.000Z",
"updatedAt": "2026-11-12T00:00:00.000Z",
"network": {
"serverId": "507f1f77bcf86cd799439012",
"name": "myserver",
"region": "EU",
"serviceFrom": "2026-11-25T00:00:00.000Z",
"serviceUntil": "2027-03-13T12:00:00.000Z"
},
"teamId": "507f1f77bcf86cd799439012",
"userId": "507f1f77bcf86cd799439014"
}
]
}Parameters
productQuery · Optionalstring
all, server or network. Defaults to all.
pageQuery · Optionalinteger
Page number, 1–10000. Twenty records per page.
fromQuery · Optionalstring
Inclusive ISO 8601 UTC start. Supply both from and to, or neither.
toQuery · Optionalstring
Exclusive ISO 8601 UTC end after from. Convert inclusive local calendar dates to midnight boundaries in the client time zone.
Response
HTTP status 200
Order records for the current team, filtered before pagination.
userIdstringAuthenticated reader ID. The team is fixed by authentication.
pageintegerRequested page, starting at 1.
limit20Fixed page size.
totalintegerTotal matching records in this fixed team.
itemsarrayOrder records use the same fields as the customer order page. The list does not include requestKey.
items[]._idstring (ObjectId)Order identifier.
items[].teamIdstring (ObjectId)Owning team ID.
items[].userIdstring (ObjectId)ID of the member who placed the order.
items[].typestring ('server' | 'network')Resource type; VPS renewal is not yet available.
items[].actionstring ('buy' | 'renew' | 'remove')Order action; remove applies to network orders.
items[].assetstring ('USD')Stored payment asset.
items[].amountstringInteger USD cents.
items[].usdAmountstring (optional)Optional USD amount in cents.
items[].paymentModestring ('balance' | 'x402')Payment mode: balance or x402.
items[].paymentIntentIdstring (ObjectId) | nullLinked payment intent ID, or null.
items[].statusstring ('pending' | 'provisioning' | 'completed' | 'failed' | 'refunded')Order fulfillment status.
items[].createdAtstring (ISO 8601)Order creation time.
items[].updatedAtstring (ISO 8601)Order last-update time.
items[].paymentTxHashstring (optional)Recorded blockchain transaction hash.
items[].serverobject (server orders)Saved server snapshot; available even if the server is deleted.
items[].server.planIdstringPurchased plan identifier.
items[].server.regionstringPurchased region code.
items[].server.monthsnumberPurchased billing term in calendar months.
items[].server.hostnamestringServer hostname.
items[].server.osstringRequested operating system identifier.
items[].server.imageIdstringSaved image identifier.
items[].server.autoRenewbooleanSaved auto-renew preference.
items[].server.originIdstring | nullSupplier instance identifier, when known.
items[].server.failureReasonstring | nullRecorded failure reason, if any.
items[].networkobject (network orders)Saved private network snapshot; available even if the network is deleted.
items[].network.namestringSaved private network name.
items[].network.regionstringPurchased region code.
items[].network.capacitynumberSaved private network capacity.
items[].network.monthsnumberBilling duration in months; 0 for removal.
items[].network.previousUntilstring (ISO 8601) | nullService expiry before the action, if known.
orders[].server.networkEnabledbooleanWhether private networking was included in the server order.
orders[].server.networkAmountstringPrivate-network charge included in the server order, in USD cents.
orders[].network.serverIdstringServer whose private-network add-on was activated.
orders[].network.serviceFromstring (ISO 8601)Start of the prorated private-network activation period.
orders[].network.serviceUntilstring (ISO 8601)The same service expiry as the server; there is no separate network term.