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

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

Update carrier account

PATCH/admin/v1/stores/{store_id}/carrier-accounts/{account_id}
  • settings:write

Changes an account; new credentials, mode or location are checked with the carrier.

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

  • store_idstringمطلوب

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

  • account_idstringمطلوب

    معرّف من نوع carr، مثل carr_01k8qs5s….

الترويسات

  • shop-api-versionYYYY-MM

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

الجسم

  • namestring · أو null
  • modeenum · أو null

    Whether an account moves real money.

    • test
    • live
  • credentialsobject · أو null
  • location_idstring · أو null

    TypeID with the loc prefix.

  • default_servicestring · أو null
  • cod_enabledboolean · أو null
  • activeboolean · أو null

ما يُرجعه

200 Saved.

الأخطاء

  • 404not_foundNo such account.
  • 422validation_failedInvalid input or refused credentials.