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-accounts
curl 'https://rest.compute.cudo.org/v1/billing-accounts' \
-H 'Accept: application/json'

Response

{
    "billingAccounts": "array",
    "pageSize": "integer",
    "pageToken": "string"
}

POST/v1/billing-accounts

Create a billing account

Description for this endpoint is coming soon.

Request

POST
/v1/billing-accounts
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",
    "monthlySpend": "string",
    "stripeRef": "string",
    "supplyEnabled": "boolean"
}

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/invoices
curl 'https://rest.compute.cudo.org/v1/billing-accounts/invoices' \
-H 'Accept: application/json'

Response

{
    "hasMore": "boolean",
    "invoices": "array"
}

GET/v1/billing-accounts/invoices/outstanding

Get outstanding invoices

Description for this endpoint is coming soon.

Request

GET
/v1/billing-accounts/invoices/outstanding
curl 'https://rest.compute.cudo.org/v1/billing-accounts/invoices/outstanding' \
-H 'Accept: application/json'

Response

{
    "invoices": "array"
}

PATCH/v1/billing-accounts/{billingAccount.id}

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
    monthlySpend
    Type
    string
    Description
  • Name
    stripeRef
    Type
    string
    Description
  • Name
    supplyEnabled
    Type
    boolean
    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 '{
    "createBy": "string",
    "createTime": "string",
    "demandEnabled": "boolean",
    "displayName": "string",
    "monthlySpend": "string",
    "stripeRef": "string",
    "supplyEnabled": "boolean"
}'

Response

{
    "createBy": "string",
    "createTime": "string",
    "demandEnabled": "boolean",
    "displayName": "string",
    "id": "string",
    "monthlySpend": "string",
    "stripeRef": "string",
    "supplyEnabled": "boolean"
}

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/details
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{billingAccountId}/spend/details' \
-H 'Accept: application/json'

Response

{
    "spend": "array"
}

GET/v1/billing-accounts/{billingAccountId}/spend/{spendId}/payment-intent

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

GET
/v1/billing-accounts/{billingAccountId}/spend/{spendId}/payment-intent
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"
}

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

{
    "createBy": "string",
    "createTime": "string",
    "demandEnabled": "boolean",
    "displayName": "string",
    "id": "string",
    "monthlySpend": "string",
    "stripeRef": "string",
    "supplyEnabled": "boolean"
}

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}/details
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/details' \
-H 'Accept: application/json'

Response

{
    "billingAccount": "object",
    "stripeCustomer": "object"
}

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-methods
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/payment-methods' \
-H 'Accept: application/json'

Response

{
    "paymentMethods": "array"
}

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-default
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/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-intent
curl 'https://rest.compute.cudo.org/v1/billing-accounts/{id}/setup-intent' \
-H 'Accept: application/json'

Response

{
    "clientSecret": "string",
    "id": "string"
}