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

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

Update custom status

PUT/admin/v1/stores/{store_id}/order-statuses/{status_id}
  • settings:write

Change a status. Send If-Match: "v{version}" to avoid overwriting someone else's change.

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

  • store_idstringمطلوب

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

  • status_idstringمطلوب

    معرّف من نوع ostat، مثل ostat_01k8qs5s….

الترويسات

  • If-Matchstring · أو null

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

  • shop-api-versionYYYY-MM

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

الجسم

  • namesobjectمطلوب

    The name per language; the store's language needs one. 1–40 characters each.

  • colorenumمطلوب

    The colour a status is drawn in (the admin's palette).

    • gray
    • blue
    • teal
    • green
    • amber
    • orange
    • red
    • purple
  • milestoneenum · أو null

    Something that happens to an order and moves it to the status bound to it.

    • placed
    • confirmed
    • paid
    • shipped
    • delivered
    • cancelled
  • shown_to_customerboolean
  • notify_customerboolean
  • messagesobject

    Up to 300 characters per language.

ما يُرجعه

200 The status.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundNo such active status.
  • 409The milestone is taken.
  • 412precondition_failedThe status changed since it was read.
  • 422validation_failedInvalid names or messages.