Logo
maya API Documentation

Create customer

POST {{baseUrl}}/register

Create a new customer and automatically logs in after registration is successful.
Service urls:
http://yourdomain.com/api/rest/register
OR
http://yourdomain.com/index.php?route=rest/register/register

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-Oc-Session
string (Required) User session id
Content-Type
string
Accept
string




RESPONSES

status OK

{ "success": 1, "error": [ "Error description", "Error description" ], "data": {} }



Curl
curl -X POST 'https://api.opencart-api.com/api/rest/register' -H 'X-Oc-Session: voluptate' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"lastname":"User","firstname":"Demo","confirm":"password","telephone":"1-541-754-3010","city":"Berlin","address_1":"Demo","country_id":81,"postcode":"3333","agree":0,"zone_id":1256,"email":"nash1@vipmail.hu","password":"password","fax":"1-541-754-3010","company_id":"officia sunt","company":"aute do cupidatat","address_2":"Demo","tax_id":1,"customer_group_id":1,"custom_field":{"account":[null,"+364545454"],"address":[null,null,null,null,"+364545454"]}}'

ENDPOINTS