List billing activity

Return billing transactions or account-credit activity. Use kind=transaction for invoice payments and refunds; use kind=credit for account-credit movements. Transaction method is a canonical machine enum (card, swish, bankgiro, sepa, accountCredit, alipay, paypal, invoice, other, or null). Display text such as Card payment is carried separately in methodLabel; card-backed hosted checkout and wallet flows are normalized to method: card.

Billing & Orders Billing

Authentication

Required API scope: read:billing

Use Authorization: Bearer <token> for API keys. Dashboard sessions may also use hostup_session.

Context

Query Parameters

kind string · enum

`transaction` lists payment/refund rows. `credit` lists account-credit ledger rows.

transaction
credit
page integer · min: 0

Zero-based transaction activity page. Used only for `kind=transaction`.

Headers

Accept Example
Content-Type Example

Responses

200 Billing activity page.
kind string · enum · Example: transaction
transaction
entries array<object>
entries[].id string required · Example: txn_01hxa3b4c5d6e7f8g9h0j1k2m3
entries[].description stringnull required · Example: Payment for invoice 202664056
entries[].method stringnull · enum required · Example: card

Canonical payment method enum. Card-backed hosted checkout and wallet flows are all `card`.

card
accountCredit
swish
bankgiro
sepa
alipay
paypal
invoice
other
entries[].methodLabel stringnull required · Example: Card payment

Human-readable display label. Use this for UI text instead of branching on upstream gateway names.

entries[].amount number required · Example: 98.75

Signed amount in major currency units. Payments into the account are positive; outgoing/refund rows may be negative.

entries[].currencyCode string required · Example: SEK
entries[].createdAt stringnull required · Example: 2026-04-28T09:47:47.000Z
entries[].invoiceId stringnull required · Example: inv_01hxa3b4c5d6e7f8g9h0j1k2m3
entries[].invoiceNumber stringnull required · Example: 202664056
hasMore boolean · Example: false
400 Invalid `kind` query parameter.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on `detail`.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when `code` is `invalid_request`.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
401 Unauthorized. Authentication is required.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on `detail`.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when `code` is `invalid_request`.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
403 Forbidden. The caller lacks a required scope or does not own the resource.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on `detail`.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when `code` is `invalid_request`.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
404 Not found. The resource does not exist or is not owned by the caller.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on `detail`.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when `code` is `invalid_request`.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
429 Rate limited. Retry after the limit resets. 429 responses include `Retry-After` seconds plus `X-RateLimit-*` headers.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on `detail`.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when `code` is `invalid_request`.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
500 Internal error. Retry later or contact support if the issue persists.
type string · Example: https://developer.hostup.se/errors/invalid_request
title string · Example: Validation failed
status integer · Example: 400
detail string · Example: The request body failed validation.
code string · Example: invalid_request

Stable machine-readable code. Branch on this field, not on `detail`.

instance string · Example: /api/v2/orders
requestId string · Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3
timestamp string · Example: 2026-04-27T12:34:56.000Z
errors array<object>

Field-level validation errors when `code` is `invalid_request`.

errors[].pointer string required · Example: /items/0/eppCode
errors[].detail string required · Example: `eppCode` is required for this transfer.
errors[].code string required · Example: missing_required
extensions object
GET https://cloud.hostup.se/api/v2/billing/activity
For AI assistants
View as Markdown
cURL
curl -X GET "https://cloud.hostup.se/api/v2/billing/activity" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
Response
{
  "kind": "transaction",
  "entries": [
    {
      "id": "txn_01hxa3b4c5d6e7f8g9h0j1k2m3",
      "description": "Payment for invoice 202664056",
      "method": "card",
      "methodLabel": "Card payment",
      "amount": 98.75,
      "currencyCode": "SEK",
      "createdAt": "2026-04-28T09:47:47.000Z",
      "invoiceId": "inv_01hxa3b4c5d6e7f8g9h0j1k2m3",
      "invoiceNumber": "202664056"
    }
  ],
  "hasMore": false
}