Transfer a whole series to another reseller

POST /api/v1/card-batches/{id}/transfer-whole prm_cards_change_owner

اعرض الصفحة بصيغة Markdown

Moves every card in the series from one manager to another at an agreed unit price, posting the matching ledger entries on both sides.

unit_price is a required tri-state and omitting it is refused rather than read as zero. A bare 0 from a client that simply left the field out would mean "give the stock away", which is exactly the defect this check exists to stop. A negative price inverts the transfer.

نظرة سريعة

المصادقة
رمز موظّف أو جلسة
تتطلب صلاحية
prm_cards_change_owner Transfer / change card owner
حد المعدل
t_mutate
مفتاح عدم التكرار
request_id

المعاملات

المعامل الوصف
idمطلوب path · integer Series id.
from_manager_idمطلوب body · integer The current holder.
to_manager_idمطلوب body · integer The receiving reseller.
unit_priceمطلوب body · number Price per card, major units. Must be sent explicitly — omitting it is an error, not a zero.
request_idمطلوب body · string Idempotency key.

الأخطاء

الرمز متى تُرجَع
ERR_VALIDATION400 unit_price omitted, or a request_id that is missing, too long or reserved
ERR_CONFLICT409 the request_id is already bound to a different transfer

جرّبه على شبكتك.

50 مشترك لمدة 7 أيام، من غير ما تدفع حاجة.