Skip to main content
GET
/
v1
/
customers
/
{id}
Fetch customer
curl --request GET \
  --url https://api.useaira.com/v1/customers/{id} \
  --header 'X-API-KEY: <api-key>'
{
  "id": "<string>",
  "externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
  "name": "Acme Inc.",
  "customFields": {
    "customField1": "value1",
    "customField2": [
      "value2",
      "value3"
    ]
  }
}

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

id
string
required

The unique identifier of the customer in our system.

Response

Schema representing a customer.

id
string
required

The unique identifier of the customer in our system.

externalId
string
required

An optional external identifier of the customer from the external system, used throughout the system to identify the customer. This field can not be updated.

Example:

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

name
string
required

The name of the customer.

Example:

"Acme Inc."

customFields
object
required

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

Example:
{
"customField1": "value1",
"customField2": ["value2", "value3"]
}