Skip to main content
GET
/
v1
/
billing-accounts
/
{id}
/
details
Get billing account details
curl --request GET \
  --url https://rest.compute.cudo.org/v1/billing-accounts/{id}/details \
  --header 'Authorization: <api-key>'
{
  "billingAccount": {
    "billingAddress": {
      "city": "<string>",
      "country": "<string>",
      "line1": "<string>",
      "line2": "<string>",
      "name": "<string>",
      "phone": "<string>",
      "postalCode": "<string>",
      "state": "<string>"
    },
    "billingThreshold": {
      "value": "<string>"
    },
    "createBy": "<string>",
    "createTime": "2023-11-07T05:31:56Z",
    "creditBalance": {
      "value": "<string>"
    },
    "creditBalanceRecharge": {
      "autoRecharge": true,
      "high": {
        "value": "<string>"
      },
      "low": {
        "value": "<string>"
      },
      "transaction": {
        "amount": {
          "value": "<string>"
        },
        "createTime": "2023-11-07T05:31:56Z",
        "description": "<string>",
        "id": "<string>",
        "lastPaymentError": {
          "code": "<string>",
          "declineCode": "<string>"
        },
        "latestCharge": {
          "amount": {
            "value": "<string>"
          },
          "createTime": "2023-11-07T05:31:56Z",
          "failureCode": "<string>",
          "paid": true,
          "refunded": true,
          "status": "<string>"
        },
        "status": "<string>",
        "succeeded": true
      }
    },
    "deleteTime": "2023-11-07T05:31:56Z",
    "displayName": "<string>",
    "hourlySpendLimit": {
      "value": "<string>"
    },
    "hourlySpendRate": {
      "value": "<string>"
    },
    "id": "<string>",
    "invoiceTime": "2023-11-07T05:31:56Z",
    "monthlySpend": "<string>",
    "monthlySpendLimit": {
      "value": "<string>"
    },
    "nextInvoiceTotal": {
      "value": "<string>"
    },
    "paymentTerms": "PAYMENT_TERMS_UNSPECIFIED",
    "purgeTime": "2023-11-07T05:31:56Z",
    "state": "STATE_UNSPECIFIED",
    "stripeRef": "<string>",
    "taxId": {
      "id": "<string>",
      "type": "<string>",
      "value": "<string>"
    }
  },
  "stripeCustomer": {
    "balance": {
      "value": "<string>"
    },
    "email": "<string>",
    "id": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

id
string
required

Response

A successful response.

billingAccount
object
required
stripeCustomer
object
required