You can also get billing information from the API. The information will consist of transactions including deposits and usage charges.

Request

Send a GET request to https://api.fluidstack.io/v1/payment/billing with credentials API key and API token and a list of transactions for the account will be returned.

Example

curl -H "Content-Type: application/json" --request GET '<https://api.fluidstack.io/v1/payment/billing>' -u '<apikey>:<apitoken>'

Response

Example

{
    "balance": 999.17,
    "transactions": [
        {
            "Account Created Date (from User)": [
                "2023-04-21T13:51:39.000Z"
            ],
            "Amount": -0.057,
            "Created": "2023-04-23T09:52:45.000Z",
            "ID": "server: xxxxxxxxxx",
            "Instant Deploy Charge": [
                -0.057
            ],
            "Instant Deploys": [
                "xxxxxxxx"
            ],
            "Notes": "Linked transaction to server",
            "Server Status": [
                "Terminated"
            ],
            "Status": "Completed Transaction",
            "User": [
                "xxxxxxxxx"
            ],
            "id": "xxxxxxxxxx"
        },
				{
            "Account Created Date (from User)": [
                "2023-04-21T13:51:39.000Z"
            ],
            "Amount": -0.14866666666666667,
            "Created": "2023-04-22T16:57:17.000Z",
            "ID": "server: xxxxxxxxx",
            "Instant Deploy Charge": [
                -0.14866666666666667
            ],
            "Instant Deploys": [
                "xxxxxxxxxx"
            ],
            "Notes": "Linked transaction to server",
            "Server Status": [
                "Terminated"
            ],
            "Status": "Completed Transaction",
            "User": [
                "xxxxxxxxx"
            ],
            "id": "xxxxxxxxxxxx"
        }
}