Partner Data Projection Enabled contract

List canonical inventory balances

Returns canonical Holding atomic quantities with Quantity Basis, Location and Package identity, and an optional external identity association without internal cost data.

Runtime status: unavailable. This is a source contract, not a live access or availability guarantee. Learn more
GET/partner/data/v1/inventory

Authority

Profile
location-client-id+api-key
Data class
partner_operational
Required operation
listPartnerDataInventory
Subject scopes
No subject scopes declared for this operation.
clientId security scheme
{
  "type": "apiKey",
  "in": "header",
  "name": "X-SMOKESTACK-Client-ID",
  "description": "Public, high-entropy location client identifier issued by SMOKESTACK."
}
apiKey security scheme
{
  "type": "apiKey",
  "in": "header",
  "name": "X-SMOKESTACK-API-Key",
  "description": "Secret location API key shown only at issuance or rotation."
}

Request

Request parameters
ParameterLocationRequirementSchema
changedAfter

queryOptional{"type":"string","format":"date-time"}
changedBefore

queryOptional{"type":"string","format":"date-time"}
limit

queryOptional{"type":"integer","minimum":1,"maximum":500,"default":100}
cursor

queryOptional{"type":"string","pattern":"^[A-Za-z0-9._~-]{32,4096}$"}
smokestack-api-version

headerRequired{"type":"string","const":"2026-08-07"}
x-smokestack-client-id

headerRequired{"type":"string"}
x-smokestack-api-key

headerRequired{"type":"string"}
x-request-id

headerOptional{"type":"string"}
x-correlation-id

headerOptional{"type":"string"}

Idempotency

This read-only contract does not declare a keyed replay policy. Do not assume a mutation replay guarantee.

Request examples

Templates for your server, not browser code. Replace every placeholder and use your approved origin. For requests with a body, construct request.json / requestBody / request_body from the schema.

# Replace placeholders using your approved server-side integration.
curl --request GET 'https://partner-api.invalid/partner/data/v1/inventory' \
  --header 'smokestack-api-version: 2026-08-07' \
  --header 'x-smokestack-client-id: <X_SMOKESTACK_CLIENT_ID>' \
  --header 'x-smokestack-api-key: <X_SMOKESTACK_API_KEY>'

Responses

200 Successful location-scoped response.
{
  "description": "Successful location-scoped response.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataInventoryResponse"
      }
    }
  }
}
400 Invalid request or cursor.
{
  "description": "Invalid request or cursor.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
401 Client authentication required.
{
  "description": "Client authentication required.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
403 The location credential does not permit this data set.
{
  "description": "The location credential does not permit this data set.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
406 Unsupported contract revision.
{
  "description": "Unsupported contract revision.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
429 Rate limit exceeded.
{
  "description": "Rate limit exceeded.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    },
    "Retry-After": {
      "schema": {
        "type": "integer"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
500 Unexpected internal error.
{
  "description": "Unexpected internal error.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
503 Authoritative dependency unavailable.
{
  "description": "Authoritative dependency unavailable.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}

Referenced schemas

Only schemas reachable from this operation are shown. The revision-pinned OpenAPI download includes their complete definitions.

PartnerDataInventoryResponse
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "inventoryId": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": "string",
            "format": "uuid"
          },
          "productId": {
            "type": "string",
            "format": "uuid"
          },
          "variantId": {
            "type": "string",
            "format": "uuid"
          },
          "sku": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "quantityBasis": {
            "type": "object",
            "properties": {
              "uom": {
                "type": "string",
                "enum": [
                  "each",
                  "mg",
                  "g",
                  "kg",
                  "ml",
                  "l",
                  "oz",
                  "lb"
                ]
              },
              "scale": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9
              }
            },
            "required": [
              "uom",
              "scale"
            ]
          },
          "quantities": {
            "type": "object",
            "properties": {
              "onHand": {
                "type": "integer",
                "minimum": 0
              },
              "reserved": {
                "type": "integer",
                "minimum": 0
              },
              "quarantined": {
                "type": "integer",
                "minimum": 0
              },
              "returned": {
                "type": "integer",
                "minimum": 0
              },
              "wasted": {
                "type": "integer",
                "minimum": 0
              },
              "available": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "onHand",
              "reserved",
              "quarantined",
              "returned",
              "wasted",
              "available"
            ]
          },
          "aggregateVersion": {
            "type": "integer",
            "minimum": 0
          },
          "deleted": {
            "type": "boolean"
          },
          "package": {
            "type": "object",
            "properties": {
              "packageId": {
                "type": "string",
                "format": "uuid"
              },
              "lifecycleStatus": {
                "type": "string",
                "enum": [
                  "active",
                  "held",
                  "depleted",
                  "archived"
                ]
              },
              "lotCode": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "externalIdentity": {
                "type": "object",
                "properties": {
                  "namespace": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "externalId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "observedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "namespace",
                  "externalId",
                  "observedAt"
                ]
              }
            },
            "required": [
              "packageId",
              "lifecycleStatus"
            ]
          },
          "changedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "inventoryId",
          "locationId",
          "productId",
          "variantId",
          "sku",
          "name",
          "quantityBasis",
          "quantities",
          "aggregateVersion",
          "deleted",
          "changedAt"
        ]
      }
    },
    "page": {
      "type": "object",
      "properties": {
        "nextCursor": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._~-]{32,4096}$"
        },
        "cursorExpiresAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
        },
        "correlationId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
        },
        "apiVersion": {
          "type": "string",
          "enum": [
            "2026-08-07"
          ]
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "syncCheckpoint": {
          "type": "string",
          "format": "date-time"
        },
        "customerReferenceVersion": {
          "type": "string",
          "enum": [
            "hmac-sha256-v1"
          ]
        },
        "dataset": {
          "type": "string",
          "enum": [
            "locations",
            "sales",
            "products",
            "inventory",
            "customer_compliance"
          ]
        },
        "syncOverlapSeconds": {
          "type": "number",
          "enum": [
            300
          ]
        }
      },
      "required": [
        "requestId",
        "correlationId",
        "apiVersion",
        "generatedAt",
        "syncCheckpoint",
        "customerReferenceVersion",
        "dataset",
        "syncOverlapSeconds"
      ]
    }
  },
  "required": [
    "data",
    "page",
    "meta"
  ]
}
PartnerDataError
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "enum": [
        "invalid_request",
        "authentication_required",
        "permission_denied",
        "api_version_not_supported",
        "invalid_cursor",
        "rate_limited",
        "upstream_unavailable",
        "internal_error"
      ]
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
    },
    "correlationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
    },
    "retryable": {
      "type": "boolean"
    },
    "details": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "code",
    "message",
    "requestId",
    "correlationId",
    "retryable"
  ]
}