GET
/
account
/
billinghistory
curl --request GET \
  --url https://api.bytio.com/v1/account/billinghistory \
  --header 'X-API-KEY: <api-key>'
{
  "status": "ok",
  "pagination": {
    "total_pages": 1,
    "current_page": 1,
    "total_count": 123,
    "per_page": 123
  },
  "billing_histories": [
    {
      "type": "invoice",
      "created_on": "2023-11-07T05:31:56Z",
      "name": "December 2025",
      "usage_charges_cents": 123,
      "standing_charges_cents": 123,
      "tax_cents": 123,
      "total_cents": 123,
      "invoice_url": "<string>",
      "reciept_url": "<string>",
      "payment_type": "manual_top_up",
      "status": "succeeded",
      "payment_method": {
        "type": "paypal",
        "email": "adam.smith@email.com",
        "brand": "visa",
        "expires_month": 11,
        "expires_year": 2036,
        "last4": 4005,
        "wallet": "<string>"
      }
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

filter
enum<string>

The type of billing history entries to retrieve.

all to retrieve all billing history entries. invoice to retrieve only monthly invoices. payment to retrieve only payments (account balance top ups).

Available options:
all,
invoice,
payment
page
integer
default:
1

The page of results to return.

Required range: 1 < x < 1000
count
integer
default:
10

The number of billing history entries to return per-page between 1 and 100. The default is 10.

Required range: 1 < x < 100

Response

200
application/json
Success
status
enum<string>
Available options:
ok
pagination
object
billing_histories
object[]