---
title: "Pay for your Workspace and buy Credits"
description: "Save or change the card a Workspace pays with, buy Credits, see where your Credits came from, and bill client Workspaces through a Business Manager account."
url: "https://harnesty.com/en/docs/billing"
language: "en"
kind: "docs"
updated: "2026-11-30"
summary:
  - "Read the plans, the price of a Credit and the top-up terms with billing.plan.catalog, for free."
  - "Save a card before you create a Workspace, and buy a top-up when you need more Credits than your plan grants."
  - "Link a Workspace to a Business Manager account to bill it through that account instead of its own card."
  - "Approvals and people are always free."
sources:
  - title: "General REST and MCP reference"
    url: "https://harnesty.com/en/docs/api-reference"
  - title: "Workspace REST and MCP reference"
    url: "https://harnesty.com/en/docs/workspace-reference"
---

# Pay for your Workspace and buy Credits

Harnesty measures the work your Workspace does in Credits. Your plan grants your Workspace Credits each month, and a top-up, a purchase of extra Credits, adds more. Approvals and people are always free.

## In short

- Read the plans, the price of a Credit and the top-up terms with billing.plan.catalog, for free.
- Save a card before you create a Workspace, and buy a top-up when you need more Credits than your plan grants.
- Link a Workspace to a Business Manager account to bill it through that account instead of its own card.
- Approvals and people are always free.

## Read the plans and the price of a Credit

