Validate a GTIN check digit
identifiers_gtin-checksum-validateRead-onlyIdempotent
Validate GTIN-8, GTIN-12, GTIN-13, or GTIN-14 check digits with the published GS1 algorithm. Company prefix ownership is not looked up. Price $0.01 USDC. POST /api/v1/identifiers/gtin-checksum-validate. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gtin": "<gtin>"
},
"name": "identifiers_gtin-checksum-validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gtin | Yes | gtin, string, length 8 to 18. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gtin | No | gtin. String. | |
| valid | No | valid. Boolean. | |
| length | No | length. Number. | |
| sources | No | sources. Array. | |
| formatOk | No | formatOk. Boolean. | |
| lengthOk | No | lengthOk. Boolean. | |
| checksumOk | No | checksumOk. Boolean. | |
| limitations | No | limitations. Array. | |
| retrievedAt | No | retrievedAt. String. | |
| expectedCheckDigit | No | expectedCheckDigit. Number. | |
| observedCheckDigit | No | observedCheckDigit. Number. |