---
title: "Add credit to a billing account"
method: POST
path: "/v1/billing-accounts/{id}/credit"
tags: ["Billing"]
---

# Add credit to a billing account

`POST /v1/billing-accounts/{id}/credit`

## Request

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

Adds credit to a billing account using a specified payment method.

## Path parameters

- `id` string, required

## Query parameters

- `amount.value` string
- `paymentMethod` string, required
- `radarSessionId` string

## Response `200`

A successful response.

- CreateBillingAccountCreditPaymentResponse
  - `paymentIntent` PaymentIntent, required
    - `clientSecret` 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)
