الانتقال إلى المحتوى الرئيسي
PUT
/
workspaces
/
{workspaceId}
/
billing-accounts
/
{billingAccountId}
/
payment-methods
/
{paymentMethodId}
تعيين طريقة دفع افتراضية
curl --request PUT \
  --url https://api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/payment-methods/{paymentMethodId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "تم تحديث طريقة الدفع الافتراضية"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

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

Example:

"ws_a1b2c3d4e5f6g7h8"

billingAccountId
string
required

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

Example:

"cus_a1b2c3d4e5f6g7h8"

paymentMethodId
string
required

معرّف طريقة دفع Stripe (pm_...).

Example:

"pm_a1b2c3d4e5f6g7h8"

Response

تم تحديث طريقة الدفع الافتراضية بنجاح.

message
string
Example:

"تم تحديث طريقة الدفع الافتراضية"