customers
Add Customers
POST /merchant-integrations-server/add-new-customer
You can use this endpoint to add customers to your account
Request Body
{
"email": "string",
"name": "string"
}
Response
{
"code": 200,
"message": "string",
"status": "success"
}
Update Customers
POST /merchant-integrations-server/update-customer
You can ause this endpoint to update customers
Request Body
{
"id": "string",
"email": "string",
"name": "string"
}
Response
{
"code": 200,
"message": "string",
"status": "success"
}
Delete Customers
DELETE /merchant-integrations/delete-customer/:{customerID}
You can use this endpoint to delete customers from your account
Response
{
"code": 200,
"message": "string",
"status": "success"
}
Fetch Customers
GET /merchant-integrations/fetch-customers
Retrieve a paginated list of customers.
Query Parameters
page
: Page number (default: 1)limit
: Items per page (default: 10)search
: Using name or email (optional)
Response
{
"code": 200,
"message": "string",
"status": "string",
"data": {
"customer": [
{
"email": "string",
"id": "string",
"merchantID": "string",
"name": "string"
}
],
"limit": 0,
"page": 0,
"total": 0
}
}