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

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

Update account

PATCH/admin/v1/stores/{store_id}/payment-accounts/{account_id}
  • payments:manage

Partially update a payment account. Credential keys sent replace the stored values. Send If-Match: "v{version}" to avoid overwriting someone else's changes.

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

  • store_idstringمطلوب

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

  • account_idstringمطلوب

    معرّف من نوع pacc، مثل pacc_01k8qs5s….

الترويسات

  • If-Matchstring · أو null

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

  • shop-api-versionYYYY-MM

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

الجسم

  • display_namestring · أو null
  • modeenum · أو null

    Whether an account moves real money.

    • test
    • live
  • capture_modeenum · أو null

    When authorized funds are collected.

    • automatic
    • manual
  • methodsarray of enums · أو null
    • card
    • mada
    • apple_pay
    • google_pay
    • stc_pay
    • cash_on_delivery
    • bank_transfer
    • gift_card
    • cash
    • card_present
    • on_account
    • mobile_wallet
    • fawry
    • valu
    • sympl
    • souhoola
    • instapay
    • tabby
    • tamara
  • instructionsstring · أو null
  • credentialsobject · أو null
  • activeboolean · أو null
  • method_pricingobject · أو null

    Replaces every method's price rule.

  • voucher_hoursinteger · أو null

    null goes back to 48 hours.

ما يُرجعه

200 Updated account.

الأخطاء

  • 404not_foundNo such account.
  • 412precondition_failedThe account changed since it was read.
  • 422validation_failedValidation failed.