Skip to main content
PUT
Change customer type

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.

Body

application/json

The type that the customer takes, organization or individual.

type
enum<string>
required

The type that the customer takes.

Available options:
organization,
individual
Examples:

"organization"

"individual"

Response

A customer: the company or person that you bill. 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 key that you give it, which no other customer 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
string<uuid> | null

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

dunningScheduleId
string<uuid> | null

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

archivedAt
string<date-time> | null

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: