Billing
These are the endpoints for Billing. More information coming soon.
GET/v1/billing-accounts
List billing accounts
Description for this endpoint is coming soon.
Path attributes
- Name
pageToken
- Type
- string
- Description
- Name
pageSize
- Type
- integer
- Description
Request
GET
/v1/billing-accountscurl 'https://rest.compute.cudo.org/v1/billing-accounts' \
-H 'Accept: application/json'
Response
{
"billingAccounts": [
{
"billingThreshold": {
"value": "string"
},
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"invoiceTime": "string",
"monthlySpend": "string",
"stripeRef": "string",
"supplyEnabled": "boolean",
"taxIds": [
{
"id": "string",
"type": "string",
"value": "string"
}
]
}
],
"pageSize": "integer",
"pageToken": "string"
}
POST/v1/billing-accounts
Create a billing account
Description for this endpoint is coming soon.
Request
POST
/v1/billing-accountscurl 'https://rest.compute.cudo.org/v1/billing-accounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"displayName": "string",
"email": "string",
"invoiceName": "string",
"referral": "string",
"taxIds": "array"
}'
Response
{
"billingThreshold": {
"value": "string"
},
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"invoiceTime": "string",
"monthlySpend": "string",
"stripeRef": "string",
"supplyEnabled": "boolean",
"taxIds": [
{
"id": "string",
"type": "string",
"value": "string"
}
]
}
GET/v1/billing-accounts/invoices
Get invoices
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
- Name
pageSize
- Type
- integer
- Description
- Name
startingAfter
- Type
- string
- Description
- Name
status
- Type
- string
- Description
Request
GET
/v1/billing-accounts/invoicescurl 'https://rest.compute.cudo.org/v1/billing-accounts/invoices' \
-H 'Accept: application/json'
Response
{
"hasMore": "boolean",
"invoices": [
{
"amountDue": "string",
"amountPaid": "string",
"amountRemaining": "string",
"autoAdvance": "boolean",
"billingReason": "string",
"created": "string",
"currency": "string",
"description": "string",
"dueDate": "string",
"hostedInvoiceUrl": "string",
"id": "string",
"number": "string",
"paidDate": "string",
"periodEnd": "string",
"periodStart": "string",
"status": "string"
}
]
}
GET/v1/billing-accounts/invoices/outstanding
Get outstanding invoices
Description for this endpoint is coming soon.
Request
GET
/v1/billing-accounts/invoices/outstandingcurl 'https://rest.compute.cudo.org/v1/billing-accounts/invoices/outstanding' \
-H 'Accept: application/json'
Response
{
"invoices": [
{
"amountDue": "string",
"amountPaid": "string",
"amountRemaining": "string",
"autoAdvance": "boolean",
"billingReason": "string",
"created": "string",
"currency": "string",
"description": "string",
"dueDate": "string",
"hostedInvoiceUrl": "string",
"id": "string",
"number": "string",
"paidDate": "string",
"periodEnd": "string",
"periodStart": "string",
"status": "string"
}
]
}
PATCH/v1/billing-accounts/{billingAccount.id}
Update billing account
Description for this endpoint is coming soon.
Body attributes
- Name
billingAccount
- Type
- object
- Description
- Name
updateMask
- Type
- string
- Description
Path attributes
- Name
billingAccount.id
- Type
- string
- Description
Request
PATCH
/v1/billing-accounts/{billingAccount.id}curl 'https://rest.compute.cudo.org/v1/billing-accounts/{billingAccount.id}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"billingAccount": "object",
"updateMask": "string"
}'
Response
{
"billingThreshold": {
"value": "string"
},
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"invoiceTime": "string",
"monthlySpend": "string",
"stripeRef": "string",
"supplyEnabled": "boolean",
"taxIds": [
{
"id": "string",
"type": "string",
"value": "string"
}
]
}
GET/v1/billing-accounts/{billingAccountId}/spend/details
Get spend details
Description for this endpoint is coming soon.
Path attributes
- Name
billingAccountId
- Type
- string
- Description
- Name
startTime
- Type
- string
- Description
- Name
endTime
- Type
- string
- Description
Request
GET
/v1/billing-accounts/{billingAccountId}/spend/detailscurl 'https://rest.compute.cudo.org/v1/billing-accounts/{billingAccountId}/spend/details' \
-H 'Accept: application/json'
Response
{
"spend": [
{
"amount": {
"value": "string"
},
"description": "string",
"projectId": "string",
"quantity": "number",
"unit": "string",
"unitAmount": {
"value": "string"
}
}
]
}
GET/v1/billing-accounts/{id}
Get a billing account
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
GET
/v1/billing-accounts/{id}curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}' \
-H 'Accept: application/json'
Response
{
"billingThreshold": {
"value": "string"
},
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"invoiceTime": "string",
"monthlySpend": "string",
"stripeRef": "string",
"supplyEnabled": "boolean",
"taxIds": [
{
"id": "string",
"type": "string",
"value": "string"
}
]
}
DELETE/v1/billing-accounts/{id}
Delete billing account
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
DELETE
/v1/billing-accounts/{id}curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}' \
-H 'Accept: application/json'
GET/v1/billing-accounts/{id}/details
Get billing account details
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
GET
/v1/billing-accounts/{id}/detailscurl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/details' \
-H 'Accept: application/json'
Response
{
"billingAccount": {
"billingThreshold": {
"value": "string"
},
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"invoiceTime": "string",
"monthlySpend": "string",
"stripeRef": "string",
"supplyEnabled": "boolean",
"taxIds": [
{
"id": "string",
"type": "string",
"value": "string"
}
]
},
"stripeCustomer": {
"balance": {
"value": "string"
},
"email": "string",
"id": "string",
"name": "string"
}
}
GET/v1/billing-accounts/{id}/payment-methods
Get payment methods
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
GET
/v1/billing-accounts/{id}/payment-methodscurl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods' \
-H 'Accept: application/json'
Response
{
"paymentMethods": [
{
"card": {
"brand": "string",
"country": "string",
"expMonth": "string",
"expYear": "string",
"fingerprint": "string",
"last4": "string"
},
"id": "string",
"isDefault": "boolean",
"paypal": {
"payerEmail": "string",
"payerId": "string"
},
"type": "string"
}
]
}
DELETE/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}
Remove payment method
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
- Name
paymentMethodId
- Type
- string
- Description
Request
DELETE
/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}' \
-H 'Accept: application/json'
Response
{
"id": "string",
"paymentMethodId": "string"
}
POST/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}/set-default
Set default payment method
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
- Name
paymentMethodId
- Type
- string
- Description
Request
POST
/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}/set-defaultcurl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}/set-default' \
-H 'Accept: application/json'
Response
{
"id": "string",
"paymentMethodId": "string"
}
GET/v1/billing-accounts/{id}/setup-intent
Get setup intent
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
GET
/v1/billing-accounts/{id}/setup-intentcurl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/setup-intent' \
-H 'Accept: application/json'
Response
{
"clientSecret": "string",
"id": "string"
}