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

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

Set routing

PUT/admin/v1/stores/{store_id}/inventory/routing
  • settings:write

Save the routing rules and, when sent, the ranking of locations. Send If-Match: "v{version}" ("v0" before the first save). ; staff limited to some locations can't.

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

  • store_idstringمطلوب

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

الترويسات

  • If-Matchstring · أو null

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

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • rulesarray of enumsمطلوب

    The rules on, in the order they apply; each at most once.

    • same_region
    • one_shipment
    • ranked
  • rankingarray of strings · أو null

    Locations first to last; locations left out lose their rank. Omit to keep the ranking.

ما يُرجعه

200 The routing rules.

الأخطاء

  • 403forbiddenMissing permission, or limited to some locations.
  • 412precondition_failedThey changed since they were read.
  • 422validation_failedA rule twice, or an unknown or repeated location.