AlmondTill/G3N API

doomReplenishmentConfig

mutation · in the family Replenishment config

What it does

Permanently retire the replenishment settings — how reorder suggestions are computed for a scope.

Doom (terminal) a ReplenishmentConfig by id; requires the unrestricted capability + the record's current revision. Deny-by-default + the referential_integrity / authority / occ guards; a doomed ReplenishmentConfig is immutable + never deleted. The optional reason rides the transition events.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Inventory operations — Receiving, counting, transferring and moving stock.

Roles that may call it:

Careful

Doom is forever — a doomed record never comes back into use (its history remains readable). Anything still referencing it live will block the doom.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.
revisionID ID!yesThe revision id you read on the record; the change is refused if an edit landed in the meantime.
reasonStringno

Concurrency

Send the record’s current revision from your last read as revision. A stale revision is refused as CONFLICT/REVISION_STALE — read the record again and retry with the new value.

Returns

ReplenishmentConfig ReplenishmentConfig! — A replenishment config — ONE cell of the multi-axis planning parameter matrix: a set of axes naming a scope (absent = all — the sparse matrix; Location = organizationId XOR logicalFacilityId · Merchandise = categoryId XOR styleId · seasonId · brandId, each singular) + a sparse block of parameters (at least one — the substance rule). Group-scoped like a Brand (parent = the org group). The axes are the cell identity — immutable at birth (re-target = create + doom); parameter values stay editable (nothing clears — removing a parameter = doom + create). the collision rule: an active sibling with the same normalized axis tuple AND an intersecting SET-parameter set refuses CONFLICT/IDENTITY_TAKEN naming the holder + the intersecting parameters (same-tuple disjoint-parameter cells are legal — per-parameter semantics; an inactive cell neither resolves nor collides, so reactivate re-runs the gate). Specificity (the.2 per-parameter resolution): count of set axes, then the locked axis order Location > Merchandise > Season > Brand. A NON-doomed cell blocks its axis targets dooms (LF/Organization/Category/Style/Season/Brand); deactivate stays free.

Example request

graphql
mutation ExampleDoomReplenishmentConfig($id: ID!, $revision: ID!, $reason: String) {
  doomReplenishmentConfig(id: $id, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    organizationId
    logicalFacilityId
    categoryId
    styleId
    seasonId
    brandId
    replenishEnabled
    minUnits
    maxUnits
    daysOfSupplyTarget
    safetyStockUnits
    reorderMultipleUnits
    reviewCadenceDays
    abcClassOverride
    reserveFloorUnits
    transferableExcess
    allocationWeight
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-f62d56730000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "reason": "Correcting a miscount."
}

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

Example response

json
{
  "data": {
    "doomReplenishmentConfig": {
      "id": "01900000-0000-7000-8000-f62d56730000",
      "sysId": "RP-EXMP-0000-000F",
      "type": "ReplenishmentConfig",
      "caption": "Blue jeans",
      "status": "doomed",
      "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",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
      "categoryId": "01900000-0000-7000-8000-afb3e5910000",
      "styleId": "01900000-0000-7000-8000-5467ec760000",
      "seasonId": "01900000-0000-7000-8000-14f06c780000",
      "brandId": "01900000-0000-7000-8000-6d1c7e960000",
      "replenishEnabled": true,
      "minUnits": "<min units>",
      "maxUnits": "<max units>",
      "daysOfSupplyTarget": 1,
      "safetyStockUnits": "<safety stock units>",
      "reorderMultipleUnits": "<reorder multiple units>",
      "reviewCadenceDays": 1,
      "abcClassOverride": "A",
      "reserveFloorUnits": "<reserve floor units>",
      "transferableExcess": true,
      "allocationWeight": 1
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer