لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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 · أو nullETag 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 · أو nullLocations first to last; locations left out lose their rank. Omit to keep the ranking.
ما يُرجعه
200 The routing rules.
الأخطاء
- 403
forbiddenMissing permission, or limited to some locations. - 412
precondition_failedThey changed since they were read. - 422
validation_failedA rule twice, or an unknown or repeated location.