Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Request

Parameters

Location

Type

Required

Default

Accepted

token

Header

String(26)

v

...

Code

Success

Message

0

v

get user info

1

domaincode malformed

2

connexion error

3

token is empty

4

no token with that key

5

invalid token

10

user not connected

99

uncatched exception

...

Create customer

Warning

A customer can't register a new account if he's already connected via the login webservice.
View more information about Authentication(Logout) >>

When created, an email is sent to the customers' e-mailaddress (see e-mail configuration). This e-mail contains a link the customer needs to visit in order to confirm his e-mailaddress. See the validation service for more information.

...

Request

Note

The password passed in the call has to be encrypted and salted.
Contact us for the encryption algorithm.

Parameters

Location

Type

Required

Default

Accepted

login

Form

String

v

password

Form

String

v

email

Form

String

v

title

Form

String

firstname

Form

String

lastname

Form

String

prefix

Form

String

birthdate

Form

Date

Format : yyyy-MM-dd

company

Form

String

language

Form

Integer

1

languages

newsletter

Form

Integer

0

extra1

Form

String

extra2

Form

String

extra3

Form

String

favoriteShop

Form

Integer

confirmationRequired

Form

Boolean

Tip

With confirmationRequired set to false, the customer won't receive an email, and so won't have to confirm his email address before logging in. Then, he's automatically logged in.

Response

Success

Code Block
{
	"response": {
	"success": true
	"message": "user created"
		"object": {
			"customer": {
				"id": 1043
				"role": 1
				"email": "spiderman@marvel.com"
				"login": "spiderman"
				"b2b": false
				"newsletter": false
				"waitingEmailValidation": true
			}
		}
	}
}

...

Request

Parameters in path

Parameters

Location

Type

Required

Default

Accepted

token

Header

String(26)

v

Content-Type

Header

String

v

application/x-www-form-urlencoded

password

Form

String(40)

email

Form

String

title

Form

String

firstname

Form

String

lastname

Form

String

prefix

Form

String

birthdate

Form

Date

company

Form

String

language

Form

Integer

languages

newsletter

Form

Boolean

extra1

Form

String

extra2

Form

String

extra3

Form

String

favoriteShop

Form

Integer

...

Request

Parameters in path

Parameters

Location

Type

Required

Default

Accepted

token

Header

String(26)

v

email

Query

String

...