customers/me

customers/me

put/V1/customers/me

Create or update a customer.

Request
Request Body schema:
required
object (customer-data-customer-interface)

Customer entity interface for API handling.

passwordHash
string
Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

500

Internal Server error

default

Unexpected error

Request samples
{
  • "customer": {
    },
  • "passwordHash": "string"
}
Response samples
{
  • "id": 0,
  • "group_id": 0,
  • "default_billing": "string",
  • "default_shipping": "string",
  • "confirmation": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "created_in": "string",
  • "dob": "string",
  • "email": "string",
  • "firstname": "string",
  • "lastname": "string",
  • "middlename": "string",
  • "prefix": "string",
  • "suffix": "string",
  • "gender": 0,
  • "store_id": 0,
  • "taxvat": "string",
  • "website_id": 0,
  • "addresses": [
    ],
  • "disable_auto_group_change": 0,
  • "extension_attributes": {
    },
  • "custom_attributes": [
    ]
}

customers/me

get/V1/customers/me

Get customer by Customer ID.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

500

Internal Server error

default

Unexpected error

Response samples
{
  • "id": 0,
  • "group_id": 0,
  • "default_billing": "string",
  • "default_shipping": "string",
  • "confirmation": "string",
  • "created_at": "string",
  • "updated_at": "string",
  • "created_in": "string",
  • "dob": "string",
  • "email": "string",
  • "firstname": "string",
  • "lastname": "string",
  • "middlename": "string",
  • "prefix": "string",
  • "suffix": "string",
  • "gender": 0,
  • "store_id": 0,
  • "taxvat": "string",
  • "website_id": 0,
  • "addresses": [
    ],
  • "disable_auto_group_change": 0,
  • "extension_attributes": {
    },
  • "custom_attributes": [
    ]
}