AlmondTill/G3N API

Switch shared catalog entries on for your organization

Brands, seasons, manufacturers, styles and divisions are shared across the group; switching one on locally is how your organization starts using it — and decorations add the display content a record shows.

Catalog · a play in 4 steps.

In the office

Where it starts: the office’s Organization brands page.

Step 1. Switch a shared brand on for your organization. Open Organization brands.

Step 2. Switch a shared season, manufacturer or division on. Open Organization seasons.

Step 3. Sell a shared style locally by switching it on. Open Organization styles.

Step 4. Attach display content — images, blurbs — to a record. Open Decorations.

For developers — the calls

The steps

  1. Switch a shared brand on for your organization. — createOrgBrand
  2. Switch a shared season, manufacturer or division on. — createOrgSeason, createOrgManufacturer, createOrgDivision
  3. Sell a shared style locally by switching it on. — createOrgStyle
  4. Attach display content — images, blurbs — to a record. — createDecoration

The calls

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

createOrgBrand

createOrgBrand — mutation · Create a new your organization’s enablement of a shared brand — switching it on locally at your organization.

Example request

graphql
mutation ExampleCreateOrgBrand($input: NewOrgBrandInput!) {
  createOrgBrand(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    brandId
    code
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "organizationId": "01900000-0000-7000-8000-1971e30a0000",
    "brandId": "01900000-0000-7000-8000-6d1c7e960000"
  }
}

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

Example response

json
{
  "data": {
    "createOrgBrand": {
      "id": "01900000-0000-7000-8000-fb04e0520000",
      "sysId": "EB-EXMP-0000-000F",
      "type": "OrgBrand",
      "caption": "Blue jeans",
      "status": "active",
      "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",
      "brandId": "01900000-0000-7000-8000-6d1c7e960000",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

createOrgSeason

createOrgSeason — mutation · Create a new your organization’s enablement of a shared season at your organization.

Example request

graphql
mutation ExampleCreateOrgSeason($input: NewOrgSeasonInput!) {
  createOrgSeason(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    seasonId
    code
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "organizationId": "01900000-0000-7000-8000-1971e30a0000",
    "seasonId": "01900000-0000-7000-8000-14f06c780000"
  }
}

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

Example response

json
{
  "data": {
    "createOrgSeason": {
      "id": "01900000-0000-7000-8000-9655b5740000",
      "sysId": "ES-EXMP-0000-000F",
      "type": "OrgSeason",
      "caption": "Blue jeans",
      "status": "active",
      "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",
      "seasonId": "01900000-0000-7000-8000-14f06c780000",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

createOrgManufacturer

createOrgManufacturer — mutation · Create a new your organization’s enablement of a shared manufacturer at your organization.

Example request

graphql
mutation ExampleCreateOrgManufacturer($input: NewOrgManufacturerInput!) {
  createOrgManufacturer(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    manufacturerId
    code
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "organizationId": "01900000-0000-7000-8000-1971e30a0000",
    "manufacturerId": "01900000-0000-7000-8000-7897bed00000"
  }
}

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

Example response

json
{
  "data": {
    "createOrgManufacturer": {
      "id": "01900000-0000-7000-8000-3457fdac0000",
      "sysId": "EM-EXMP-0000-000F",
      "type": "OrgManufacturer",
      "caption": "Blue jeans",
      "status": "active",
      "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",
      "manufacturerId": "01900000-0000-7000-8000-7897bed00000",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

createOrgDivision

createOrgDivision — mutation · Create a new your organization’s enablement of a shared division at your organization.

Example request

graphql
mutation ExampleCreateOrgDivision($input: NewOrgDivisionInput!) {
  createOrgDivision(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    divisionId
    code
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "organizationId": "01900000-0000-7000-8000-1971e30a0000",
    "divisionId": "01900000-0000-7000-8000-a5e990060000"
  }
}

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

Example response

json
{
  "data": {
    "createOrgDivision": {
      "id": "01900000-0000-7000-8000-e9063b6a0000",
      "sysId": "ED-EXMP-0000-000F",
      "type": "OrgDivision",
      "caption": "Blue jeans",
      "status": "active",
      "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",
      "divisionId": "01900000-0000-7000-8000-a5e990060000",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

createOrgStyle

createOrgStyle — mutation · Create a new your organization’s enablement of a shared style — selling it locally at your organization.

Example request

graphql
mutation ExampleCreateOrgStyle($input: NewOrgStyleInput!) {
  createOrgStyle(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    styleId
    code
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "organizationId": "01900000-0000-7000-8000-1971e30a0000",
    "styleId": "01900000-0000-7000-8000-5467ec760000"
  }
}

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

Example response

json
{
  "data": {
    "createOrgStyle": {
      "id": "01900000-0000-7000-8000-7793e9ca0000",
      "sysId": "EY-EXMP-0000-000F",
      "type": "OrgStyle",
      "caption": "Blue jeans",
      "status": "active",
      "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",
      "styleId": "01900000-0000-7000-8000-5467ec760000",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

createDecoration

createDecoration — mutation · Create a new decoration — extra display content attached to a record (images, blurbs) at your organization.

Example request

graphql
mutation ExampleCreateDecoration($input: NewDecorationInput!) {
  createDecoration(input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    purpose
    locale
    ordinal
    text
    attachedToType
    attachedToId
    code
  }
}

Variables:

json
{
  "input": {
    "caption": "Blue jeans",
    "purpose": "<purpose>",
    "locale": "en-CA",
    "text": "Restock before the weekend.",
    "attachedToType": "Brand",
    "attachedToId": "01900000-0000-7000-8000-7008d1340000"
  }
}

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

Example response

json
{
  "data": {
    "createDecoration": {
      "id": "01900000-0000-7000-8000-6445e5a30000",
      "sysId": "DC-EXMP-0000-000F",
      "type": "Decoration",
      "caption": "Blue jeans",
      "status": "active",
      "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",
      "purpose": "<purpose>",
      "locale": "en-CA",
      "ordinal": 1,
      "text": "Restock before the weekend.",
      "attachedToType": "Brand",
      "attachedToId": "01900000-0000-7000-8000-7008d1340000",
      "code": "BJ-001"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}