الانتقال إلى المحتوى الرئيسي
GET
/
workspaces
/
{workspaceId}
/
billing-accounts
/
{billingAccountId}
/
payment-methods
عرض قائمة طرق الدفع
curl --request GET \
  --url https://api.altostrat.io/workspaces/{workspaceId}/billing-accounts/{billingAccountId}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "pm_1Kb...",
      "type": "card",
      "is_default": true,
      "brand": "visa",
      "last4": "4242",
      "exp_month": 12,
      "exp_year": 2028,
      "name": "Jane Doe",
      "bank_name": "StripeBank"
    }
  ],
  "has_more": false
}

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

قائمة بكائنات طرق الدفع.

data
object[]
has_more
boolean
Example:

false