@plentymarkets/shop-api / doRegisterUser
Function: doRegisterUser() ​
doRegisterUser(
context,params):Promise<Data<UserChangeResponse>>
Defined in: api/doRegisterUser/index.ts:32
Method doRegisterUser - Creates a new user account.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Registration parameters including contact email, password, and optional address details.
Returns ​
Promise<Data<UserChangeResponse>>
A promise resolving to the user change response data.
Remarks ​
Calls /rest/storefront/customer/ This method is used to register a new user account.
Example ​
ts
const response = await doRegisterUser(context, {
'cf-turnstile-response': '03Ag24...',
contact: {
password: 'Testuser1234',
typeId: 1,
referrerId: 123,
options: {
typeId: {
value: 'user@test.com',
subTypeId: 2,
priority: 1,
typeId: 1
}
}
},