Skip to content

Create account

POST/admin/v1/stores/{store_id}/payment-accounts
  • payments:manage
  • Idempotency-Key supported

Connect a payment provider. Credentials are sealed at rest and never returned.

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.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

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

Body

  • providerenumrequired

    The payment providers the platform can talk to.

    • manual
    • test
    • moyasar
    • stripe
    • paymob
    • fawry
    • tabby
    • tamara
    • app
    • gift_card
    • in_person
    • terms
  • methodsarray of enumsrequired
    • 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
  • app_installation_idstring · or null

    For the app provider: the gateway app's installation (from the providers list).

  • display_namestring · or null

    Shown at checkout; defaults to the provider's name.

  • modeenum

    Whether an account moves real money.

    • test
    • live
  • capture_modeenum

    When authorized funds are collected.

    • automatic
    • manual
  • instructionsstring · or null

    Customer-facing instructions for offline methods (required for bank transfer).

  • credentialsobject

    Credential values by key (see the provider's credential_fields). Write-only.

Returns

201 Account created.

Errors

  • 403forbiddenMissing permission.
  • 422validation_failedValidation failed.