Customers
/api/v1/musteriler — PUT
Section titled “/api/v1/musteriler — PUT”PUT/api/v1/musteriler
Writes customer records by dis_id. The phone is stored encrypted. Records are deleted when the retention period in company settings expires.
- Authentication:
Authorization: Bearer rz_live_… - Scope:
ingest:customers - Plan feature: Data API + Carts — if off, the endpoint answers 404
not_found - Idempotency-Key: optional (recommended for retries)
Request body (application/json)
Section titled “Request body (application/json)”Fields marked * are required. Unknown fields are rejected with 422.
CustomerBatch
| Field | Type | Limits | Meaning |
|---|---|---|---|
items * | ApiCustomer[] | min items 1, max items 1000 | 1–1000 records. |
ApiCustomer
| Field | Type | Limits | Meaning |
|---|---|---|---|
dis_id * | string | min 1, max 200 | Customer id. |
ad | string | null | max 200 | Name. |
eposta | string | null | max 200 | Email. |
telefon | string | null | max 32 | Phone. |
meta | object | default {} | Free-form extra data. |
Example
Section titled “Example”curl -s -X PUT "$RZ_API/api/v1/musteriler" -H "Authorization: Bearer $RZ_KEY" -H "Content-Type: application/json" \ -d '{"items": [{"dis_id": "87", "ad": "Ayşe Yılmaz", "eposta": "[email protected]", "telefon": "05321234567", "meta": {"segment": "kurumsal"}}]}'Response 200
Section titled “Response 200”{ "inserted": 1, "updated": 0}Error statuses: 401, 403, 404, 413, 422, 429 — see Errors and limits.
/api/v1/musteriler/{dis_id} — DELETE
Section titled “/api/v1/musteriler/{dis_id} — DELETE”DELETE/api/v1/musteriler/{dis_id}
Deletes the customer record. 404 not_found if it does not exist.
- Authentication:
Authorization: Bearer rz_live_… - Scope:
ingest:customers - Plan feature: Data API + Carts — if off, the endpoint answers 404
not_found - Idempotency-Key: optional (recommended for retries)
Parameters
Section titled “Parameters”| Name | In | Type | Limits | Meaning |
|---|---|---|---|---|
dis_id * | path | string | The id in your system. |
Example
Section titled “Example”curl -s -X DELETE "$RZ_API/api/v1/musteriler/87" -H "Authorization: Bearer $RZ_KEY"Response 200
Section titled “Response 200”{ "deleted": 1}Error statuses: 401, 403, 404, 413, 422, 429 — see Errors and limits.
© 2026 Erusoft