Skip to main content

updateCustomer

Updates a customer of the current account and returns it. Only provided fields change; see UpdateCustomerInput for how objects, null and defaultTokenId are handled. A customer that is not found returns a Customer not found error. Arguments: - input: ID of the customer to update and the fields to change.

updateCustomer(
input: UpdateCustomerInput!
): Customer!

Arguments​

updateCustomer.input ● UpdateCustomerInput! non-null input​

Type​

Customer object​

A customer of the merchant. Two forms use this type. The Customer entity (customer, customers, createCustomer, updateCustomer) holds every field. A payment or subscription holds a copy of the customer's email, name and phone. A subscription takes the copy when it is created. A payment takes it from the customer input of createPayment, else from its billing or shipping details, and fills what is missing from the Customer entity of customerId when the payment is confirmed: a payment created with customerId alone has no copy (null) until then. MONEI does not change the copy when the Customer entity changes. On the copy, the other fields are null. Use the customerId of the payment or subscription to get the Customer entity.