Change or update user ID with new user ID

GET Designer/Services/UpdateUserId?newUserId={newUserId}&oldUserId={oldUserId}&websiteId={websiteId}&webApiClientKey={webApiClientKey}&IsGuest={IsGuest}


This operation is used to change/update user id with new user id. This operation requires old user id, new user id, is guest (To determine whether the user is guest or registered). This operation update user id of existing user id.


The user of your e-commerce website can be registered or guest user. If the user is not registered with your website, it will be treated as guest user.


Both of the user will have a unique id. Guest user will have a temporary id.


If the guest user customizes the product and add it to the cart, Artifi will maintain its record as a guest user.


When the guest user checkouts the product, your website will ask the user to register with your website. The user will register and you will create a unique id of the user and at that time.


Now you will need to replace the old id of the user with newly created id in Artifi. To do this, you will need to call "UpdateUserId" method.

Request Information

Parameters

NameDescriptions
newUserIdThis will be the id of the user after registering with your e-commerce website.
oldUserIdThis will be old id of the user when the user was guest. The product data will get saved across this user id in Artifi.
websiteId

This is the website created in Artifi account by your e-commerce website, with which user is associated

Admin user of Artifi can create one or more websites and assign products to each of the website. The Id of the website with which user is associated should be specified in this parameter.


webApiClientKey

When any company gets registered with Artifi, Artifi will generate a special and unique key for that company which will be called as client key.

This client key will be found in registered company's profile tab in Artifi Account. This client key will be used for client(company) authentication and will be called as WebApiClientKey.


IsGuestCurrent status of the user whether the user is registered or guest.


Response Information

Response body formats

application/json, text/json

Sample:
{
  "Response": "Success",
  "Message": "User id updated successfully.",
  "Data": null,
  "ErrorCode": null
}


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.