# Inventory Domain API

API Gateway routing contract for the Inventory domain. Routes requests to downstream inventory service via VPC link.


Version: 0.0.1

## Security

### jwt-authorizer

Type: oauth2

## Download OpenAPI description

[Inventory Domain API](https://test.docs.reece.tech/_bundle/apis/inventory/openapi/@current/openapi.yaml)

## Other

### Batch inventory availability check

 - [POST /v1/{countryCode}/availability-queries](https://test.docs.reece.tech/apis/inventory/openapi/openapi-1/other/queryinventoryavailability.md): Executes availability checks for one or more products in a single request.
No query resource is persisted — results reflect domain data at the time
of the call.

Each item independently determines check type based on the presence of date:
- date present → ATP (Available to Promise by that date)
- date absent  → ATS (Available to Sell — current sellable quantity)

The checkType field in each result indicates which check was performed.
Items with an invalid productId return 404 in items[].error.
Items with zero availability at a valid branch return availableQty: 0 — not an error.

