AlmondTill/G3N API

Handle a customer case from first message to close

Open the case, reply to the customer or leave staff-only notes, and move it through its life — take it, resolve it, close it.

Customers · a play in 3 steps.

In the office

Open the case, reply to the customer or leave a staff-only note — messages are permanent — and move it through its life: take it, resolve it, close it.

Where it starts: the office’s Cases page.

Cases — /cases
Cases — /cases

Step 1. Open the case.

Step 2. Reply — visible to the customer, or a staff-only note; messages are permanent.

Step 3. Move the case on — take it, resolve it, close it.

What you see

A case often starts with a question about an order, or about points under Vale Circle — 1 point per CAD 1.00 spent; 100 points redeem CAD 5.00; the tiers Insider (from 0 points) · Gold (from 2000 points, ×1.5); every message stays on the case, in order.

Try it

Walked with screenshots in the stylist’s manual: chapter 5 — Handle a customer case

For developers — the calls

The steps

  1. Open the case. — createCsCase
  2. Reply — visible to the customer, or a staff-only note; messages are permanent. — addCaseMessage
  3. Move the case on — take it, resolve it, close it. — transitionCsCase

The calls

Every operation this use case runs, in the order it first appears, with the request and the response its reference page shows.

createCsCase

createCsCase — mutation · Create a new customer-service case at your organization.

Example request

graphql
mutation ExampleCreateCsCase($input: NewCsCaseInput!) {
  createCsCase(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    caseType
    priority
    origin
    consumerId
    organizationId
    orderId
    appointmentId
    returnId
    fulfillmentId
    paymentId
    warrantyId
    linkedFromCaseId
    assignedTo
    slaDueAt
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "caseType": "<case type>"
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "createCsCase": {
      "id": "01900000-0000-7000-8000-8c38dbaf0000",
      "sysId": "CS-EXMP-0000-000F",
      "type": "CsCase",
      "caption": "Blue jeans",
      "status": "open",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 0,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "caseType": "<case type>",
      "priority": "<priority>",
      "origin": "<origin>",
      "consumerId": "01900000-0000-7000-8000-3cbb3ce90000",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "orderId": "01900000-0000-7000-8000-18e782370000",
      "appointmentId": "01900000-0000-7000-8000-82f95dda0000",
      "returnId": "01900000-0000-7000-8000-cc01b1df0000",
      "fulfillmentId": "01900000-0000-7000-8000-aebf3e510000",
      "paymentId": "01900000-0000-7000-8000-20f641110000",
      "warrantyId": "01900000-0000-7000-8000-9f906bed0000",
      "linkedFromCaseId": "01900000-0000-7000-8000-6419b5bc0000",
      "assignedTo": "01900000-0000-7000-8000-f10ad02c0000",
      "slaDueAt": "2027-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

addCaseMessage

addCaseMessage — mutation · Add a reply to a customer-service case, as staff.

Example request

graphql
mutation ExampleAddCaseMessage($input: NewCaseMessageInput!) {
  addCaseMessage(input: $input) {
    id
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    authorKind
    authorId
    visibility
    body
  }
}

Variables:

json
{
  "input": {
    "caseId": "01900000-0000-7000-8000-1b5184d10000",
    "body": "Restock before the weekend.",
    "visibility": "<visibility>"
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "addCaseMessage": {
      "id": "01900000-0000-7000-8000-37386ae00000",
      "type": "<type>",
      "caption": "Blue jeans",
      "status": "<status>",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "authorKind": "<author kind>",
      "authorId": "01900000-0000-7000-8000-958fc7760000",
      "visibility": "<visibility>",
      "body": "Restock before the weekend."
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

transitionCsCase

transitionCsCase — mutation · Move a service case through its life — take it, resolve it, close it, or cancel it.

Example request

graphql
mutation ExampleTransitionCsCase($id: ID!, $revision: ID!, $op: CsCaseTransitionOp!, $reason: String) {
  transitionCsCase(id: $id, revision: $revision, op: $op, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    caseType
    priority
    origin
    consumerId
    organizationId
    orderId
    appointmentId
    returnId
    fulfillmentId
    paymentId
    warrantyId
    linkedFromCaseId
    assignedTo
    slaDueAt
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-8c38dbaf0000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "op": "start",
  "reason": "Correcting a miscount."
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "transitionCsCase": {
      "id": "01900000-0000-7000-8000-8c38dbaf0000",
      "sysId": "CS-EXMP-0000-000F",
      "type": "CsCase",
      "caption": "Blue jeans",
      "status": "in_progress",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "caseType": "<case type>",
      "priority": "<priority>",
      "origin": "<origin>",
      "consumerId": "01900000-0000-7000-8000-3cbb3ce90000",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "orderId": "01900000-0000-7000-8000-18e782370000",
      "appointmentId": "01900000-0000-7000-8000-82f95dda0000",
      "returnId": "01900000-0000-7000-8000-cc01b1df0000",
      "fulfillmentId": "01900000-0000-7000-8000-aebf3e510000",
      "paymentId": "01900000-0000-7000-8000-20f641110000",
      "warrantyId": "01900000-0000-7000-8000-9f906bed0000",
      "linkedFromCaseId": "01900000-0000-7000-8000-6419b5bc0000",
      "assignedTo": "01900000-0000-7000-8000-f10ad02c0000",
      "slaDueAt": "2027-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}