AlmondTill/G3N API

Fix the business details

Correct your organization’s own record — name, registration facts, the details on your paperwork.

Manage · a play in 1 step.

In the office

Your organization’s own record carries the facts on your paperwork — the legal name, the trading name, the currency you count in and the currencies your tills and your online shop may take. When the shop starts taking a second currency, or stops, this is where you say so; a till can only tender a currency the organization allows.

Where it starts: the office’s Organizations page.

Organizations — /organizations
Organizations — /organizations

Step 1. Save the corrected details onto the organization record.

What you see

The example shop is Linden & Vale; it counts in CAD and takes CAD and USD.

Try it

Walked with screenshots in the owner’s manual: chapter 2 — Keep the business details right — including the currencies you take

For developers — the calls

The steps

  1. Save the corrected details onto the organization record. — updateOrganization

The calls

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

updateOrganization

updateOrganization — mutation · Edit an organization — one store or business unit in your group — change its details.

Example request

graphql
mutation ExampleUpdateOrganization($id: ID!, $revision: ID!, $input: EditOrganizationInput!) {
  updateOrganization(id: $id, revision: $revision, input: $input) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    jurisdiction
    code
    legalName
    brandName
    operatingAsName
    owners
    costCentre
    primaryPhysicalFacility
    defaultCurrency
    allowedCurrencies
    stripeAccountRef
    stripeChargesEnabled
    stripeDetailsSubmitted
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-1971e30a0000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "input": {
    "caption": "Blue jeans"
  }
}

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

Example response

json
{
  "data": {
    "updateOrganization": {
      "id": "01900000-0000-7000-8000-1971e30a0000",
      "sysId": "OR-EXMP-0000-000F",
      "type": "Organization",
      "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",
      "jurisdiction": "<jurisdiction>",
      "code": "BJ-001",
      "legalName": "Blue jeans",
      "brandName": "Blue jeans",
      "operatingAsName": "Blue jeans",
      "owners": [
        "01900000-0000-7000-8000-f89daae50000"
      ],
      "costCentre": "<cost centre>",
      "primaryPhysicalFacility": "01900000-0000-7000-8000-925e35910000",
      "defaultCurrency": "<default currency>",
      "allowedCurrencies": [
        "<allowed currencies>"
      ],
      "stripeAccountRef": "<stripe account ref>",
      "stripeChargesEnabled": true,
      "stripeDetailsSubmitted": true
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}