لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Create account
/ 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 · أو nullFor the
appprovider: the gateway app's installation (from the providers list).display_namestring · أو nullShown at checkout; defaults to the provider's name.
modeenumWhether an account moves real money.
- test
- live
capture_modeenumWhen authorized funds are collected.
- automatic
- manual
instructionsstring · أو nullCustomer-facing instructions for offline methods (required for bank transfer).
credentialsobjectCredential values by key (see the provider's
credential_fields). Write-only.
ما يُرجعه
201 Account created.
الأخطاء
- 403
forbiddenMissing permission. - 422
validation_failedValidation failed.