لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Create transfer
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ transfers- inventory:write
- يدعم Idempotency-Key
Draft a transfer: what moves from one location to another. Nothing moves until it ships.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
origin_idstringمطلوبWhere the stock leaves from.
destination_idstringمطلوبWhere it goes; another active location.
linesarray of objectsمطلوبWhat moves, in order (1–250 different items).
referencestring · أو nullA waybill number or the store's own reference (up to 100 characters).
notestring · أو nullUp to 500 characters.
expected_ondate · أو nullWhen it should arrive (
YYYY-MM-DD).
ما يُرجعه
201 The draft.
الأخطاء
- 403
forbiddenMissing permission. - 422
validation_failedThe same place twice, an inactive location, an unknown or uncounted item, or a bad quantity.