AlmondTill/G3N API

On this page

replenishmentParameters

query · in the family Reading your records

What it does

The reorder maths per item — min/max, lead times, safety stock — that replenishment suggestions use.

The resolution DIAGNOSTIC for one (variant × LF): the effective parameter set + per-parameter provenance (config + the specificity trace) + every matched config. REFUSES VALIDATION/INVALID naming both configs, the parameter, and the cure when two equal-specificity configs set the same parameter (the season multi-membership residual — lean, no silent winner). Reads null when the variant or LF is missing/cross-tenant. Requires authentication.

What happens

Reads only.

Who may call it

Capability area: Reading your records — Looking up and listing the records of your organization.

Arguments

NameTypeRequiredNotes
variantIdID ID!yesNo further notes.
logicalFacilityIdID ID!yesNo further notes.

Returns

ReplenishmentParameterResolution — The replenishmentParameters diagnostic result.

Example request

query ExampleReplenishmentParameters($variantId: ID!, $logicalFacilityId: ID!) {
  replenishmentParameters(variantId: $variantId, logicalFacilityId: $logicalFacilityId) {
    variantId
    logicalFacilityId
    organizationId
    matchedConfigIds
  }
}

Variables:

{
  "variantId": "01900000-0000-7000-8000-8415e73b0000",
  "logicalFacilityId": "01900000-0000-7000-8000-8026f71c0000"
}

Example response

{
  "data": {
    "replenishmentParameters": {
      "variantId": "01900000-0000-7000-8000-8415e73b0000",
      "logicalFacilityId": "01900000-0000-7000-8000-8026f71c0000",
      "organizationId": "01900000-0000-7000-8000-44b781470000",
      "matchedConfigIds": [
        "01900000-0000-7000-8000-f68ff4590000"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer

Used in