Docs

Pay for your Workspace and buy Credits

Updated View as Markdown

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.

Read the plans and the price of a Credit

Call billing.plan.catalog 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 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.
  2. Show the card form. The card details go from the form straight to our payment provider and never reach us.
  3. Once the form has saved the card, call billing.anchor.complete 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 to get what the card form needs, and save the new card in the form.
  2. Call workspace.anchor.replace 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.
  2. Call billing.topup.purchase 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.
  3. Read the purchase with billing.purchase.get 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 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 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 and a name of up to 100 characters. You become its first owner, and the answer carries account.
  2. Add the billing entity, the party that invoices your clients, with business.entity.add. Send the account, and the entity's legalName and address. Keep the entity the answer carries.
  3. Save a card for that account and entity: call business.method.begin, show the card form, then call business.method.complete. Pass the setup that begin returns to complete, with the same account and entity.
  4. Create a single-use code for one client Workspace with business.code.generate. 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.
  5. In the client Workspace, call workspace.business.link 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 lists the Workspaces linked to the account, with the billing entity, the tags and the state of each link. business.link.close 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 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 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
  2. Workspace REST and MCP reference