Skip to documentation
GETBearer token

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
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
JSON
{
  "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 · Optional

string

all, server or network. Defaults to all.

pageQuery · Optional

integer

Page number, 1–10000. Twenty records per page.

fromQuery · Optional

string

Inclusive ISO 8601 UTC start. Supply both from and to, or neither.

toQuery · Optional

string

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.

userIdstring

Authenticated reader ID. The team is fixed by authentication.

pageinteger

Requested page, starting at 1.

limit20

Fixed page size.

totalinteger

Total matching records in this fixed team.

itemsarray

Order 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[].amountstring

Integer USD cents.

items[].usdAmountstring (optional)

Optional USD amount in cents.

items[].paymentModestring ('balance' | 'x402')

Payment mode: balance or x402.

items[].paymentIntentIdstring (ObjectId) | null

Linked 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.planIdstring

Purchased plan identifier.

items[].server.regionstring

Purchased region code.

items[].server.monthsnumber

Purchased billing term in calendar months.

items[].server.hostnamestring

Server hostname.

items[].server.osstring

Requested operating system identifier.

items[].server.imageIdstring

Saved image identifier.

items[].server.autoRenewboolean

Saved auto-renew preference.

items[].server.originIdstring | null

Supplier instance identifier, when known.

items[].server.failureReasonstring | null

Recorded failure reason, if any.

items[].networkobject (network orders)

Saved private network snapshot; available even if the network is deleted.

items[].network.namestring

Saved private network name.

items[].network.regionstring

Purchased region code.

items[].network.capacitynumber

Saved private network capacity.

items[].network.monthsnumber

Billing duration in months; 0 for removal.

items[].network.previousUntilstring (ISO 8601) | null

Service expiry before the action, if known.

orders[].server.networkEnabledboolean

Whether private networking was included in the server order.

orders[].server.networkAmountstring

Private-network charge included in the server order, in USD cents.

orders[].network.serverIdstring

Server 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.