Javascript
const { FedaPay, Customer } = require('fedapay'); FedaPay.setApiKey('YOUR_SECRETE_API_KEY'); FedaPay.setEnvironment('sandbox'); const customer = await Customer.update(ID, { firstname: 'Jane', lastname: 'Doe', email: 'jane@doe.com', phone_number: { number: '91010101', country: 'BJ' } });
{ "id": 123, "firstname": "<string>", "lastname": "<string>", "full_name": "<string>", "email": "jsmith@example.com", "account_id": 123, "phone_number_id": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "deleted_at": "2023-11-07T05:31:56Z" }
Update the details of an existing customer using their ID.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Customer ID.
Customer updated successfully.
The response is of type object.
object