메인 콘텐츠로 건너뛰기
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)