---
title: "Billing details API: own the \"Bill to\" on your invoices"
description: "Set the company, address, country, tax id and email printed under \"Bill to\" on your invoices through one account route; the owner or billing role saves."
canonical: https://pentestllm.ai/docs/billing-details
generated: 2026-11-27T06:25:49.132Z
source: https://pentestllm.ai/docs/billing-details
base_url: https://api.pentestllm.ai/v1
---

[Docs](https://pentestllm.ai/docs) / API reference

# Billing details API

Updated 2026-11-22. Published by PentestLLM.

The lines that appear under “Bill to” on your invoices sit on the account, and you read and write them through two routes under `https://api.pentestllm.ai/v1`. Because each invoice PDF is drawn from the values current at download time, enter them before you pull one.

## Read your billing details

`GET /v1/account/billing-details` returns `data` holding every field below as the invoices currently print it, each null or empty until saved. Anyone signed in to the [console](https://app.pentestllm.ai/console) on the account may read it; a request carrying neither a sign-in nor a key answers `401 unauthorized`.

## Save your billing details

`PATCH /v1/account/billing-details` records them. An API key will not reach either route; whatever its tier, admin keys among them, it draws a 403, as read and write alike expect a console session, which you use on the console Account page beneath International invoice. A field you omit is untouched; null, an empty string, or `[]` for `address_lines`, wipes it. A signed-in member without the owner or billing role gets `403 forbidden`, and a malformed body `400 invalid_request`.

| Field | Type | Notes |
| --- | --- | --- |
| `company` | string or null | The customer name printed; the account's own name when null. |
| `address_lines` | array | Up to 4 lines, 120 characters each. |
| `country` | string or null | The billing country. |
| `tax_id` | string or null | A VAT, GST, EIN or any tax number, printed as entered. |
| `email` | string or null | Printed on the invoice; the account's email when null. |

## Example

On the console Account page, under International invoice, this is the `PATCH /v1/account/billing-details` body it submits:

```
{"company": "Initech Security Ltd", "address_lines": ["7 Harbour Rd", "Dublin"], "country": "IE", "tax_id": "IE1234567X"}
```

Pull an [invoice](https://pentestllm.ai/docs/invoices) next and those entries sit under “Bill to”. The route takes no API key; one is answered with 403.

## Questions

### Who may edit these?

Both the read and the save run under a console sign-in, and an API key of any level is refused with 403. Once signed in, the owner or the billing role edits them, from the International invoice part of the Account page.

### I set a field by mistake, how do I clear it?

Pass null or an empty string as that field’s value, or an empty array to clear address_lines. Whatever you leave out keeps its present value, so the request changes only the fields it carries.

### Where do the values land?

Inside the "Bill to" block on each invoice PDF, built from whatever is on file at the instant you download. Set them ahead of time, and the tax id is carried through verbatim.

## Read next

- [MCP servers](https://pentestllm.ai/docs/mcp-servers)
- [Log export](https://pentestllm.ai/docs/exports)
- [Invoices](https://pentestllm.ai/docs/invoices)
- [Statement signing key](https://pentestllm.ai/docs/statements-public-key)
- [Keys and scopes](https://pentestllm.ai/docs/keys)
- [Usage and signed receipts](https://pentestllm.ai/docs/usage-and-receipts)
- [Spend limits and balance](https://pentestllm.ai/docs/spend-limits)
- [Redaction and guardrails](https://pentestllm.ai/docs/redaction-and-guardrails)
- [Sessions](https://pentestllm.ai/docs/sessions)
- [Embeddings, rerank and moderation](https://pentestllm.ai/docs/retrieval-and-moderation)
- [Batch files](https://pentestllm.ai/docs/files)
- [Batches](https://pentestllm.ai/docs/batches)
- [Status and proof feeds](https://pentestllm.ai/docs/status-and-proof)
- [Count tokens](https://pentestllm.ai/docs/count-tokens)
- [Usage by app](https://pentestllm.ai/docs/stats-apps)
- [App sign-in keys](https://pentestllm.ai/docs/auth-keys)
- [Webhook deliveries](https://pentestllm.ai/docs/webhooks-deliveries)
- [Docs: connect in two minutes](https://pentestllm.ai/docs)
- [Pricing](https://pentestllm.ai/pricing)
