curl --request PUT \
--url https://api.useaira.com/v1/customers/by-external-id/{externalId} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Acme Inc.",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"name": "Acme Inc.",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"invoicePrefix": "ACMEI"
}This endpoint allows updating a customer by external ID.
curl --request PUT \
--url https://api.useaira.com/v1/customers/by-external-id/{externalId} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Acme Inc.",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"name": "Acme Inc.",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"invoicePrefix": "ACMEI"
}API Key Authentication.
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.
^[a-zA-Z0-9_-]+$Schema representing a customer.
Schema representing a customer.
The name of the customer.
"Acme Inc."
Custom fields that can be associated with the entity. The fields must be previously created in the system before they can be used.
Show child attributes
{
"customField1": "value1",
"customField2": ["value2", "value3"]
}Schema representing a customer.
Schema representing a customer.
The unique identifier of the customer in our system.
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.
^[a-zA-Z0-9_-]+$"705faf65-9c8b-4053-8c0b-2021281ce83f"
The name of the customer.
"Acme Inc."
Custom fields that can be associated with the entity. The fields must be previously created in the system before they can be used.
Show child attributes
{
"customField1": "value1",
"customField2": ["value2", "value3"]
}The prefix of the customer's invoices. This is generated by the system and cannot be updated.
"ACMEI"