Skip to main content
POST
Archive customer

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

id
string<uuid>
required

The unique identifier of the customer in our system.

Response

A customer: the company or person that a tenant bills. Contracts, usage and invoices belong to a customer.

id
string<uuid>
required

The unique identifier of the customer in our system.

externalId
string
required

The external id of the customer: the tenant's own key for it, which no other customer of the tenant has. Events and license balances name their customer by it.

Pattern: ^[a-zA-Z0-9_-]+$
Example:

"705faf65-9c8b-4053-8c0b-2021281ce83f"

name
string
required

The name of the customer.

Example:

"Acme Inc."

type
enum<string>
required

The type of the customer: an individual, an organization, which groups zero or more subsidiaries, or a subsidiary, which belongs to one organization.

Available options:
individual,
organization,
subsidiary
Example:

"individual"

invoicePrefix
string

The prefix of the numbers of the customer's invoices, which Aira makes from the name of the customer when it creates the customer, and which never changes.

Example:

"ACMEI"

parentCustomerId
null | string<uuid>

The id of the organization that the customer belongs to when it is a subsidiary, or null for an individual or an organization.

dunningScheduleId
null | string<uuid>

The id of the dunning schedule that the customer follows, or null when the customer follows none and gets no dunning e-mails.

archivedAt
null | string<date-time>

The instant when the customer was archived, or null when it is not archived.

customFields
object

Custom fields that can be associated with the entity. The fields must be previously created in the system before they can be used.

Example: