跳转到主要内容
GET
/
customers
/
{customer_id}
/
wallets
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

const wallets = await client.customers.wallets.list('customer_id');

console.log(wallets.items);
{
  "items": [
    {
      "balance": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "currency": "AED",
      "customer_id": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total_balance_usd": 123
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

customer_id
string
必填

Customer ID

响应

items
object[]
必填
total_balance_usd
integer<int64>
必填

Sum of all wallet balances converted to USD (in smallest unit)