import Ivy from '@getivy/node-sdk';
const client = new Ivy({
apiKey: 'My API Key',
});
const customer = await client.customers.update({ id: 'id' });
console.log(customer.id);
{
"id": "<string>",
"email": "<string>",
"emailAddress": "<string>",
"phone": "<string>",
"fullName": "<string>",
"dateOfBirth": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"region": "02",
"zipCode": "<string>",
"country": "AF"
},
"bankAccounts": [
{
"last4digits": "<string>",
"bank": {
"id": "<string>",
"logo": "<string>",
"name": "<string>"
}
}
],
"deleted": true,
"deletedAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
Update the Customer details
import Ivy from '@getivy/node-sdk';
const client = new Ivy({
apiKey: 'My API Key',
});
const customer = await client.customers.update({ id: 'id' });
console.log(customer.id);
{
"id": "<string>",
"email": "<string>",
"emailAddress": "<string>",
"phone": "<string>",
"fullName": "<string>",
"dateOfBirth": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"region": "02",
"zipCode": "<string>",
"country": "AF"
},
"bankAccounts": [
{
"last4digits": "<string>",
"bank": {
"id": "<string>",
"logo": "<string>",
"name": "<string>"
}
}
],
"deleted": true,
"deletedAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
API key for authentication
Successful response
The response is of type object
.
Was this page helpful?