# replenishmentParameters

query · in the family [Reading your records](/reference/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.

- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows `api:replenishmentParameters`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `variantId` | [ID](/types/#scalars) `ID!` | yes | No further notes. |
| `logicalFacilityId` | [ID](/types/#scalars) `ID!` | yes | No further notes. |

## Returns

[ReplenishmentParameterResolution](/types/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-8415e73b0000",
  "logicalFacilityId": "01900000-0000-7000-8000-8026f71c0000"
}
```

## Example response

```json
{
  "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

- `VALIDATION/INVALID` — Something in the request is not valid. ([VALIDATION](/errors/VALIDATION/))
- `AUTHN/REQUIRED` — Sign in to do this. ([AUTHN](/errors/AUTHN/))
- `AUTHZ/FORBIDDEN` — Your role does not allow this action. ([AUTHZ](/errors/AUTHZ/))
- `RATE_LIMIT/THROTTLED` — Too many requests in a short time. ([RATE_LIMIT](/errors/RATE_LIMIT/))
- `NOT_FOUND/*` — That record could not be found. ([NOT_FOUND](/errors/NOT_FOUND/))

## Used in

- [Keep shelves replenished](/use-cases/keep-shelves-replenished/)
