Customers
Manage customer information
Returns all customers.
Your API key (obtain from dashboard)
Page number (1-based)
1Example: 1Number of items per page
10Example: 10Search by customer name, email, or phone
john@example.comFilter by exact email address
john@example.comFilter by exact phone number
+2348012345678Filter by exact Telegram ID
123456789Indicates if the request was successful
trueResponse message
SuccessGET /api/v1/customers HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Success",
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": "123456789",
"metadata": {
"source": "website",
"referrer": "google"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
],
"meta": {
"page": 1,
"size": 10,
"total": 42,
"totalPages": 5
}
}Creates a new customer. If a customer with the same email, phone, or telegram ID already exists, it will be updated instead.
Your API key (obtain from dashboard)
First name of the customer
JohnLast name of the customer
DoeEmail address of the customer
customer@example.comPhone number of the customer
+1234567890Telegram user ID if customer is linked via Telegram
123456789Additional metadata for the customer
{"source":"website","referrer":"google"}Indicates if the request was successful
trueResponse message
SuccessInvalid input data
POST /api/v1/customers HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 165
{
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": 123456789,
"metadata": {
"source": "website",
"referrer": "google"
}
}{
"success": true,
"message": "Success",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": "123456789",
"metadata": {
"source": "website",
"referrer": "google"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}Returns the customer for the given ID.
Your API key (obtain from dashboard)
Customer UUID
Indicates if the request was successful
trueResponse message
SuccessCustomer not found
GET /api/v1/customers/{id} HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Success",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": "123456789",
"metadata": {
"source": "website",
"referrer": "google"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}Updates the customer.
Your API key (obtain from dashboard)
Customer UUID
First name of the customer
JohnLast name of the customer
DoeEmail address of the customer
customer@example.comPhone number of the customer
+1234567890Telegram user ID if customer is linked via Telegram
123456789Indicates if the request was successful
trueResponse message
SuccessInvalid input data or duplicate email/phone/telegram ID
Customer not found
PATCH /api/v1/customers/{id} HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 113
{
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": 123456789
}{
"success": true,
"message": "Success",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": "123456789",
"metadata": {
"source": "website",
"referrer": "google"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}Last updated
Was this helpful?