Claude Platform Docs
AdminLinked billing

Linked billing

Learn who pays, which customers are eligible, and whose terms apply so that you can decide whether Linked billing fits your business.

Linked billing lets your customers pay for the Claude usage in your product through their own Claude organization. It’s a feature of Claude Platform OAuth, so it works through an OAuth app that you register for your product. A customer links their organization to your app once. After that, you choose on each Claude API request whether you or the customer pays.

How it works

Suppose Acme uses your product and already pays Anthropic for its own Claude usage. You create a user profile for Acme: a record in your organization that stands for that customer. Someone at Acme clicks the Link your Claude organization button in your product. On Claude’s approval page, they approve your app. Approving needs the Admin or Billing role in Acme’s Claude organization. They can also set a monthly spend cap for it.

From then on, your back end sends Acme’s Claude API requests as your app’s operator service account, a non-human account in your Claude organization. Only that account can bill linked customers. A customer’s own OAuth access token counts as that account, so a request with it can bill that customer and no other. Your back end marks the requests that Acme pays for, and Anthropic bills those to Acme’s organization, not to yours, at Acme’s own rates. The Linked Billing Beta Terms set out how customers are charged.

Linking creates a connection, which ties the customer’s Claude organization to their user profile. The connection belongs to the customer’s organization, not to the person who approved it, so it stays if that person leaves. These are the usual ways a connection ends:

  • The customer unlinks your app.
  • An Admin of your organization unlinks the customer in the Claude Console.
  • Your back end ends the connection through the API.

There are also less common ways a connection ends. Anthropic doesn’t tell you when a customer unlinks, so check whether customers are still linked.

Choose who pays on each request

Each request that your operator service account sends for a linked customer names their user profile in the anthropic-user-profile-id header. What’s in the request’s body decides who pays:

  • The customer pays when the body’s billing_policy field sets bill_to to user_profile.
  • You pay when bill_to is self or when the body has no billing_policy.

You can therefore bill some of a customer’s usage to them and pay for the rest yourself. A request sent with the customer’s own access token instead bills only that customer: see Use a separate credential for each customer.

When a request is refused

If Anthropic can’t bill the customer for a request, the Claude API refuses the request. It never bills you instead. These are the usual causes:

  • The customer reached the spend cap that they set for your app, or their organization reached its monthly spend limit.
  • No credit on the customer’s account can pay for the request.
  • The connection has ended.

You can send a refused request again as one that you pay for. For each refusal and its fix, see Linked billing errors.

When to use it

Linked billing fits a product whose users are mostly Claude Platform customers with their own Claude organization. To offer it, your own organization must pay Anthropic directly, through prepaid credits or invoiced billing.

Some requests can’t be billed to a customer. To serve them, send them as requests that you pay for:

Eligible customers

A customer can be billed this way only if their Claude organization pays Anthropic directly for its API usage, through prepaid credits or invoiced billing. These organizations can’t be billed this way:

  • Organizations billed through a cloud marketplace (AWS, Google Cloud, or Azure)
  • Organizations that have only a Claude subscription with no Claude API access of their own

An organization that has only a Claude subscription can’t link your app. An organization billed through a cloud marketplace is refused either when it tries to link or on every request that you bill to it. So a completed link doesn’t show that such an organization can be billed.

Which credits can pay

Not all credit can pay for a request that an app bills to a customer. What can pay depends on the organization that’s billed:

  • When your app bills a customer: the customer’s organization
  • When another company’s app bills you: your own organization

Credit bought in the Claude Console for that organization can pay for these requests. If that organization has invoiced billing, it’s invoiced for these requests.

Some promotional credits from Anthropic can’t pay for these requests. These include the monthly API credits that come with Claude Max, Ultra, and Team plans. Credits from Anthropic’s partner, VC, and startup programs aren’t eligible to pay for these requests.

When nothing on that organization’s account can pay for a request, the Claude API can refuse it with a 402. The response doesn’t say whether a lack of credit or a spend limit caused the refusal. See linked_organization_spend_limit_reached.

Which endpoints can bill a customer

EndpointCan bill a customer
The Messages API (/v1/messages)Yes, except with billable code execution
OpenAI SDK compatibility (/v1/chat/completions)Yes
Message BatchesNo
Claude Managed AgentsNo

To ask for another endpoint, contact Anthropic support.

Whose terms and limits apply

Requests that you bill to a customer still run in your organization:

SettingApplies to these requests
Your rate limits, usage tier, model access, and service tierYes
Your usage tier’s monthly spend capYes
Your data retention and encryption keysYes
The customer’s zero data retention (ZDR), business associate agreement (BAA), customer-managed encryption keys (CMEK), and IP allowlistNo
The customer’s spend cap for your app and their organization’s monthly spend limitYes
The spend limits you set for your organization and its workspacesNo

Once your organization reaches your usage tier’s monthly spend cap, the Claude API refuses all its requests, including ones that bill a customer: see enforced_spend_limit_reached. Usage that you bill to a customer doesn’t count toward that cap.

What you may bill

Bill a customer only for the usage that they direct you to make. That’s the Claude usage that the customer and their users cause in your product. Don’t bill them for your own usage, such as testing, evaluations, or work for other customers. The Claude API can’t check this for you, so it’s your responsibility. You accept the Linked Billing Beta Terms when you create your app.

Who supports the customer

You support your customers for everything about your app, including the Claude usage that you bill to them. Anthropic gives them only the approval page and the Linked platforms page in their Claude Console. All other questions about your app come to you, so tell your customers how to reach you.

Rules and special cases

Some features can’t bill a customer, and some treat billing_policy in their own way.

If you use Message Batches

Send the requests in a message batch as ones that you pay for: with bill_to set to self or without billing_policy. They’re billed to you as usual. A request in a batch that’s marked for the customer is refused. Its result is errored with an invalid_request_error, and nobody is billed for it. The batch’s other requests run as usual.

If you use code execution

A request that bills a customer can’t use billable code execution features: the API refuses it with a 400. Send such requests as ones that you pay for.

If you count tokens

The token counting endpoint (/v1/messages/count_tokens) accepts the billing_policy field when the request has the user-profiles-billing-2026-10-01 beta header, and ignores the field. You don’t need to remove it before you count tokens.

Availability

Linked billing
Status
Beta
API
  • Messages API
Beta header
Requires
Models
  • All models
Note

Only requests that send billing_policy need the beta header.

Was this page helpful?