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.
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.
- Call
billing.anchor.beginwithlegalName, the name you are billed under, andaddressCountry, your country as its two-letter code. A United States address also needs its five-digitaddressPostalCode. The answer carries yourbillingIdentity, thesetupattempt, and theclientTokenandpublishableKeythat the secure card form needs. - Show the card form. The card details go from the form straight to our payment provider and never reach us.
- Once the form has saved the card, call
billing.anchor.completewithbillingIdentityandsetup. The answer carries the card's brand, its last four digits and its expiry, and theanchorReferenceyou 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
- Call
workspace.anchor.setupto get what the card form needs, and save the new card in the form. - Call
workspace.anchor.replacewithkindset tosetupand, inreference, thesetupthatworkspace.anchor.setupreturned. To switch to a card you already saved, setkindtosavedand 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.
- Find the fewest packs you can buy in
topup, in the answer ofbilling.plan.catalog. - Call
billing.topup.purchasewithpacks. Fewer packs than the minimum is refused, and no purchase opens. The answer carries thepurchase, itsstateand, when the payment provider gives an invoice page,invoiceLink. - Read the purchase with
billing.purchase.getuntil 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.
- Create the account with
business.createand a name of up to 100 characters. You become its first owner, and the answer carriesaccount. - Add the billing entity, the party that invoices your clients, with
business.entity.add. Send theaccount, and the entity'slegalNameandaddress. Keep theentitythe answer carries. - Save a card for that
accountandentity: callbusiness.method.begin, show the card form, then callbusiness.method.complete. Pass thesetupthat begin returns to complete, with the sameaccountandentity. - Create a single-use code for one client Workspace with
business.code.generate. Send theaccount, theentitythat invoices that Workspace, andtags: up to 20 labels, such as a client or a branch, or an empty list. The Workspace never sees its tags. The answer carriesvalue, the code itself, which is shown this one time only, andcode, its reference, which you keep to list or revoke the code. Give thevalueto that Workspace before itsexpiresAt. - In the client Workspace, call
workspace.business.linkwithcodeset to thevalueyou received, exactly as you received it. The link state readsactive, 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.getshows 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.listlists 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.