Add Customer
This endpoint allows you to add a new customer to the system. You can store customer details like name, email, phone, address, and other relevant information.
Endpoint
POST
https://app.xtrakit.com/api/v1/customers/add
Headers
Authorization: Bearer API_KEY
Body Parameters
customer_group_id
int
Optional
The ID of the group to which this customer belongs.
customer_name
string
Required
The full name of the customer, used for identification and personalization within the system.
customer_email
string
Optional
The email address of the customer, used for communications like receipts, notifications, or offers.
customer_phone
string
Required
The primary phone number for contacting the customer. It is useful for both communication and verification purposes.
customer_whatsapp
string
Optional
The customer's WhatsApp number. This is used for instant messaging or sending transactional notifications.
customer_country
string
Required
The country in which the customer resides. This is necessary for shipping, billing, or other region-specific activities.
customer_city
string
Required
The city where the customer is located. It helps in localizing deliveries, services, and communication.
customer_state
string
Required
The state or region where the customer is based. This is useful for regional identification within a country.
customer_zip
string
Optional
The postal code for the customer's location. It is generally used for mailing, shipping, and regional classification.
(eg: 00233)
address1
string
Required
The primary address of the customer, typically used for billing or shipping purposes. It can contain house numbers, street names, etc.
address2
string
Optional
The secondary address, such as apartment numbers or additional details not covered in address1. This is helpful when the customer's address is complex.
customer_profile
string
Optional
A URL or path to the customer's profile image, typically used for identification or personalization within the user interface.
created_by
string
Required
The identifier or username of the person who created this customer entry in the system. This helps in tracking changes and updates.
Sample Requests
Sample Response
Last updated