Create an account representative (if you are allowed to account representatives)
| input |
|---|
| Data of the account representative |
mutation {
CreateAccountRepresentative (
input: {
label: "Bob Dylan",
first_name: "Bob",
last_name: "Dylan",
email: "[email protected]"
}
){
id
active
}
}
{
"data": {
"CreateAccountRepresentative": {
"id": 101122,
"active": true
}
}
}
Update a customer
| id |
|---|
| Id of the customer to update |
| input |
|---|
| Data of the customer |
mutation UpdateAccountRepresentative($id: ID!, $input: AccountRepresentativeInput!) {
UpdateAccountRepresentative(id: $id, input: $input) {
id
label
first_name
last_name
email
}
}
{
"id": 100005,
"input": {
"id": 100005,
"label": "Hoppe",
"first_name": "Palma",
"last_name": "Heaney",
"email": "[email protected]"
}
}
{
"data": {
"UpdateAccountRepresentative": {
"id": 100005,
"label": "Hoppe",
"first_name": "Palma",
"last_name": "Heaney",
"email": "[email protected]"
}
}
}
Delete a customer
mutation DeleteAccountRepresentative($id: ID!) {
DeleteCustomer(id: $id)
}
{
"data": {
"DeleteAccountRepresentative": true
}
}
Disable a customer
mutation DisableAccountRepresentative($id: ID!) {
DisableAccountRepresentative(id: $id) {
id
active
}
}
{
"data": {
"DisableAccountRepresentative": {
"id": 100011,
"active": false
}
}
}
Enable a disabled customer
mutation EnableAccountRepresentative($id: ID!) {
EnableAccountRepresentative(id: $id) {
id
active
}
}
{
"data": {
"EnableAccountRepresentative": {
"id": 100011,
"active": true
}
}
}
| label |
|---|
| Full name of the account representative |
| first_name |
|---|
| First name of the account representative |
| last_name |
|---|
| Last name of the account representative |
| phone |
|---|
| Phone number of the account representative |
| email |
|---|
| Email of the account representative |
| Address |
|---|
| Address of the account representative |