Skip to main content

convertPartnerToCustomer

Requires at least one of the permissions customers:customer:update or suppliers:supplier:update.

Adds the customer role to a partner and creates its customer account with the organization's defaults. Needs the update permission for the partner's current roles and for the customer role.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ConvertPartnerToCustomer($id: ID!) {
convertPartnerToCustomer(id: $id) {
id
code
registrationNumber
name
displayName
legalName
addresses {
id
postalCode
contactName
type
createdAt
city
}
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"convertPartnerToCustomer": {
"id": "id",
"code": "string",
"registrationNumber": "string",
"name": "string",
"displayName": "string",
"legalName": "string",
"addresses": [
{
"id": "id",
"postalCode": "string",
"contactName": "string",
"type": "string",
"createdAt": "2025-01-15T00:00:00Z",
"city": "string"
}
]
}
}
}
convertPartnerToCustomer(
id: ID!
): Partner!

Arguments​

convertPartnerToCustomer.id ● ID! non-null scalar​

The ID of the partner.

Type​

Partner object​

A partner: the one master record for customers and vendors, with its roles, addresses, contacts and account details.