Getting Started
Authentication v3
- Concepts
- System Apps
- User Apps
- Authentication Endpoints
Product Catalog
- Product Catalog API - Overview
- Developer Guide
- Data Ingestion Best Practices
- Attributes & Attribute Mapping
- Categories
- Products
- Collections
- Background Jobs
- Bulk Import & Export
- Published Products
Orders
- Orders (3.0.0)
- Developer Guide
- Orders FAQ
- Shopping Lists
- Shipping Methods
- Imports
- Exports
- Orders
- Frauds
- Notifications
- Backorders Preorders
- Cancellations
- Allocations
- Shipments
- Inventory Transfers
- Tracking
- Invoices
- Payments
- Credits
- Appeasements
- Returns
Inventory
- Inventory (3.0.0)
- Inventory FAQ
- Imports
- Counters
- Inventory
- Locations
- Networks
Integrations
Offers
- Offers (3.0.0)
- Developer Guide
- Real-time Pricing Engine
- Price Lists
- Prices
- Price Types
- Price Controls
- Price Methods
- Priced Products
- Add-ons
- Promotions
- Coupons
- Coupon Codes
- Redemptions
- Product Exclusion Lists
- Segments
- Imports
- Exports
- Attributes
- Webhook Events
Carts
- Overview
- Developer Guides
- Carts
- Order Draft
- Items
- Addresses
- Payments
- Fulfillment
- Customer
- Coupons
- Validations
- Cart Orchestrator
Customers
Search for customer
Using this endpoint, you can search for customers based on filter conditions. By specifying offset
and limit
, you can narrow down your search results. In addition, using the isDelete
property in the request body, you can filter for either deleted or non-deleted customers.
{
"query": {
"offset": 0,
"limit": 20,
"count": 100
},
"data": [
{
"id": "61df41892bf06d00092d0d8a",
"name": {
"title": "Dr.",
"firstName": "Pat",
"middleName": "E",
"lastName": "Doe",
"suffix": "Jr."
},
"status": "ACTIVE",
"emailAddress": "test@example.com",
"phone": {
"number": 15555551234,
"type": "MOBILE"
},
"externalId": "1231012312-312-31231asda",
"additionalAttributes": {
"middleName": "user"
},
"isDeleted": false,
"deletedAt": "2023-08-30T23:20:42.822Z",
"createdAt": "2023-08-30T23:20:42.822Z",
"updatedAt": "2023-08-30T23:20:42.822Z"
}
]
}
Authorizations
The access token.
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
A UUID of the request.
Body
The criteria to search for customers.
match
The criteria to search for customers or their addresses based on additional attributes.
The key for the additional attribute. This should be the field name given in the additionalAttributes
schema.
The type of search operation. Multiple values, separated by commas, can be used for the IN and NOT_IN operations, while only a single value can be used for the EQUALS, CONTAINS, and NOT_EQUALS operations.
IN
, NOT_IN
, EQUALS
, CONTAINS
, NOT_EQUALS
The value of the string.
The criteria to search for customers or their addresses based on a specific creation date or within a creation date range.
The type of search operation, such as equals, less than (LT), greater than (GT), less than or equal to (LTE), greater than or equal to (GTE), or within a specified range.
EQUALS
, LTE
, GTE
, GT
, LT
, RANGE
The ending value of the creation date range. This is used with the startCreatedAt
property.
The starting value of the creation date range. This is used with the endCreatedAt
property.
The time of creation, in UTC format.
The criteria to search for customers or their addresses based on a specific deletion date or within a deletion date range.
The type of search operation, such as equals, less than (LT), greater than (GT), less than or equal to (LTE), greater than or equal to (GTE), or within a specified range.
EQUALS
, LTE
, GTE
, GT
, LT
, RANGE
The ending value of the deletedAt
date range. This is used with the startDeletedAt
property.
The starting value of the deletedAt
date range. This is used with the endDeletedAt
property.
The time of deletion, in UTC format.
The criteria to search for customers based on their email.
The type of search operation. Multiple values, separated by commas, can be used for the IN and NOT_IN operations, while only a single value can be used for the EQUALS, CONTAINS, and NOT_EQUALS operations.
IN
, NOT_IN
, EQUALS
, CONTAINS
, NOT_EQUALS
The customer's email address.
The criteria to search for customers based on their first name.
The type of search operation. Multiple values, separated by commas, can be used for the IN and NOT_IN operations, while only a single value can be used for the EQUALS, CONTAINS, and NOT_EQUALS operations.
IN
, NOT_IN
, EQUALS
, CONTAINS
, NOT_EQUALS
The customer's first name.
A flag indicating whether the search results should include only deleted addresses. Set to true
to include only deleted addresses and false
to exclude deleted addresses.
The criteria to search for customers based on their last name.
The type of search operation. Multiple values, separated by commas, can be used for the IN and NOT_IN operations, while only a single value can be used for the EQUALS, CONTAINS, and NOT_EQUALS operations.
IN
, NOT_IN
, EQUALS
, CONTAINS
, NOT_EQUALS
The customer's last name.
The criteria to search for customers based on their account status.
The type of search operation. Multiple values, separated by commas, can be used for the IN and NOT_IN operations, while only a single value can be used for the EQUALS, CONTAINS, and NOT_EQUALS operations.
IN
, NOT_IN
, EQUALS
, CONTAINS
, NOT_EQUALS
The customer's account status.
ACTIVE
, INACTIVE
, BLOCKED
The criteria to search for customers or their addresses based on a specific date or date range in which the record was updated.
The type of search operation, such as equals, less than (LT), greater than (GT), less than or equal to (LTE), greater than or equal to (GTE), or within a specified range.
EQUALS
, LTE
, GTE
, GT
, LT
, RANGE
The ending value of the updatedAt
date range. This is used with the startUpdatedAt
property.
The starting value of the updatedAt
date range. This is used with the endUpdatedAt
property.
The time of last update, in UTC format.
The maximum number of records in a single page.
The number of records to skip before returning records. For example, when offset is 20 and limit's 10, this endpoint returns records from 21 to 30.
The criteria to sort results, where -
indicates a descending order and +
indicates an ascending order. You can sort the following fields - createdAt
, updatedAt
, firstName
, lastName
, status
, and emailAddress
.
Response
The list of customers.
The time when the customer was added, in UTC format.
The customer's email.
A 24-character system-generated customer ID.
A flag indicating whether the customer data is deleted. true
indicates the customer data is deleted and false
indicates otherwise.
The full name of the customer.
The customer's first name.
The customer's last name.
The customer's middle name.
The suffix for the customer's name, such as Jr., PhD, and more.
The customer's title, such as Mr., Mrs, and Dr.
The time when the customer details were last updated, in UTC format.
A placeholder for additional info, in key-value pairs.
The time when the customer data was deleted, in UTC format.
A UUID of the customer.
The status of the customer.
ACTIVE
, INACTIVE
, BLOCKED
The pagination criteria.
The total number of records in the response.
The maximum number of records per page.
The number of records to skip before returning records. For example, when offset is 20 and limit's 10, you get records from 21 to 30. When they're not specified, you get up to 10 records.
Was this page helpful?
{
"query": {
"offset": 0,
"limit": 20,
"count": 100
},
"data": [
{
"id": "61df41892bf06d00092d0d8a",
"name": {
"title": "Dr.",
"firstName": "Pat",
"middleName": "E",
"lastName": "Doe",
"suffix": "Jr."
},
"status": "ACTIVE",
"emailAddress": "test@example.com",
"phone": {
"number": 15555551234,
"type": "MOBILE"
},
"externalId": "1231012312-312-31231asda",
"additionalAttributes": {
"middleName": "user"
},
"isDeleted": false,
"deletedAt": "2023-08-30T23:20:42.822Z",
"createdAt": "2023-08-30T23:20:42.822Z",
"updatedAt": "2023-08-30T23:20:42.822Z"
}
]
}