Skip to main content

Customers

Create a customer.#

URL:https://api.lingaros.com/v1/lingapos/customer

MethodTypeDescription
firstnameStringCustomer's first name.
lastnameStringCustomer's last name.
emailStringCustomer's e-mail.
notesStringNotes.
memberShipPlanbson.ObjectIdType 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.#

URL:https://api.lingaros.com/v1/lingapos/customers

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}

MethodTypeDescription
firstnameStringCustomer's first name.
lastnameStringCustomer's last name.
emailStringCustomer's e-mail.
notesStringNotes.
memberShipPlanbson.ObjectIdType 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" \