POST
/
api
/
service
/
customer
/
update
JavaScript
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": {}
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json

Response

200 - application/json

Successful response

The response is of type object.