الانتقال إلى المحتوى الرئيسي
POST
/
workspaces
/
{workspaceId}
/
billing-accounts
/
{billingAccountId}
/
payment-methods
إنشاء Setup Intent
curl --request POST \
  --url https://api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "client_secret": "seti_1KV..._secret_...Lgq",
  "publishable_key": "pk_test_..."
}

Authorizations

Authorization
string
header
required

أدخل JWT الخاص بك بالتنسيق: Bearer {token}

Path Parameters

workspaceId
string
required

معرّف مساحة العمل.

Example:

"ws_a1b2c3d4e5f6g7h8"

billingAccountId
string
required

معرّف حساب الفوترة، والذي يتوافق مع معرّف عميل Stripe (cus_...).

Example:

"cus_a1b2c3d4e5f6g7h8"

Response

تم إنشاء Setup Intent بنجاح.

client_secret
string

السر العميل لـ SetupIntent. يستخدم للتأكيد من جانب العميل.

Example:

"seti_1KV..._secret_...Lgq"

publishable_key
string

مفتاح API العام الخاص بك في Stripe.

Example:

"pk_test_..."