メインコンテンツへスキップ
GET
/
v1
/
customers
/
{customer_id}
/
payment-methods
決済方法一覧
curl --request GET \
  --url https://api.sandbox.zafapay.com/v1/customers/{customer_id}/payment-methods \
  --header 'Authorization: Bearer <token>'
{
  "customer_id": "cust_abc123",
  "payment_methods": [
    {
      "id": "pmi_abc123",
      "type": "card",
      "connector_id": "conn_xxx",
      "card": {
        "brand": "visa",
        "last4": "4242",
        "exp_month": 12,
        "exp_year": 2025
      },
      "is_default": true,
      "status": "active",
      "blocked_reason": null,
      "created_at": "2024-01-15T10:30:00Z"
    }
  ]
}

承認

Authorization
string
header
必須

アクセストークンを使用したBearer認証

パスパラメータ

customer_id
string
必須

顧客ID

:

"cust_abc123"

レスポンス

成功

customer_id
string

顧客ID

:

"cust_abc123"

payment_methods
object[]

保存済み決済方法のリスト