Skip to content

Customer

Access customer information in the Amili system. Customers represent individuals or organizations associated with cases and invoices, including their contact details and address information.

Customer endpoints

See Case Registration and Invoice Registration for creating customers.

Example Request

Below is an example of retrieving a specific customer.

URL: GET /customers/cust_123456789

Headers:

x-api-key: {your_access_token}
Content-Type: application/json

Request Body: None (GET request)

Response Code: 200 OK

Response Body:

json
{
  "_id": "cust_123456789",
  "name": "Jane Doe",
  "id_number": "202501012385",
  "is_person": true,
  "customer_number": "12345",
  "address": {
    "address_line_1": "Business Street 456",
    "zip_code": "54321",
    "city": "Gothenburg",
    "country": "SE"
  },
  "mobile_number": "+46709876543",
  "email": "jane.doe@domain.se",
  "is_active": true,
  "_created": "2025-01-01T10:00:00Z",
  "_updated": "2025-01-01T10:00:00Z"
}

Parameters

Path Parameters

NameTypeRequiredDescription
customerIdstringYesThe unique identifier of the customer
NameTypeRequiredDescription
id_numberstringNoSearch by personal ID or organization number
namestringNoSearch by customer name
emailstringNoSearch by email address

Response Properties

PropertyTypeRequiredDescription
_idstringYesUnique identifier for the customer
_createdstringYesCreation timestamp
_updatedstringYesLast update timestamp
namestringYesCustomer's full name
id_numberstringYesPersonal ID or organization number
is_personbooleanYesWhether the customer is an individual
customer_numberstringNoCustomer's reference number
addressobjectYesCustomer's address information
mobile_numberstringNoContact phone number
emailstringNoContact email address
is_activebooleanYesWhether the customer is active

Address Properties

PropertyTypeRequiredDescription
address_line_1stringYesPrimary address line
zip_codestringYesPostal code
citystringYesCity name
countrystringYesCountry code in ISO 3166-1 alpha-2 format (e.g. "SE")*

*) For complete list of values and details, please see Customer