What It Does
The Minting API provides preflight validation to determine whether a product batch is eligible for passport minting. The preflight check evaluates all prerequisites — schema completeness, commercial status, and batch readiness — before a mint job can proceed.Authentication & Permissions
All RPCs require an authenticated session. Minting operations require a role with sufficient permissions for the target brand (typically admin or owner).RPCs
preflight_mint_batch
Runs a preflight check against a product and batch to determine minting eligibility. Request- Not authenticated — request has no valid JWT.
- Forbidden — caller does not have sufficient access.
- Invalid input — request is malformed or cannot be processed.
_requested_quantityand_idempotency_keyare optional.- Preflight checks are deterministic and can be re-run at any time.
- Idempotency is supported: submitting the same key twice returns the existing job.
- Scope types include
sku,batch, andserial— determined by the brand’s minting configuration.