Skip to content

Accessory compatibility

PUT/api/v1/uyumluluk

Writes accessory ↔ device compatibility in bulk: urun_ref is the accessory’s item_ref, matched to uyumlu_ref (the device’s item_ref) or uyumlu_model_adi (“iPhone 15 Pro”); sonuc is uyumlu (compatible) or uyumsuz (not compatible). Rows take effect immediately and the assistant uses them to answer “will this case fit my phone?”. Invalid rows come back in hatalar with their position. Up to 1000 rows; for a large catalog send every part with the same sync_id and add final=true to the last one.

  • Authentication: Authorization: Bearer rz_live_…
  • Scope: ingest:catalog
  • Plan feature: Compatibility — if off, the endpoint answers 404 not_found
  • Idempotency-Key: optional (recommended for retries)
NameInTypeLimitsMeaning
fullquerybooleandefault falsetrue: records missing from the list are deactivated (ek- hand-added knowledge rows are kept). Send the full list in one request (≤1000).
sync_idquerystring | nullmin 1, max 80, ^[A-Za-z0-9_.:-]+$Chunked full-sync session; the same value in every part.
finalquerybooleandefault falseLast part of a chunked sync: API rows not sent in this session are removed.

Fields marked * are required. Unknown fields are rejected with 422.

CompatBatch

FieldTypeLimitsMeaning
items *CompatIn[]min items 1, max items 1000

CompatIn

FieldTypeLimitsMeaning
urun_ref *stringmin 1, max 200
uyumlu_refstring | nullmax 200
uyumlu_model_adistring | nullmax 200
sonuc"uyumlu" | "uyumsuz"default "uyumlu"
notstring | nullmax 500
Terminal window
curl -s -X PUT "$RZ_API/api/v1/uyumluluk" -H "Authorization: Bearer $RZ_KEY" -H "Content-Type: application/json" \
-d '{"items": [{"urun_ref": "kilif-123", "uyumlu_model_adi": "iPhone 15 Pro", "sonuc": "uyumlu"}]}'

Error statuses: 401, 403, 404, 413, 422, 429 — see Errors and limits.