Skip to main content

Last updated November 25, 2026

A customer is the account you bill: a company or person with a name, a billing currency, an address, contacts, tax settings and any identifiers you use for them elsewhere. Every subscription, invoice, wallet and entitlement hangs off a customer, so it is the first thing to create for a new account. Customers can be grouped into families for consolidated billing and are billed from one of your legal entities. See How Alguna Works for the object graph.
Dashboard: Production or Sandbox. To bulk-import customers or sync them from a CRM or payment processor, see Sync accounts.

Create a customer via the API

Create a customer (POST /customers) needs a name and a currency; everything else is optional. Set aliases to the IDs your own systems use for this customer, so you can address them by those IDs later without storing Alguna’s.
billing_address.country is an ISO 3166-1 alpha-3 code (USA, DEU, GBR). currency is ISO 4217.

Addressing a customer by your own ID

Wherever an endpoint takes a customer {id}, it also accepts an alias or a connected-account external ID (for example a Stripe customer ID). To resolve one to the Alguna ID without fetching the whole record, use Look up a customer ID by alias (GET /customers/lookup?alias=...).

Create or look up?

There is no upsert endpoint: POST /customers always creates, and calling it twice for the same buyer gives you two customers with split subscriptions, usage and invoices. When your signup flow cannot be sure whether the customer already exists, look up first and create only on a miss:
  1. GET /customers/lookup?alias=<your ID> — a 200 returns the Alguna ID and you are done.
  2. On 404, POST /customers with that same ID in aliases.
  3. Send an Idempotency-Key on the create, derived from your own ID (for example ik_customer_<your ID>), so a retry after a timeout replays the first response instead of creating a second customer.
The alias is what makes this work, so set it on creation rather than adding it later — a customer created without one cannot be found by your ID on the next attempt. Two concurrent signups for the same buyer are the case the idempotency key covers; the lookup alone does not. If the customer originates in a connected system rather than in your own product, prefer the paths built for that: Sync accounts for a bulk import, or the CRM integrations to create the customer from a company record.

Update

Update a customer (PATCH /customers/{id}) patches only the fields you send. Sending contacts or aliases replaces the whole list, so include the existing entries you want to keep. Set or remove the parent customer with parent_customer_id and clear_parent_customer_id. Tax settings and legal entity are set in the dashboard; the API returns tax fields read-only on the customer.

Connected accounts

If the customer also exists in a connected system (Stripe, HubSpot, an accounting integration), record the link with Link a connected account to a customer (POST /customers/{id}/connected-accounts, with integration_id and external_id). This records the mapping only; it creates nothing in the external system and triggers no sync.

Create a customer in the dashboard

In Customers, click New Customer.
New Customer dialog with name, primary contact email, country, billing currency, address, tax rate, external identifiers and legal entity
The dialog is grouped into sections: Payment terms and Autopay timing start from your organization defaults. When a tax provider or Alguna Tax is configured, tax is determined by rules and the customer-level rate is managed for you. As you fill in the name, website and contacts, the dialog checks for customers that already exist and shows likely matches. You can open a match or create the new customer anyway. See Duplicate Customers.

State and province

For US and Canadian addresses, pick the state or province from the list. Through the API, send billing_address.state as the two-letter code or the full name; the customer stores the two-letter code, and any other value is rejected. Other countries keep a free-text state.

Editing a customer

The Customer Profile page groups the customer’s settings:
Customer Profile page with Business Information (currency, invoicing flow, payment terms, auto pay) and Billing Address sections

Import payment methods from your payment processor

When the customer is linked to a customer in your payment processor (Stripe today), the Stored Payment Methods section shows Import Payment Methods. The dialog lists the payment methods saved on the linked processor customer that Alguna does not store yet, all selected. Clear the ones you do not want and import the rest. Only processors connected to the customer’s legal entity are included. If the customer has no linked processor customer, link one under connected accounts first.

Document language

Document language in Business Information sets the language of the customer’s quotes, invoices and emails: English, German, Spanish or French. The default is Automatic, which uses the language your organization assigns to the customer’s billing country under Settings → Organization → Customizations → Languages. The profile shows which language that is, for example “Automatic · German (from Germany)”. Choosing a specific language pins it, and later billing address changes no longer change it. On the Languages settings page, English is always on and covers every country not listed under another language. Turn on German, Spanish or French and list the billing countries that get it. A language starts with a default set of countries, for example Germany, Austria, Switzerland and Liechtenstein for German. Saving the page updates every customer on Automatic. The language applies to the customer-facing quote document and quote page, the invoice PDF and hosted invoice page, and the customer emails that have language versions. See Emails.

Duplicates

To merge two records of the same buyer, open the actions menu on the customer and choose Mark as Duplicates. See Duplicate Customers.
Two different things sit above a customer, and they are easy to confuse:
  • A legal entity is one of your selling entities: the registered business that issues the invoice, holds the tax registration and owns the receivable. Configure them under Settings → Organization → Business Details → Legal Entities. Each legal entity has its own tax rules and FX rates. Every customer is assigned to one legal entity, and that entity appears as the From party on the customer’s invoices. Revenue and tax reporting are available per legal entity (GET /revenue-schedules/legal-entity/{id}). See Alguna Tax and Multi-currency.
  • A merchant is a business you sell on behalf of. Invoices and receipts issued for a merchant carry its name and logo, while your legal entity stays the seller of record and keeps the contract, the payment and the tax liability. Merchants are display identity only and are managed through the Merchants API (POST /merchants with a display_name and your external_id, optional logo and support email).
If you bill from more than one country or entity, set up a legal entity per jurisdiction first and assign customers to the right one; the invoice, tax treatment and revenue schedule all follow that assignment.

Next steps

Customer Contacts

Route invoices, quotes and updates to the right people.

Customer Tax Rates

Tax ID, rate and treatment per customer.

Customer Families

Parent and child customers for roll-up billing.

Duplicate Customers

Find and merge duplicate records.

Create your first subscription

Put the customer on a plan.