Servera Orders API

List and inspect your orders.

GitHub OpenAPI

Operations 4

GET /v1/orders List orders #
POST /v1/orders Place an order (pending + proforma) #
GET /v1/orders/{order_id} Get order #
POST /v1/invoices/{invoice_id}/pay Pay an invoice (credit, card token, or bank transfer) #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/servera-co-uk:servera-co-uk-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

servera-co-uk-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Servera Developers Orders API
  description: 'A REST API for your Servera account - the same operations you have in the customer

    area, available programmatically, plus an **MCP** endpoint so AI agents can use

    them as tools. Every request is authenticated with a scoped API key and rate-limited. ### What you can do

    Everything from your customer area, grouped by area (each needs the matching scope):


    - **VPS / VDS** - list servers; live status + CPU/RAM/disk/network metrics; power

    on/off/reboot; snapshots (create, roll back, delete); backups (create, delete);

    the per-VM firewall (view, enable/disable, rules add/update/delete/reorder - on

    standalone and behind-Virtual-Router VMs); and OS reinstall. - **VPC Networks** - list your private networks and manage their firewall (rules,

    options, VM↔VM isolation toggle). - **Virtual Routers** - overview, WireGuard peers, public-IP mappings, and

    attach/detach VMs behind the router. - **Domains & DNS** - list domains (nameservers, lock, DNSSEC, expiry) and read or

    edit DNS records (A, AAAA, CNAME, MX, TXT, SRV, CAA) on all DNS zones

    hosted with us. - **WAF** - list protected domains, enable/disable protection, toggle threat

    filtering, apply security presets, advanced rules, bot policy, IP/country

    allow-block lists, and read traffic logs. - **Email - delivery & protection** - delivery trace, RBL/blocklist checks, the

    RBL self-whitelist, trusted senders, and autoresponders. - **Billing** - list invoices, download their PDFs, and check your account balance. - **Orders** - list and inspect your orders. - **Support** - read tickets, open new ones, and post replies. - **IP protection** - check whether an IP is blocked on shared hosting, self-unblock

    it, and view the history. - **Users** - list account users, invite new ones, and resend invitations. - **Contacts** - list and manage your account contacts. - **Tags & comments** - organise your services and domains with tags (a predefined

    grouped catalog of international labels, or your own custom text) and a free-text

    comment on each; find services/domains by tag. Scopes `tags:read`/`tags:write`. - **System emails** - the transactional emails we''ve sent to your account. - **Activity log** - your account''s audited actions. ## Base URL

    ```

    https://developers.servera.lt

    ```

    Every `servera.*` brand has its own host (e.g. `https://developers.servera.co.uk`);

    they share this API. ## Quick start

    ```bash

    # Public - no auth

    curl https://developers.servera.lt/v1/status


    # Authenticated - list your VPS/VDS

    curl https://developers.servera.lt/v1/vps \

    -H "Authorization: Bearer sk_live_…"

    ```


    ## Authentication

    Create a scoped API key in your customer area (**Developers → API keys**), then

    send it as a bearer token on every request:

    ```

    Authorization: Bearer sk_live_…

    ```

    Keys are shown **once** at creation (only a hashed form is stored) and can be

    revoked anytime. Send keys over HTTPS only, in the header - never in a URL.'
  version: 1.0.0
servers:
- url: https://developers.servera.co.uk
  description: Production
tags:
- name: Orders
  description: List and inspect your orders.
