Customers
Create a customer.
Method | Type | Description |
---|---|---|
firstname | String | Customer's first name. |
lastname | String | Customer's last name. |
String | Customer's e-mail. | |
notes | String | Notes. |
memberShipPlan | bson.ObjectId | Type of membership plan |
You can find memberShipPlan id at Membership tab.
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Test",
"lastName": "Test",
"email": "test@example.com",
"phoneNumber": "+90 987 543 21 12",
}' \
"https://api.lingaros.com/v1/lingapos/customer" \
Read all customers by account.
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/customers"
Read a customer by ID.
URL:https://api.lingaros.com/v1/lingapos/customer/{customer-id}
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/customer/{customer-id}"
Update a customer.
URL:https://api.lingaros.com/v1/lingapos/customer/{customer-id}
Method | Type | Description |
---|---|---|
firstname | String | Customer's first name. |
lastname | String | Customer's last name. |
String | Customer's e-mail. | |
notes | String | Notes. |
memberShipPlan | bson.ObjectId | Type of membership plan |
You can find memberShipPlan id at Membership tab.
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Test",
"lastName": "Test",
"email": "test@example.com",
"phoneNumber": "+90 987 543 21 12",
}' \
"https://api.lingaros.com/v1/lingapos/customer/{customer-id}" \
Delete(Inactive) a customer.
URL:https://api.lingaros.com/v1/lingapos/customer/{customer-id}/inactivate
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
"https://api.lingaros.com/v1/lingapos/customer/{customer-id}/inactivate" \