Billing
These are the endpoints for Billing. More information coming soon.
List billing accounts
Description for this endpoint is coming soon.
Path attributes
- Name
pageToken
- Type
- string
- Description
- Name
pageSize
- Type
- integer
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts' \
-H 'Accept: application/json'
Response
{
"billingAccounts": "array",
"pageSize": "integer",
"pageToken": "string"
}
Create a billing account
Description for this endpoint is coming soon.
Request
curl '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"
}'
Response
{
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"stripeRef": "string",
"supplyEnabled": "boolean"
}
Get outstanding spend
Description for this endpoint is coming soon.
Path attributes
- Name
pageNumber
- Type
- integer
- Description
- Name
pageSize
- Type
- integer
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/spend' \
-H 'Accept: application/json'
Response
{
"outstandingBillingAccountSpend": "array"
}
Update billing account
Description for this endpoint is coming soon.
Body attributes
- Name
createBy
- Type
- string
- Description
- Name
createTime
- Type
- string
- Description
- Name
demandEnabled
- Type
- boolean
- Description
- Name
displayName
- Type
- string
- Description
- Name
stripeRef
- Type
- string
- Description
- Name
supplyEnabled
- Type
- boolean
- Description
Path attributes
- Name
billingAccount.id
- Type
- string
- Description
- Name
updateMask
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{billingAccount.id}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"stripeRef": "string",
"supplyEnabled": "boolean"
}'
Response
{
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"stripeRef": "string",
"supplyEnabled": "boolean"
}
Get spend details
Description for this endpoint is coming soon.
Path attributes
- Name
billingAccountId
- Type
- string
- Description
- Name
spendId
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{billingAccountId}/spend/{spendId}/details' \
-H 'Accept: application/json'
Response
{
"billingAccountName": "string",
"projects": "array",
"spend": "object"
}
Get payment intent for spend
Description for this endpoint is coming soon.
Path attributes
- Name
billingAccountId
- Type
- string
- Description
- Name
spendId
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{billingAccountId}/spend/{spendId}/payment-intent' \
-H 'Accept: application/json'
Response
{
"amount": "string",
"clientSecret": "string",
"currency": "string",
"id": "string",
"lastPaymentErrorCode": "string",
"paymentMethod": "string",
"status": "string"
}
Refresh payment status for spend
Description for this endpoint is coming soon.
Path attributes
- Name
billingAccountId
- Type
- string
- Description
- Name
spendId
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{billingAccountId}/spend/{spendId}/refresh' \
-H 'Accept: application/json'
Response
{
"billingAccountId": "string",
"endTime": "string",
"finalised": "boolean",
"paymentIntentId": "string",
"paymentSuccess": "boolean",
"spend": "object",
"startTime": "string",
"uid": "string"
}
Get a billing account
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}' \
-H 'Accept: application/json'
Response
{
"createBy": "string",
"createTime": "string",
"demandEnabled": "boolean",
"displayName": "string",
"id": "string",
"stripeRef": "string",
"supplyEnabled": "boolean"
}
Delete billing account
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}' \
-H 'Accept: application/json'
Get billing account details
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/details' \
-H 'Accept: application/json'
Response
{
"billingAccount": "object",
"stripeCustomer": "object"
}
Get payment methods
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods' \
-H 'Accept: application/json'
Response
{
"paymentMethods": "array"
}
Remove payment method
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
- Name
paymentMethodId
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}' \
-H 'Accept: application/json'
Response
{
"id": "string",
"paymentMethodId": "string"
}
Set default payment method
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
- Name
paymentMethodId
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods/{paymentMethodId}/set-default' \
-H 'Accept: application/json'
Response
{
"id": "string",
"paymentMethodId": "string"
}
Get setup intent
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/setup-intent' \
-H 'Accept: application/json'
Response
{
"clientSecret": "string",
"id": "string"
}
Spend history
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/spend' \
-H 'Accept: application/json'
Response
{
"billingAccountSpendHistory": "array"
}
Outstanding spend
Description for this endpoint is coming soon.
Path attributes
- Name
id
- Type
- string
- Description
Request
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/spend/current' \
-H 'Accept: application/json'
Response
{
"billingAccountId": "string",
"endTime": "string",
"finalised": "boolean",
"paymentIntentId": "string",
"paymentSuccess": "boolean",
"spend": "object",
"startTime": "string",
"uid": "string"
}