paths:
  /v1/orders:
    get:
      tags:
      - Orders
      summary: List orders
      description: List your orders (newest first). Optional `status` filter; paginated.
      operationId: list_orders
      security:
      - ApiKey: []
      parameters:
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        description: Filter by status.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
        description: Maximum rows to return (1–200, default 50).
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          default: 0
          title: Offset
        description: Row offset for pagination (default 0).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                orders:
                - id: 555
                  number: ORD-2026-000555
                  status: active
                  subtotal: 25.0
                  tax: 5.25
                  total: 30.25
                  currency: EUR
                  payment_method: stripe
                  item_count: 1
                  invoice_number: SRV-2026-000123
                  invoice_hash: a1b2c3
                  created_at: '2026-08-01T10:00:00+00:00'
                total: 147
                limit: 50
                offset: 0
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Orders
      summary: Place an order (pending + proforma)
      description: 'Place an order for one or more catalog items.


        Creates a **PENDING** order and an **UNPAID proforma** invoice - it does NOT charge

        or provision anything on its own. Pay it with `POST /invoices/{invoice_id}/pay`

        (from account credit) or via the returned `pay_url`. Uses the exact same cart +

        checkout engine as the web panel.


        An **`Idempotency-Key`** header is REQUIRED - a retry with the same key returns the

        original result instead of creating a duplicate order.


        Returns: `order_number`, `status` (`pending`), the amount breakdown

        (`net` = be PVM, `vat`, `vat_rate` %, `gross` = su PVM; `total` = `gross`), and an

        `invoice` object with `id`, `invoice_number` (the proforma number), `document_type`

        (`proforma`), the same net/vat/gross, `pay_url` and `pay_via_api`.'
      operationId: create_order
      security:
      - ApiKey: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderCreateBody'
            example:
              items:
              - type: product
                product_id: 2629
                billing_cycle: monthly
                config_options:
                  '3':
                    value_id: 71
                hostname: app.example.com
                datacenter: lt
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                order_number: ORD-202608-01979
                order_id: 7192
                status: pending
                is_paid: false
                total: 7.85
                net: 6.49
                vat: 1.36
                vat_rate: 21.0
                gross: 7.85
                currency: EUR
                invoice:
                  id: 103361
                  invoice_number: SRD4026
                  document_type: proforma
                  net: 6.49
                  vat: 1.36
                  vat_rate: 21.0
                  gross: 7.85
                  public_hash: MmS69oAZ05d0I4L3RX6CRw3rChoki1M5
                  pay_url: https://servera.lt/saskaita/MmS69oAZ05d0I4L3RX6CRw3rChoki1M5
                  pay_via_api: POST /v1/invoices/103361/pay
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/orders/{order_id}:
    get:
      tags:
      - Orders
      summary: Get order
      description: One order with its domain and product line items.
      operationId: get_order
      security:
      - ApiKey: []
      parameters:
      - name: order_id
        in: path
        required: true
        schema:
          type: integer
          title: Order Id
        description: Order id (from GET /orders).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                id: 555
                number: ORD-2026-000555
                status: active
                subtotal: 25.0
                tax: 5.25
                total: 30.25
                currency: EUR
                payment_method: stripe
                promo_code: null
                promo_discount: 0.0
                invoice_number: SRV-2026-000123
                invoice_hash: a1b2c3
                created_at: '2026-08-01T10:00:00+00:00'
                domains:
                - id: 1
                  domain: example.com
                  type: registration
                  period: 1
                  price: 9.99
                  tld: com
                products:
                - id: 1
                  description: VDS Starter
                  product: VDS Starter
                  billing_cycle: monthly
                  quantity: 1
                  amount: 25.0
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/invoices/{invoice_id}/pay:
    post:
      tags:
      - Orders
      summary: Pay an invoice (credit, card token, or bank transfer)
      description: 'Pay one of your unpaid invoices (e.g. the proforma from a just-placed order).


        Three payment methods, all settling the invoice through the SAME engine the web

        panel uses - a successful payment triggers the exact same provisioning:


        - **`credit`** - pay from your account balance, **no browser step**. Returns **402**

        with the amount due + `pay_url` if the balance doesn''t cover the full total

        (nothing is deducted in that case).

        - **`spt`** - charge a card programmatically with a Stripe **Shared Payment Token**

        (`shared_payment_token`), **no browser step**. Built for agentic checkout: the

        buyer''s agent supplies a single-use, amount- and expiry-scoped token and we charge

        that card directly. Declined charges leave the invoice unpaid.

        - **`bank_transfer`** - leave the invoice unpaid and return a `pay_url` for a human

        to finish the payment in a browser.


        An **`Idempotency-Key`** header is REQUIRED. An already-paid invoice returns success

        without charging again (natural idempotency).


        On success the response carries the issued **VAT invoice**: `invoice_number` (the fiscal

        document number - the proforma is converted in place to a VAT invoice on payment),

        `document_type` (`vat`), `converted_from_proforma`, and the amount breakdown

        (`net` = be PVM, `vat`, `vat_rate` %, `gross` = su PVM; `total` = `gross`).


        There is **no per-payment spend cap by default**; one is applied only if the

        `developer_api_max_charge` setting is configured to a positive number.'
      operationId: pay_invoice
      security:
      - ApiKey: []
      parameters:
      - name: invoice_id
        in: path
        required: true
        schema:
          type: integer
          title: Invoice Id
        description: Invoice id (from GET /invoices).
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayInvoiceBody'
            example:
              method: credit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                invoice_id: 103361
                invoice_number: BVPS404
                document_type: vat
                converted_from_proforma: SRD4026
                status: paid
                is_paid: true
                method: credit
                credit_applied: 7.85
                total: 7.85
                net: 6.49
                vat: 1.36
                vat_rate: 21.0
                gross: 7.85
                currency: EUR
                order_number: ORD-202608-01979
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    OrderCreateBody:
      properties:
        items:
          items:
            $ref: '#/components/schemas/OrderItemModel'
          type: array
          title: Items
          description: One or more products to order.
      type: object
      required:
      - items
      title: OrderCreateBody
      example:
        items:
        - billing_cycle: monthly
          config_options:
            '3':
              value_id: 71
          datacenter: lt
          hostname: app.example.com
          product_id: 2629
          type: product
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrderItemModel:
      properties:
        type:
          type: string
          enum:
          - product
          - dedicated_mail_ip
          title: Type
          description: 'Item type. ''product'' = a new VPS/VDS/hosting or other catalog product. ''dedicated_mail_ip'' = the dedicated mail IPv4 add-on for an EXISTING cPanel hosting service: pass only `service_id` (check GET /hosting/{service_id}/dedicated-mail-ip first for `can_order` and the price).'
          default: product
        product_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Product Id
          description: Product id (from GET /products). Required for type 'product'.
        billing_cycle:
          anyOf:
          - type: string
          - type: 'null'
          title: Billing Cycle
          description: 'Billing cycle the product offers: monthly, quarterly, semiannually, annually, biennially or triennially. Required for type ''product''; an add-on always follows its service''s billing cycle.'
        service_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Service Id
          description: Existing hosting service id. Required for type 'dedicated_mail_ip'.
        quantity:
          type: integer
          maximum: 20.0
          minimum: 1.0
          title: Quantity
          description: How many (default 1).
          default: 1
        config_options:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Config Options
          description: 'Configurable options, shape {"<option_id>": {"value_id": <id>}} - e.g. the OS template.'
        hostname:
          anyOf:
          - type: string
          - type: 'null'
          title: Hostname
          description: Hostname/primary domain for cPanel or VPS products (e.g. 'app.example.com').
        datacenter:
          anyOf:
          - type: string
          - type: 'null'
          title: Datacenter
          description: Datacenter code, e.g. 'lt' or 'de'.
      type: object
      title: OrderItemModel
    PayInvoiceBody:
      properties:
        method:
          type: string
          enum:
          - credit
          - bank_transfer
          - spt
          title: Method
          description: How to settle the invoice. `credit` = pay from your account balance, no browser step (returns 402 with the amount due if the balance doesn't cover the total). `bank_transfer` = leave the invoice unpaid and return a `pay_url` for a human to complete the payment in a browser. `spt` = charge a card with a Stripe Shared Payment Token supplied in `shared_payment_token` - a fully programmatic card payment for agents, no browser step. See `shared_payment_token` below.
          default: credit
        shared_payment_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Shared Payment Token
          description: A single-use Stripe Shared Payment Token (`spt_...`) - required when `method='spt'`, ignored otherwise. The buyer's agent obtains it from the buyer's payment provider, scoped to a specific amount and expiry; we charge that card directly and, on success, provision the same way as a credit payment. If the token's own limits are exceeded the charge is declined and the invoice stays unpaid.
      type: object
      title: PayInvoiceBody
      example:
        method: credit
  securitySchemes:
    ApiKey:
      type: http
      description: 'Your `sk_live_…` API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer