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

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

Create account

POST/admin/v1/stores/{store_id}/payment-accounts
  • payments:manage
  • يدعم Idempotency-Key

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

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

  • store_idstringمطلوب

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

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

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

الجسم

  • providerenumمطلوب

    The payment providers the platform can talk to.

    • manual
    • test
    • moyasar
    • stripe
    • paymob
    • fawry
    • tabby
    • tamara
    • app
    • gift_card
    • in_person
    • terms
  • methodsarray of enumsمطلوب
    • 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 · أو null

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

  • display_namestring · أو 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 · أو null

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

  • credentialsobject

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

ما يُرجعه

201 Account created.

الأخطاء

  • 403forbiddenMissing permission.
  • 422validation_failedValidation failed.