GS1 identifier validation: GTIN-8/12/13/14, GLN, SSCC
id_gs1Validate and convert GS1 identifiers: GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, GLN and SSCC. Returns the check-digit verdict, the computed correct check digit, the GS1 company-prefix boundary where it is derivable, and conversion to GTIN-14. Also computes a missing check digit from a partial code. Structure only, no product database. Price: $0.05 per successful call, paid over x402 (USDC on Base).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | validate (default), checkdigit (compute the missing final digit) or convert. Accepted: validate, checkdigit, convert. | |
| to | No | Target format. Required when op=convert. Accepted: gtin8, gtin12, gtin13, gtin14. | |
| value | Yes | GS1 code, digits with optional spaces or hyphens. For op=checkdigit, omit the final digit. Accepted: 8, 12, 13, 14 or 18 digits. |