PUT /V1/customers/me
PUT /V1/customers/me is a Magento 2 REST endpoint in the Customer module. Create or update a customer. Requires a customer or admin Bearer token (whichever owns the resource).
Last verified: against Magento 2.4.9.
Returns
Magento\Customer\Api\Data\CustomerInterface
Service contract
Magento\Customer\Api\CustomerRepositoryInterface::save
Authorization
Self — a customer Bearer token (when the caller owns the resource) or an admin token both work.
Body parameters
Example request
Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.
Headers
Path
/V1/customers/meBody
{
"customer": {
"addresses": [
{
"city": "",
"company": "",
"country_id": "",
"custom_attributes": [
{
"attribute_code": "",
"value": ""
}
],
"customer_id": 0,
"default_billing": false,
"default_shipping": false,
"extension_attributes": {},
"fax": "",
"firstname": "",
"id": 0,
"lastname": "",
"middlename": "",
"postcode": "",
"prefix": "",
"region": {
"extension_attributes": {},
"region": "",
"region_code": "",
"region_id": 0
},
"region_id": 0,
"street": [
{}
],
"suffix": "",
"telephone": "",
"vat_id": ""
}
],
"confirmation": "",
"created_at": "",
"created_in": "",
"custom_attributes": [
{
"attribute_code": "",
"value": ""
}
],
"default_billing": "",
"default_shipping": "",
"disable_auto_group_change": 0,
"dob": "",
"email": "",
"extension_attributes": {},
"firstname": "",
"gender": 0,
"group_id": 0,
"id": 0,
"lastname": "",
"middlename": "",
"prefix": "",
"store_id": 0,
"suffix": "",
"taxvat": "",
"updated_at": "",
"website_id": 0
},
"passwordHash": ""
}Related in Customer
Other endpoints shipped by the same module.
/V1/addresses/:addressId
Delete customer address by ID.
Customer · Magento\Customer\Api\AddressRepositoryInterface::deleteById
/V1/attributeMetadata/customer
Customer · Magento\Customer\Api\CustomerMetadataInterface::getAllAttributesMetadata
/V1/attributeMetadata/customer/attribute/:attributeCode
Customer · Magento\Customer\Api\CustomerMetadataInterface::getAttributeMetadata
/V1/attributeMetadata/customer/custom
Customer · Magento\Customer\Api\CustomerMetadataInterface::getCustomAttributesMetadata
/V1/attributeMetadata/customer/form/:formCode
Customer · Magento\Customer\Api\CustomerMetadataInterface::getAttributes
/V1/attributeMetadata/customerAddress
Customer · Magento\Customer\Api\AddressMetadataInterface::getAllAttributesMetadata
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.