---
title: "Add a payment method"
method: GET
path: "/v1/billing-accounts/{id}/setup-intent"
tags: ["Billing"]
---

# Add a payment method

`GET /v1/billing-accounts/{id}/setup-intent`

## Request

- Base URL: `https://rest.compute.cudo.org`
- URL: `https://rest.compute.cudo.org/v1/billing-accounts/{id}/setup-intent`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/cudocompute/apis/cudo-compute-service/docs/v1/billing-accounts/:id/setup-intent/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a setup intent for adding a payment method to a billing account.

## Path parameters

- `id` string, required

## Response `200`

A successful response.

- BillingAccountSetupIntent
  - `clientSecret` string, required
  - `id` string, required

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/cudocompute/apis/cudo-compute-service.md) - [All operations](https://skmtc.dev/cudocompute/apis/cudo-compute-service/llms.txt) - [OpenAPI document](https://skmtc.dev/cudocompute/apis/cudo-compute-service/revisions/93dc40dababc?raw)
