انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Update transfer

PUT/admin/v1/stores/{store_id}/inventory/transfers/{transfer_id}

    Change a draft: its places, reference, note, date and lines, all replaced. Send If-Match: "v{version}" to avoid overwriting someone else's changes.

    معاملات المسار

    • store_idstringمطلوب

      معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

    • transfer_idstringمطلوب

      معرّف من نوع xfer، مثل xfer_01k8qs5s….

    الترويسات

    • If-Matchstring · أو null

      ETag from the last read, e.g. "v3"

    • 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 · أو null

      A waybill number or the store's own reference (up to 100 characters).

    • notestring · أو null

      Up to 500 characters.

    • expected_ondate · أو null

      When it should arrive (YYYY-MM-DD).

    ما يُرجعه

    200 The draft.

    الأخطاء

    • 404not_foundNo such transfer.
    • 409The transfer has shipped.
    • 412precondition_failedThe transfer changed since it was read.
    • 422validation_failedValidation failed.