Requires unauthenticated_write_message access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Create a third-party user in a chat app or messaging system.
Arguments
The input fields to create a third-party user.
More
Return
thirdUser ● ThirdUser
Information about the third-party user.
More
userErrors ● [ThirdUserUserError!]!non-null
Errors related to the user information.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Create a third-party user
mutation ThirdUserCreate {
thirdUserCreate(
input: {
userName: "vito"
userId: "gid://shopline/ThirdUser/******5235111"
userPhone: "+1213***5678"
gender: MALE
}
) {
userErrors {
code
field
message
}
thirdUser {
id
}
}
}
Response
{
"thirdUserCreate": {
"thirdUser": {
"id": "gid://shopline/ThirdUser/******5235111"
},
"userErrors": []
}
}
Was this article helpful to you?