List billing activity

GET /api/v2/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.

Entry amount values are in major units of the entry's currencyCode.

Billing & Orders Billing

Authentication

Required API scope: read:billing

Authenticate with an API key in the Authorization: Bearer <token> header.

Context

Query Parameters

kind string · default: transaction · enum

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

transaction
credit
page integer · min: 0 · default: 0

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

Headers

Authorization Bearer <token>
Accept application/json

Responses

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

Nullable: may be null when not applicable.

entries[].method string · nullable · enum required · Example: card

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

card
accountCredit
swish
bankgiro
sepa
alipay
crypto
paypal
invoice
other
entries[].methodLabel string · nullable 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 string · nullable required · Example: 2026-04-28T09:47:47.000Z

Nullable: may be null when not applicable.

entries[].invoiceId string · nullable required · Example: inv_01hxa3b4c5d6e7f8g9h0j1k2m3

Nullable: may be null when not applicable.

entries[].invoiceNumber string · nullable required · Example: 202664056

Nullable: may be null when not applicable.

hasMore boolean required · Example: false
BillingCreditActivity
kind string · enum required · Example: credit
credit
entries array<object> required
entries[].id string required · Example: credit_01hxa3b4c5d6e7f8g9h0j1k2m3
entries[].description string · nullable required · Example: Credit applied

Nullable: may be null when not applicable.

entries[].amount number required · Example: -25.5

Signed credit movement in major currency units.

entries[].balanceAfter number · Example: 74.5
entries[].currencyCode string required · Example: SEK
entries[].createdAt string · nullable required · Example: 2026-04-18T11:00:00.000Z

Nullable: may be null when not applicable.

entries[].invoiceId string · Example: inv_01hxa3b4c5d6e7f8g9h0j1k2m3
entries[].invoiceNumber string · nullable · Example: 202600002

Nullable: may be null when not applicable.

hasMore boolean required · 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
// Invoice payment transaction
{
  "kind": "transaction",
  "entries": [
    {
      "id": "txn_06ex6zs4w83tanyv1e5bnn2j4c",
      "description": "Payment for invoice 202664056",
      "method": "card",
      "methodLabel": "Card payment",
      "amount": 98.75,
      "currencyCode": "EUR",
      "createdAt": "2026-04-28T09:47:47.000Z",
      "invoiceId": "inv_06ex6yz35kn5w7dgzpzg4f4v3g",
      "invoiceNumber": "202664056"
    }
  ],
  "hasMore": false
}

// Account-credit movement
{
  "kind": "credit",
  "entries": [],
  "hasMore": false
}