Manage customer accounts with the Customer Account API
You can update customer accounts using the Customer Account API.
This guide covers how to update a customer, and accomplish common tasks like creating, updating and deleting an address on a customer.
Requirements
Anchor link to section titled "Requirements"- You've completed the Getting started with the Customer Account API guide.
Step 1: Update a customer
Anchor link to section titled "Step 1: Update a customer"Customers are automatically created if needed when you call the API.
You update a customer using the customerUpdate
mutation. You can use this mutation to update the profile of a customer on your storefront.
Step 2: Create an address
Anchor link to section titled "Step 2: Create an address"The following example shows how to use the customerAddressCreate
mutation to create a new address for a customer:
Step 3: Update an address
Anchor link to section titled "Step 3: Update an address"The following example shows how to use the customerAddressUpdate
mutation to update an existing address for a customer:
Step 4: Delete an address
Anchor link to section titled "Step 4: Delete an address"The following example shows how to use the customerAddressDelete
mutation to create a new address for a customer:
- Learn more about the Customer Account API.