Create customer account. Perform necessary business operations like sending email.
application/json
POST
/V1/customers
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/customers' \
--header "Content-Type: application/json" \
--data '{"customer":{"id":42,"group_id":42,"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":42,"store_id":42,"taxvat":"string","website_id":42,"addresses":[{"id":42,"customer_id":42,"region":{"region_code":"string","region":"string","region_id":42,"extension_attributes":{}},"region_id":42,"country_id":"string","street":["string"],"company":"string","telephone":"string","fax":"string","postcode":"string","city":"string","firstname":"string","lastname":"string","middlename":"string","prefix":"string","suffix":"string","vat_id":"string","default_shipping":true,"default_billing":true,"extension_attributes":{},"custom_attributes":[{"attribute_code":"string","value":"string"}]}],"disable_auto_group_change":42,"extension_attributes":{"company_attributes":{"customer_id":42,"company_id":42,"job_title":"string","status":42,"telephone":"string","extension_attributes":{}},"is_subscribed":true,"assistance_allowed":42},"custom_attributes":[{"attribute_code":"string","value":"string"}]},"password":"string","redirectUrl":"string"}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/customers' \
--header "Content-Type: application/xml"
Request examples
{
"customer": {
"id": 42,
"group_id": 42,
"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": 42,
"store_id": 42,
"taxvat": "string",
"website_id": 42,
"addresses": [
{
"id": 42,
"customer_id": 42,
"region": {
"region_code": "string",
"region": "string",
"region_id": 42,
"extension_attributes": {}
},
"region_id": 42,
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"default_shipping": true,
"default_billing": true,
"extension_attributes": {},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
}
],
"disable_auto_group_change": 42,
"extension_attributes": {
"company_attributes": {
"customer_id": 42,
"company_id": 42,
"job_title": "string",
"status": 42,
"telephone": "string",
"extension_attributes": {}
},
"is_subscribed": true,
"assistance_allowed": 42
},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
},
"password": "string",
"redirectUrl": "string"
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<customer>
<id type="integer">42</id>
<group-id type="integer">42</group-id>
<default-billing>string</default-billing>
<default-shipping>string</default-shipping>
<confirmation>string</confirmation>
<created-at>string</created-at>
<updated-at>string</updated-at>
<created-in>string</created-in>
<dob>string</dob>
<email>string</email>
<firstname>string</firstname>
<lastname>string</lastname>
<middlename>string</middlename>
<prefix>string</prefix>
<suffix>string</suffix>
<gender type="integer">42</gender>
<store-id type="integer">42</store-id>
<taxvat>string</taxvat>
<website-id type="integer">42</website-id>
<addresses type="array">
<address>
<id type="integer">42</id>
<customer-id type="integer">42</customer-id>
<region>
<region-code>string</region-code>
<region>string</region>
<region-id type="integer">42</region-id>
<extension-attributes>
</extension-attributes>
</region>
<region-id type="integer">42</region-id>
<country-id>string</country-id>
<street type="array">
<street>string</street>
</street>
<company>string</company>
<telephone>string</telephone>
<fax>string</fax>
<postcode>string</postcode>
<city>string</city>
<firstname>string</firstname>
<lastname>string</lastname>
<middlename>string</middlename>
<prefix>string</prefix>
<suffix>string</suffix>
<vat-id>string</vat-id>
<default-shipping type="boolean">true</default-shipping>
<default-billing type="boolean">true</default-billing>
<extension-attributes>
</extension-attributes>
<custom-attributes type="array">
<custom-attribute>
<attribute-code>string</attribute-code>
<value>string</value>
</custom-attribute>
</custom-attributes>
</address>
</addresses>
<disable-auto-group-change type="integer">42</disable-auto-group-change>
<extension-attributes>
<company-attributes>
<customer-id type="integer">42</customer-id>
<company-id type="integer">42</company-id>
<job-title>string</job-title>
<status type="integer">42</status>
<telephone>string</telephone>
<extension-attributes>
</extension-attributes>
</company-attributes>
<is-subscribed type="boolean">true</is-subscribed>
<assistance-allowed type="integer">42</assistance-allowed>
</extension-attributes>
<custom-attributes type="array">
<custom-attribute>
<attribute-code>string</attribute-code>
<value>string</value>
</custom-attribute>
</custom-attributes>
</customer>
<password>string</password>
<redirectUrl>string</redirectUrl>
</root>
Response examples (200)
{
"id": 42,
"group_id": 42,
"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": 42,
"store_id": 42,
"taxvat": "string",
"website_id": 42,
"addresses": [
{
"id": 42,
"customer_id": 42,
"region": {
"region_code": "string",
"region": "string",
"region_id": 42,
"extension_attributes": {}
},
"region_id": 42,
"country_id": "string",
"street": [
"string"
],
"company": "string",
"telephone": "string",
"fax": "string",
"postcode": "string",
"city": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"default_shipping": true,
"default_billing": true,
"extension_attributes": {},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
}
],
"disable_auto_group_change": 42,
"extension_attributes": {
"company_attributes": {
"customer_id": 42,
"company_id": 42,
"job_title": "string",
"status": 42,
"telephone": "string",
"extension_attributes": {}
},
"is_subscribed": true,
"assistance_allowed": 42
},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<id type="integer">42</id>
<group-id type="integer">42</group-id>
<default-billing>string</default-billing>
<default-shipping>string</default-shipping>
<confirmation>string</confirmation>
<created-at>string</created-at>
<updated-at>string</updated-at>
<created-in>string</created-in>
<dob>string</dob>
<email>string</email>
<firstname>string</firstname>
<lastname>string</lastname>
<middlename>string</middlename>
<prefix>string</prefix>
<suffix>string</suffix>
<gender type="integer">42</gender>
<store-id type="integer">42</store-id>
<taxvat>string</taxvat>
<website-id type="integer">42</website-id>
<addresses type="array">
<address>
<id type="integer">42</id>
<customer-id type="integer">42</customer-id>
<region>
<region-code>string</region-code>
<region>string</region>
<region-id type="integer">42</region-id>
<extension-attributes>
</extension-attributes>
</region>
<region-id type="integer">42</region-id>
<country-id>string</country-id>
<street type="array">
<street>string</street>
</street>
<company>string</company>
<telephone>string</telephone>
<fax>string</fax>
<postcode>string</postcode>
<city>string</city>
<firstname>string</firstname>
<lastname>string</lastname>
<middlename>string</middlename>
<prefix>string</prefix>
<suffix>string</suffix>
<vat-id>string</vat-id>
<default-shipping type="boolean">true</default-shipping>
<default-billing type="boolean">true</default-billing>
<extension-attributes>
</extension-attributes>
<custom-attributes type="array">
<custom-attribute>
<attribute-code>string</attribute-code>
<value>string</value>
</custom-attribute>
</custom-attributes>
</address>
</addresses>
<disable-auto-group-change type="integer">42</disable-auto-group-change>
<extension-attributes>
<company-attributes>
<customer-id type="integer">42</customer-id>
<company-id type="integer">42</company-id>
<job-title>string</job-title>
<status type="integer">42</status>
<telephone>string</telephone>
<extension-attributes>
</extension-attributes>
</company-attributes>
<is-subscribed type="boolean">true</is-subscribed>
<assistance-allowed type="integer">42</assistance-allowed>
</extension-attributes>
<custom-attributes type="array">
<custom-attribute>
<attribute-code>string</attribute-code>
<value>string</value>
</custom-attribute>
</custom-attributes>
</root>
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>