لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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 · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
display_namestring · أو nullmodeenum · أو nullWhether an account moves real money.
- test
- live
capture_modeenum · أو nullWhen 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 · أو nullcredentialsobject · أو nullactiveboolean · أو nullmethod_pricingobject · أو nullReplaces every method's price rule.
voucher_hoursinteger · أو nullnullgoes back to 48 hours.
ما يُرجعه
200 Updated account.
الأخطاء
- 404
not_foundNo such account. - 412
precondition_failedThe account changed since it was read. - 422
validation_failedValidation failed.