Call [`billing.plan.catalog`](https://harnesty.com/en/docs/api-reference#billing.plan.catalog@v1) before you choose a plan or buy a top-up. It names no Workspace, so you can call it before you have one. It returns:

- `tiers`: one record per plan, with its monthly price, the Credits it grants each month and what it makes available.
- `credit`: what one Credit costs, and how many micro-credits, the smaller unit, make one Credit.
- `topup`: the pack and its price, the fewest packs you can buy, the first-top-up bonus, and how long each stays valid.

This guide states no prices. The price list is the one place that does.

## Save a card before you create a Workspace

A Workspace that pays by card needs a saved card before you create it. Saving the card charges nothing.

1. Call [`billing.anchor.begin`](https://harnesty.com/en/docs/api-reference#billing.anchor.begin@v1) with `legalName`, the name you are billed under, and `addressCountry`, your country as its two-letter code. A United States address also needs its five-digit `addressPostalCode`. The answer carries your `billingIdentity`, the `setup` attempt, and the `clientToken` and `publishableKey` that the secure card form needs.
1. Show the card form. The card details go from the form straight to our payment provider and never reach us.
1. Once the form has saved the card, call [`billing.anchor.complete`](https://harnesty.com/en/docs/api-reference#billing.anchor.complete@v1) with `billingIdentity` and `setup`. The answer carries the card's brand, its last four digits and its expiry, and the `anchorReference` you create a Workspace with.

One `anchorReference` creates one Workspace. For each further Workspace, save a payment method again.

### Change the card a Workspace pays with

1. Call [`workspace.anchor.setup`](https://harnesty.com/en/docs/workspace-reference#workspace.anchor.setup@v1) to get what the card form needs, and save the new card in the form.
1. Call [`workspace.anchor.replace`](https://harnesty.com/en/docs/workspace-reference#workspace.anchor.replace@v1) with `kind` set to `setup` and, in `reference`, the `setup` that `workspace.anchor.setup` returned. To switch to a card you already saved, set `kind` to `saved` and give that card's 32 hex characters.

The answer carries the brand, the last four digits and the expiry of the card the Workspace now pays with. Your workspace audit log records the change, with who made it and under what authority. If the Workspace has no payment method on record yet, the call is refused: add one first.

## Buy more Credits with a top-up

A top-up buys packs of Credits and charges the payment method the Workspace pays with. You can buy top-ups once the paid terms are in force. The paid terms are the version of our terms that offers paid plans. Until then, Harnesty refuses every purchase and charges nothing.

1. Find the fewest packs you can buy in `topup`, in the answer of [`billing.plan.catalog`](https://harnesty.com/en/docs/api-reference#billing.plan.catalog@v1).
1. Call [`billing.topup.purchase`](https://harnesty.com/en/docs/workspace-reference#billing.topup.purchase@v1) with `packs`. Fewer packs than the minimum is refused, and no purchase opens. The answer carries the `purchase`, its `state` and, when the payment provider gives an invoice page, `invoiceLink`.
1. Read the purchase with [`billing.purchase.get`](https://harnesty.com/en/docs/workspace-reference#billing.purchase.get@v1) until its state changes.

A purchase is `open` while its invoice waits for payment, `landed` once the Credits are in your Workspace, and `failed` when the payment was refused. If a payment for the same top-up is already in progress, a retry is refused. Wait a few minutes and check your balance before you try again.

[`billing.purchase.list`](https://harnesty.com/en/docs/workspace-reference#billing.purchase.list@v1) lists every credit purchase of the Workspace, newest first, with its state and the Credits it added.

## See where your Credits came from

[`billing.credit.list`](https://harnesty.com/en/docs/workspace-reference#billing.credit.list@v1) lists every addition of Credits to your Workspace, newest first: each monthly grant, and each paid top-up with its first-top-up bonus. A refund that took Credits back has its own entry. Spending never appears in this list.

A page holds 25 entries unless you set `limit` from 1 to 100. To read the next page, pass the `next` value as `after`.

## Bill client Workspaces through a Business Manager account

A Business Manager is an account you use to invoice your clients' Workspaces. A Workspace linked to the account is billed through it, not from its own card.

1. Create the account with [`business.create`](https://harnesty.com/en/docs/api-reference#business.create@v1) and a name of up to 100 characters. You become its first owner, and the answer carries `account`.
1. Add the billing entity, the party that invoices your clients, with [`business.entity.add`](https://harnesty.com/en/docs/api-reference#business.entity.add@v1). Send the `account`, and the entity's `legalName` and `address`. Keep the `entity` the answer carries.
1. Save a card for that `account` and `entity`: call [`business.method.begin`](https://harnesty.com/en/docs/api-reference#business.method.begin@v1), show the card form, then call [`business.method.complete`](https://harnesty.com/en/docs/api-reference#business.method.complete@v1). Pass the `setup` that begin returns to complete, with the same `account` and `entity`.
1. Create a single-use code for one client Workspace with [`business.code.generate`](https://harnesty.com/en/docs/api-reference#business.code.generate@v1). Send the `account`, the `entity` that invoices that Workspace, and `tags`: up to 20 labels, such as a client or a branch, or an empty list. The Workspace never sees its tags. The answer carries `value`, the code itself, which is shown this one time only, and `code`, its reference, which you keep to list or revoke the code. Give the `value` to that Workspace before its `expiresAt`.
1. In the client Workspace, call [`workspace.business.link`](https://harnesty.com/en/docs/workspace-reference#workspace.business.link@v1) with `code` set to the `value` you received, exactly as you received it. The link state reads `active`, and the workspace audit log records the link.

A code stops working when it expires, when you revoke it, or when the person who created it is removed from the account. A code that a Workspace already used is refused. A Workspace that is already linked is refused too: the account it is linked to must close that link first.

[`business.link.list`](https://harnesty.com/en/docs/api-reference#business.link.list@v1) lists the Workspaces linked to the account, with the billing entity, the tags and the state of each link. [`business.link.close`](https://harnesty.com/en/docs/api-reference#business.link.close@v1) closes a link, and the Workspace pays from its own card again. Only an owner of the account can close a link, and a Workspace with no card of its own to go back to keeps its link.

### Read the statement and the invoices

- [`business.statement.get`](https://harnesty.com/en/docs/api-reference#business.statement.get@v1) shows what each linked Workspace consumed over a period of whole UTC days, with one row per link, per billing entity or per tag.
- [`business.invoice.list`](https://harnesty.com/en/docs/api-reference#business.invoice.list@v1) lists every invoice of the account's billing entities, newest first: each plan invoice, each Credit top-up and each custom charge, with the Workspace it bills and a link to the invoice document.

## Sources

1. [General REST and MCP reference](https://harnesty.com/en/docs/api-reference)
1. [Workspace REST and MCP reference](https://harnesty.com/en/docs/workspace-reference)
