AlmondTill/G3N API

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. Reads null when the variant or LF is missing/cross-tenant. Requires authentication.

Before you call

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

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

Roles that may call it:

What happens

Reads only.

Arguments

NameTypeRequiredNotes
variantIdID ID!yes
logicalFacilityIdID ID!yes

Returns

ReplenishmentParameterResolution — The replenishmentParameters diagnostic result.

Example request

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

Variables:

json
{
  "variantId": "01900000-0000-7000-8000-8433b0260000",
  "logicalFacilityId": "01900000-0000-7000-8000-10c08c590000"
}

Example response

json
{
  "data": {
    "replenishmentParameters": {
      "variantId": "01900000-0000-7000-8000-8433b0260000",
      "logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "matchedConfigIds": [
        "01900000-0000-7000-8000-5a6a12f50000"
      ]
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer

Used in