Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • account_idstringrequired

    The payment account's ID, like pacc_01k8qs5s….

Headers

  • If-Matchstring · or null

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

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • display_namestring · or null
  • modeenum · or null

    Whether an account moves real money.

    • test
    • live
  • capture_modeenum · or null

    When 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 null
  • credentialsobject · or null
  • activeboolean · or null
  • method_pricingobject · or null

    Replaces every method's price rule.

  • voucher_hoursinteger · or null

    null goes back to 48 hours.

Returns

200 Updated account.

Errors

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