Users
Endpoint to work with the widget users.
Get current user
GET
/api/internal/v1/:partner_code/users/current
Get the current customer.
Path Parameters
partner_code
string
The partner code of the partner.
Create new user
POST
/api/internal/v1/:partner_code/users
Create a new widget user.
Path Parameters
partner_code
string
The partner code of the partner.
Request Body
first_name
string
The first name of the customer.
last_name
string
The last name of the customer.
title
string
The title of the user.
string
The email of the user.
password
string
The password of the user.
gender
string
The gender of the user. Allowed values: 0, 1, 2 More details here: https://en.wikipedia.org/wiki/ISO/IEC_5218
phone_number.prefix
integer
The phone number prefix of the user.
phone_number.number
string
The phone number of the user.
address.country_id
integer
The country of the address.
address.state_id
integer
The state of the address.
address.city
string
The city of the address.
address.post_code
string
The post code of the address.
address.street
string
The street of the address.
Update current user
PUT
/api/internal/v1/:partner_code/users/current
Path Parameters
partner_code
string
The partner code of the partner.
Request Body
first_name
string
The first name of the user.
last_name
string
The last name of the user.
title
string
The title of the user.
string
The email of the user.
gender
string
The gender of the user. Allowed values: 0, 1, 2
phone_number.prefix
integer
The phone number prefix of the user.
phone_number.number
string
The phone number of the user.
address.country_id
integer
The country of the address.
address.state_id
integer
The state of the address.
address.city
string
The city of the address.
address.post_code
string
The post code of the address.
address.street
string
The street of the address.
Update the password of the current user
PUT
/api/internal/v1/:partner_code/users/current/password
Path Parameters
partner_code
string
The partner code of the partner.
Request Body
old_password
string
The old password of the user
new_password
string
The new password of the user.
new_password_confirmation
string
The confirmation of the new password of the user.
Last updated
Was this helpful?