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.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.account_idstringrequiredThe payment account's ID, like
pacc_01k8qs5s….
Headers
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
display_namestring · or nullmodeenum · or nullWhether an account moves real money.
- test
- live
capture_modeenum · or nullWhen authorized funds are collected.
- automatic
- manual
methodsarray of enums · or 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 · or nullcredentialsobject · or nullactiveboolean · or nullmethod_pricingobject · or nullReplaces every method's price rule.
voucher_hoursinteger · or nullnullgoes back to 48 hours.
Returns
200 Updated account.
Errors
- 404
not_foundNo such account. - 412
precondition_failedThe account changed since it was read. - 422
validation_failedValidation failed.