Skip to content

[BUG] - GET /api/hosting/v1/orders endpoint does not return all orders #39

@neocite

Description

@neocite

Bug Description

The GET /api/hosting/v1/orders endpoint does not return all orders associated
with the authenticated account. Newly purchased hosting plans are missing from
the response.

Steps to Reproduce

  1. Purchase a new hosting plan via hPanel
  2. Call GET /api/hosting/v1/orders
  3. Inspect the response — the newly created order is not listed

Expected Behavior

GET /api/hosting/v1/orders should return all hosting orders associated with
the authenticated account, including recently purchased ones.

Actual Behavior

The endpoint returns only a subset of orders. Hosting plans purchased recently
do not appear in the response, even after several minutes.

Response received after purchasing a new hosting plan:

{
  "data": [
    {
      "id": ---,
      "client_id": ---,
      "subscription_id": "---",
      "created_at": "2025-06-03T21:24:19Z",
      "plan": {
        "name": "hostinger_premium_v2"
      },
      "status": "active"
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 25,
    "total": 1
  }
}

Additional Context

  • meta.total: 1 indicates only one order, but multiple hosting plans exist on
    the account
  • The missing order was purchased and confirmed via hPanel but never appears
    in the API response
  • This blocks programmatic workflows that depend on retrieving the order_id
    to create websites via POST /api/hosting/v1/websites

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions