Customers
Retrieve a specific Customer instance by ID
Unique identifier of the resource
1Customer retrieved successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/customers/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"pk": 123,
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}Update an existing Customer instance by ID
Unique identifier of the resource
1Customer ID
123First name of the customer
JohnLast name of the customer
DoePhone number of the customer
+123456789Indicates if the customer is active
falseExample: trueCode representing the channel the customer belongs to
CH123Partner customer code (ERP code)
ERP456Attributes as a JSON object
{"logged_ip":"127.0.0.1","register_client_type":"default"}Attribute kwargs as a JSON object
Localized attributes as a JSON object
Localized attribute kwargs as a JSON object
Additional fields as a JSON object
{"key1":"value1","key2":100}Indicates if the customer allows receiving emails
trueIndicates if the customer allows receiving SMS
falseIndicates if the customer allows receiving calls
trueThe date when the customer joined
2023-01-15T10:30:00ZGender of the customer
femalePossible values: Type of user
guestPossible values: Date of birth of the customer
1985-08-25ID of the channel the customer belongs to
5Customer updated successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
PUT /api/v1/customers/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 528
{
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}{
"pk": 123,
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}Delete a specific Customer instance by ID
Unique identifier of the resource
1Customer deleted successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
DELETE /api/v1/customers/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Partially update an existing Customer instance by ID
Unique identifier of the resource
1Customer ID
123First name of the customer
JohnLast name of the customer
DoePhone number of the customer
+123456789Indicates if the customer is active
falseExample: trueCode representing the channel the customer belongs to
CH123Partner customer code (ERP code)
ERP456Attributes as a JSON object
{"logged_ip":"127.0.0.1","register_client_type":"default"}Attribute kwargs as a JSON object
Localized attributes as a JSON object
Localized attribute kwargs as a JSON object
Additional fields as a JSON object
{"key1":"value1","key2":100}Indicates if the customer allows receiving emails
trueIndicates if the customer allows receiving SMS
falseIndicates if the customer allows receiving calls
trueThe date when the customer joined
2023-01-15T10:30:00ZGender of the customer
femalePossible values: Type of user
guestPossible values: Date of birth of the customer
1985-08-25ID of the channel the customer belongs to
5Customer updated successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
PATCH /api/v1/customers/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 528
{
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}{
"pk": 123,
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}Retrieve a specific Customer instance by ID with additional details
Unique identifier of the resource
1Customer with details retrieved successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/customers/{id}/detailed/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"channel": 5,
"orders_info": {
"total_order_amount": 1,
"total_refund_amount": 1,
"total_discount_amount": 1,
"total_order_count": 1
},
"pk": 123,
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25"
}Retrieve a list of customers with optional filters
Specifies the page number of the current dataset
1Indicates the number of rows on the current page.
10Email address of the customer starting with the specified value
testID of the channel the customer belongs to
5Code representing the channel the customer belongs to
CH123Phone number of the customer
+123456789Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).
created_date__gt=2024-01-01T00:00:00ZFilter by multiple primary key values (comma-separated list of integers)
Filter by a specific key in the 'extra_field' JSON object.
extra_field__some_key=some_valueFilter by a specific key in the 'attributes' JSON object.
some_valueFirst name of the customer
JohnLast name of the customer
DoeFilter by ERP code (contains)
ERPCODE123Indicates if the customer allows receiving emails
trueIndicates if the customer allows receiving SMS
falseIndicates if the customer allows receiving calls
trueThe date when the customer joined
2018-08-16T11:20:14.736995ZFilter by gender
malePossible values: Filter by user type
guestPossible values: Filter by date of birth
1985-08-25List of Customers
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/customers/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"pk": 123,
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}
]Create a new Customer instance
Customer ID
123First name of the customer
JohnLast name of the customer
DoePhone number of the customer
+123456789Indicates if the customer is active
falseExample: trueCode representing the channel the customer belongs to
CH123Partner customer code (ERP code)
ERP456Attributes as a JSON object
{"logged_ip":"127.0.0.1","register_client_type":"default"}Attribute kwargs as a JSON object
Localized attributes as a JSON object
Localized attribute kwargs as a JSON object
Additional fields as a JSON object
{"key1":"value1","key2":100}Indicates if the customer allows receiving emails
trueIndicates if the customer allows receiving SMS
falseIndicates if the customer allows receiving calls
trueThe date when the customer joined
2023-01-15T10:30:00ZGender of the customer
femalePossible values: Type of user
guestPossible values: Date of birth of the customer
1985-08-25ID of the channel the customer belongs to
5Customer created successfully
Required field(s) are missing, data is invalid, or the action is not allowed.
Unauthorized Access
Server Error
POST /api/v1/customers/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 528
{
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}{
"pk": 123,
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}Retrieve a detailed list of customers with optional filters
Specifies the page number of the current dataset
1Indicates the number of rows on the current page.
10Email address of the customer starting with the specified value
testID of the channel the customer belongs to
5Code representing the channel the customer belongs to
CH123Phone number of the customer
+123456789Filter by creation date using supported lookup expressions (e.g., gt, gte, lt, lte, date__gt, etc.).
created_date__gt=2024-01-01T00:00:00ZFilter by multiple primary key values (comma-separated list of integers)
Filter by a specific key in the 'extra_field' JSON object.
extra_field__some_key=some_valueFilter by a specific key in the 'attributes' JSON object.
some_valueFirst name of the customer
JohnLast name of the customer
DoeFilter by ERP code (contains)
ERPCODE123Indicates if the customer allows receiving emails
trueIndicates if the customer allows receiving SMS
falseIndicates if the customer allows receiving calls
trueThe date when the customer joined
2018-08-16T11:20:14.736995ZFilter by gender
malePossible values: Filter by user type
guestPossible values: Filter by date of birth
1985-08-25List of Customers with Details
Unauthorized Access
The given resource or object was not found or does not exist.
Server Error
GET /api/v1/customers/detailed/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
[
{
"pk": 123,
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+123456789",
"is_active": true,
"channel_code": "CH123",
"erp_code": "ERP456",
"attributes": {
"logged_ip": "127.0.0.1",
"register_client_type": "default"
},
"attribute_kwargs": {},
"localized_attributes": {},
"localized_attribute_kwargs": {},
"extra_field": {
"key1": "value1",
"key2": 100
},
"email_allowed": true,
"sms_allowed": false,
"call_allowed": true,
"date_joined": "2023-01-15T10:30:00Z",
"gender": "female",
"user_type": "guest",
"date_of_birth": "1985-08-25",
"channel": 5
}
]Was this helpful?

