Authorizations
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
curl --request GET \
--url https://rest.compute.cudo.org/v1/billing-accounts \
--header 'Authorization: <api-key>'{
"billingAccounts": [
{
"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>"
}
}
],
"pageSize": 123,
"pageToken": "<string>"
}Lists billing accounts that can be accessed by the current user.
curl --request GET \
--url https://rest.compute.cudo.org/v1/billing-accounts \
--header 'Authorization: <api-key>'{
"billingAccounts": [
{
"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>"
}
}
],
"pageSize": 123,
"pageToken": "<string>"
}Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
Was this page helpful?