Skip to content

POST/v1/customers

Customers

GET /v1/customers lists customers with search, phone and updated_since filters, and GET /v1/customers/{id} returns one. POST /v1/customers creates a customer with a write key; if the phone number already exists, the existing customer is returned instead of a duplicate.

Updated

Create a customer with name and phone, plus optional email, city, address and notes. Phone numbers are matched on their last ten digits, so 0300 1234567 and +92 300 1234567 find the same customer.

curl -X POST "https://api.nafaa.pk/api/v1/customers" \
  -H "Authorization: Bearer nfk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"name":"Ali Raza","phone":"03001234567","city":"Lahore"}'
curl "https://api.nafaa.pk/api/v1/customers?phone=03001234567" \
  -H "Authorization: Bearer nfk_your_key"
Chat on WhatsAppEnglish ya Roman Urdu me