Check a requested quantity against public variant constraints and known availabi
Check a requested quantity against public variant constraints and known availability. Unknown stock remains unknown; this capability never reserves or purchases inventory.
Not tested: has real-world effectsour last check, 2026-09-27
0 of 0checks answered this week
n/amedian answer time
$0.003listed price per call
n/aprice it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://http--forest-gas-station--lcjl27p8lmjs.code.run/commerce/quantity-preflight
| Category | Code and developer |
|---|---|
| Provider host | http--forest-gas-station--lcjl27p8lmjs.code.run |
| Networks | eip155:84532 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"quantity": 8,
"url": "https://shop.example/products/widget",
"variant_id": "123"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"destination": {
"additionalProperties": true,
"type": "object"
},
"options": {
"additionalProperties": true,
"type": "object"
},
"previous_hash": {
"pattern": "^sha256:[a-f0-9]{64}$",
"type": "string"
},
"quantity": {
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"url": {
"maxLength": 2048,
"pattern": "^https?://",
"type": "string"
},
"variant": {
"additionalProperties": true,
"type": "object"
},
"variant_id": {
"maxLength": 256,
"type": "string"
}
},
"required": [
"url",
"variant_id",
"quantity"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"capability": {
"const": "commerce.quantity-preflight"
},
"data": {
"additionalProperties": false,
"properties": {
"allowed": {
"type": "boolean"
},
"available_quantity": {
"type": [
"integer",
"null"
]
},
"blockers": {
"type": "array"
},
"increment": {
"type": [
"integer",
"null"
]
},
"max": {
"type": [
"integer",
"null"
]
},
"min": {
"type": [
"integer",
"null"
]
},
"requested_quantity": {
"type": "integer"
},
"stock_known": {
"type": "boolean"
}
},
"required": [
"allowed",
"requested_quantity",
"min",
"max",
"increment",
"stock_known",
"available_quantity",
"blockers"
],
"type": "object"
},
"meta": {
"additionalProperties": false,
"properties": {
"cache": {
"enum": [
"hit",
"miss",
"bypass"
]
},
"checked_at": {
"type": "string"
},
"duration_ms": {
"minimum": 0,
"type": "integer"
},
"provider": {
"type": [
"string",
"null"
]
}
},
"required": [
"provider",
"checked_at",
"cache",
"duration_ms"
],
"type": "object"
},
"ok": {
"const": true
},
"version": {
"const": "1"
}
},
"required": [
"ok",
"capability",
"version",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}