Documentation Index
Fetch the complete documentation index at: https://mintlify.com/openshiporg/openfront/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Manage customer data including profile updates, addresses, passwords, and customer groups through GraphQL mutations.
Update Active User
Update the authenticated user’s profile information.
GraphQL Mutation
mutation UpdateActiveUser($data: UserUpdateProfileInput!) {
updateActiveUser(data: $data) {
id
name
email
phone
onboardingStatus
orderWebhookUrl
}
}
data
UserUpdateProfileInput
required
User profile update dataOnboarding status (not_started, in_progress, completed, dismissed)
Webhook URL for order notifications (Openship integration)
Response
Example
mutation {
updateActiveUser(data: {
name: "John Doe"
email: "john@example.com"
phone: "+1234567890"
}) {
id
name
email
}
}
Update Active User Password
Change the password for the authenticated user.
GraphQL Mutation
mutation UpdateActiveUserPassword(
$oldPassword: String!
$newPassword: String!
$confirmPassword: String!
) {
updateActiveUserPassword(
oldPassword: $oldPassword
newPassword: $newPassword
confirmPassword: $confirmPassword
) {
id
email
}
}
Current password for verification
New password (minimum 10 characters)
Confirmation of new password
Create User Address
Add a new address to the authenticated user’s profile.
GraphQL Mutation
mutation CreateActiveUserAddress($data: AddressCreateInput!) {
createActiveUserAddress(data: $data) {
id
addresses {
id
firstName
lastName
address1
address2
city
province
postalCode
country {
iso2
name
}
phone
}
}
}
data
AddressCreateInput
required
Address dataStreet address line 2 (optional)
Update User Address
Update an existing address for the authenticated user.
GraphQL Mutation
mutation UpdateActiveUserAddress(
$where: AddressWhereUniqueInput!
$data: AddressUpdateInput!
) {
updateActiveUserAddress(where: $where, data: $data) {
id
addresses {
id
firstName
lastName
address1
city
}
}
}
where
AddressWhereUniqueInput
required
data
AddressUpdateInput
required
Updated address fields
Delete User Address
Remove an address from the authenticated user’s profile.
GraphQL Mutation
mutation DeleteActiveUserAddress($where: AddressWhereUniqueInput!) {
deleteActiveUserAddress(where: $where) {
id
address1
city
}
}
where
AddressWhereUniqueInput
required
Regenerate Customer Token
Generate a new authentication token for the customer (used for Openship integration).
GraphQL Mutation
mutation RegenerateCustomerToken {
regenerateCustomerToken {
success
token
}
}
Response
Indicates if token generation was successful
Customer Groups
Manage customer group assignments using standard KeystoneJS mutations:
Create Customer Group
mutation CreateCustomerGroup($data: CustomerGroupCreateInput!) {
createCustomerGroup(data: $data) {
id
name
metadata
users {
id
name
email
}
}
}
data
CustomerGroupCreateInput
required
Customer group dataUsers to add to the group
Update Customer Group
mutation UpdateCustomerGroup(
$where: CustomerGroupWhereUniqueInput!
$data: CustomerGroupUpdateInput!
) {
updateCustomerGroup(where: $where, data: $data) {
id
name
users {
id
name
}
}
}
Add Users to Customer Group
mutation {
updateCustomerGroup(
where: { id: "customer_group_id" }
data: {
users: {
connect: [
{ id: "user_id_1" }
{ id: "user_id_2" }
]
}
}
) {
id
name
users {
id
name
email
}
}
}
Create User (Admin)
Create a new user account (requires admin permissions):
mutation CreateUser($data: UserCreateInput!) {
createUser(data: $data) {
id
name
email
hasAccount
}
}
User creation dataPassword (minimum 10 characters)
customerGroups
CustomerGroupRelateToManyInput
Customer groups to assign