You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
updateMyCustomer
Endpoint for updating data of the currently logged user. By default, it uses the customerUpdateMeDefaultQuery GraphQL query
Signature
export declare function updateMyCustomer(
context: SetupContext,
params: UpdateMyCustomerParams,
customQuery?: CustomQuery
): Promise<UpdateMyCustomerResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
params | Required | UpdateMyCustomerParams | Customer and update actions information |
customQuery | Optional | CustomQuery | Custom queries included in the request |
Returns
User data