POST
/
customers
/
{customer_id}
/
wallets
/
ledger-entries
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: 'My Bearer Token',
});

const customerWallet = await client.customers.wallets.ledgerEntries.create('customer_id', {
  amount: 0,
  currency: 'AED',
  entry_type: 'credit',
});

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

Authorizations

Authorization
string
header
required

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

Path Parameters

customer_id
string
required

Customer ID

Body

application/json

Response

The response is of type object.