Skip to main content

Get All Customers

Call returns all of your customers.

Headers

PropertyValue
Request TypePOST
Content Typeapplication-json
URL{{EnvironmentURL}}/api/services/app/Customers/GetAll

Please see Environments under Getting Started for test and production environment URLs.

Request Parameters

PropertyTypeDescription
FilterstringThe general filter to apply
NameFilterstringThe filter to apply to the name
DescriptionFilterstringThe filter to apply to the description
AccountNumberFilterstringThe filter to apply to the account number
CustomerReferenceFilterstringThe filter to apply to the customer reference
SortingstringDefines the sorting order
SkipCountintThe amount of records to skip
MaxResultCountintThe maximum amount of records to return

Sample Request

If you want to limit your result count use the "MaxResultCount" parameter like so:

{{QA}}/api/services/app/Customers/GetAll?&MaxResultCount=2

If you have a specific search criteria then use the "Filter" parameter like so:

{{QA}}/api/services/app/Customers/GetAll?&Filter=alpha

Response Parameters

PropertyTypeDescription
TotalCountintThe amount of customers found matching the filters
ItemsCustomerThe customer details

Customer

PropertyTypeDescription
NamestringThe name of this customer
DescriptionstringThe description of this customer
AccountNumberstringThe customer account number
CustomerReferencestringThe customer reference
CustomerAddressCustomerAddressThe saved address for this customer NB. See the address methods below to determine the structure
ContactPersonContactPersonThe contact person for this customer
IsDeletedbooleanIndicates if this customer was deleted. It cannot be used if this is true
IdintThe customer identifier

ContactPerson

PropertyTypeDescription
ContactEmailstringThe contact email
ContactNumberstringThe contact number
CustomerIdintThe customer ID
FullNamestringThe full name
SurnamestringThe surname
TitleIdintThe title identifier NB. See the contact person methods below to determine the title identifier

Sample Response

{
"result": {
"totalCount": 2,
"items": [
{
"customer": {
"name": "ALPHA TEST 1",
"description": null,
"accountNumber": null,
"customerReference": "123",
"customerAddresses": [],
"contactPerson": {
"contactEmail": "mail@mail",
"contactNumber": "0720594864",
"customerId": 8106,
"fullName": "Abhi",
"surname": "Mathew",
"titleId": 2
},
"tenantId": 14041,
"organizationRegistrationNumber": "12312323134324324",
"isDeleted": false,
"deleterUserId": null,
"deletionTime": null,
"lastModificationTime": null,
"lastModifierUserId": null,
"creationTime": "2024-07-26T17:35:35.8560926",
"creatorUserId": 25943,
"id": 8106
}
},
{
"customer": {
"name": "ALPHA TEST 2",
"description": null,
"accountNumber": null,
"customerReference": "123",
"customerAddresses": [],
"contactPerson": {
"contactEmail": "mail@mail",
"contactNumber": "0720594864",
"customerId": 8107,
"fullName": "Abhi",
"surname": "Mathew",
"titleId": 2
},
"tenantId": 14041,
"organizationRegistrationNumber": "12312323134324324",
"isDeleted": false,
"deleterUserId": null,
"deletionTime": null,
"lastModificationTime": null,
"lastModifierUserId": null,
"creationTime": "2024-07-26T17:45:02.285055",
"creatorUserId": 25943,
"id": 8107
}
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}