# cpsc.check

Check up to 200 CPC/GCC certificates against a SKU ledger and shipment lines. Prepare Full PGA fields and Product Registry v3 CSV rows with Reference PGA fields for use after certification (CPSC CATAIR v2.5).

- REST: `POST https://api.kanagu.dev/v1/cpsc/check`
- MCP tool: `cpsc.check` at https://api.kanagu.dev/mcp
- Price: $0.35 USD per certificate, on successful calls only. Trial: 10 calls per IP per UTC day without a key, shared by REST and MCP.
- Auth: `Authorization: Bearer <key>` for billed calls. Retries: reuse `Idempotency-Key`.

## Request body

- `certificates` (array of object, required)
- `certificates[].certificateId` (string (max 64 chars), required): Your internal certificate key, used by the SKU ledger.
- `certificates[].type` ("CPC" | "GCC")
- `certificates[].productId` (string (max 512 chars))
- `certificates[].productIdType` ("GTIN" | "UPC" | "EAN" | "SKU" | "Model Number" | "Serial Number" | "Registered Number" | "Alternate Identifier"): Use 8, 12, 13 or 14 digits for GTIN, 12 for UPC, or 8 or 13 for EAN. EAN files as GTIN.
- `certificates[].productName` (string (max 512 chars))
- `certificates[].description` (string (max 512 chars))
- `certificates[].sku` (string (max 512 chars)): SKU on the certificate, if separate from its primary ID.
- `certificates[].model` (string (max 512 chars)): Model number on the certificate, if separate from its primary ID.
- `certificates[].manufacturer` (object)
- `certificates[].manufacturer.name` (string (max 512 chars))
- `certificates[].manufacturer.address1` (string (max 512 chars))
- `certificates[].manufacturer.address2` (string (max 512 chars))
- `certificates[].manufacturer.gps` (object): For Full PGA when no street address is available. Leave address1 blank or set it to GPS.
- `certificates[].manufacturer.gps.latitude` (string (max 512 chars)): Decimal degrees, -90 to 90, with 4 to 7 decimal places.
- `certificates[].manufacturer.gps.longitude` (string (max 512 chars)): Decimal degrees, -180 to 180, with 4 to 7 decimal places.
- `certificates[].manufacturer.city` (string (max 512 chars))
- `certificates[].manufacturer.stateProvince` (string (max 512 chars)): Use the ACE Appendix B code for the US, CA or MX.
- `certificates[].manufacturer.country` (string (max 512 chars)): ISO alpha-2 country code.
- `certificates[].manufacturer.postalCode` (string (max 512 chars))
- `certificates[].manufacturer.phone` (string (max 512 chars))
- `certificates[].manufacturer.email` (string (max 512 chars))
- `certificates[].manufacturer.registry` (object)
- `certificates[].manufacturer.registry.id` (string (max 512 chars), required)
- `certificates[].manufacturer.registry.idType` ("gln" | "alternate", required)
- `certificates[].manufacturer.registry.isNew` (boolean, required): True to create the trade party on upload.
- `certificates[].manufactureMonth` (string)
- `certificates[].certifier` (object)
- `certificates[].certifier.name` (string (max 512 chars))
- `certificates[].certifier.address1` (string (max 512 chars))
- `certificates[].certifier.address2` (string (max 512 chars))
- `certificates[].certifier.gps` (object): For Full PGA when no street address is available. Leave address1 blank or set it to GPS.
- `certificates[].certifier.gps.latitude` (string (max 512 chars)): Decimal degrees, -90 to 90, with 4 to 7 decimal places.
- `certificates[].certifier.gps.longitude` (string (max 512 chars)): Decimal degrees, -180 to 180, with 4 to 7 decimal places.
- `certificates[].certifier.city` (string (max 512 chars))
- `certificates[].certifier.stateProvince` (string (max 512 chars)): Use the ACE Appendix B code for the US, CA or MX.
- `certificates[].certifier.country` (string (max 512 chars)): ISO alpha-2 country code.
- `certificates[].certifier.postalCode` (string (max 512 chars))
- `certificates[].certifier.phone` (string (max 512 chars))
- `certificates[].certifier.email` (string (max 512 chars))
- `certificates[].certifier.registry` (object)
- `certificates[].certifier.registry.id` (string (max 512 chars), required)
- `certificates[].certifier.registry.idType` ("gln" | "alternate", required)
- `certificates[].certifier.registry.isNew` (boolean, required): True to create the trade party on upload.
- `certificates[].certifier.isImporterOfRecord` (boolean, required)
- `certificates[].recordsContact` (object)
- `certificates[].recordsContact.name` (string (max 512 chars))
- `certificates[].recordsContact.address1` (string (max 512 chars))
- `certificates[].recordsContact.address2` (string (max 512 chars))
- `certificates[].recordsContact.gps` (object): For Full PGA when no street address is available. Leave address1 blank or set it to GPS.
- `certificates[].recordsContact.gps.latitude` (string (max 512 chars)): Decimal degrees, -90 to 90, with 4 to 7 decimal places.
- `certificates[].recordsContact.gps.longitude` (string (max 512 chars)): Decimal degrees, -180 to 180, with 4 to 7 decimal places.
- `certificates[].recordsContact.city` (string (max 512 chars))
- `certificates[].recordsContact.stateProvince` (string (max 512 chars)): Use the ACE Appendix B code for the US, CA or MX.
- `certificates[].recordsContact.country` (string (max 512 chars)): ISO alpha-2 country code.
- `certificates[].recordsContact.postalCode` (string (max 512 chars))
- `certificates[].recordsContact.phone` (string (max 512 chars))
- `certificates[].recordsContact.email` (string (max 512 chars))
- `certificates[].recordsContact.registry` (object)
- `certificates[].recordsContact.registry.id` (string (max 512 chars), required)
- `certificates[].recordsContact.registry.idType` ("gln" | "alternate", required)
- `certificates[].recordsContact.registry.isNew` (boolean, required): True to create the trade party on upload.
- `certificates[].recordsContact.isImporterOfRecord` (boolean, required)
- `certificates[].labs` (array of object)
- `certificates[].attested` (boolean): True only if the certifier made the attestation in 16 CFR 1110.11(a)(7).
- `certificates[].registry` (object)
- `certificates[].registry.versionId` (string (max 512 chars))
- `certificates[].registry.currentVersionId` (string (max 512 chars)): Supply only when updating an existing Registry certificate or adding a new version.
- `skuLedger` (array of object, required)
- `skuLedger[].sku` (string (max 64 chars), required)
- `skuLedger[].model` (string (max 64 chars), required)
- `skuLedger[].productId` (string (max 64 chars), required)
- `skuLedger[].certificateId` (string (max 64 chars), required)
- `skuLedger[].revision` (string (max 64 chars), required)
- `skuLedger[].revisionDate` (string (date))
- `skuLedger[].hts` (string)
- `skuLedger[].category` ("bicycle_helmet" | "full_size_crib" | "clothing_storage_unit")
- `shipmentLines` (array of object, required): Lines for one CBP entry. Use multiple rows on an entry line for distinct products.
- `shipmentLines[].entryLine` (integer (1 to 999), required)
- `shipmentLines[].hts` (string, required)
- `shipmentLines[].sku` (string (max 64 chars), required)
- `shipmentLines[].model` (string (max 64 chars), required)
- `shipmentLines[].commercialDescription` (string (max 512 chars)): English OI description for this shipment row. Defaults to its linked certificate’s product name.
- `shipmentLines[].quantity` (integer (≤ 9007199254740991), required)
- `registryCertifierId` (string (max 512 chars)): Certifier ID of the destination Product Registry collection, for Reference PG14.

## Response

- `certificatesChecked` (integer (1 to 200), required)
- `sources` (object, required)
- `commercialDescriptions` (array of object, required): OI candidates by shipment row. Use one OI per HTS code when assembling PGA records.
- `commercialDescriptions[].row` (integer (0 to 9007199254740991), required): Zero-based index into shipmentLines.
- `commercialDescriptions[].hts` (string, required)
- `commercialDescriptions[].oi` (object, required)
- `commercialDescriptions[].oi.record` ("OI" | "PG01" | "PG02" | "PG07" | "PG10" | "PG14" | … (12 values), required)
- `commercialDescriptions[].oi.fields` (object, required): CATAIR data elements before fixed-width ACE serialization.
- `certificates` (array of object, required)
- `certificates[].certificateId` (string, required)
- `certificates[].findings` (array of object, required)
- `certificates[].findings[].severity` ("error" | "warning", required)
- `certificates[].findings[].code` (string, required)
- `certificates[].findings[].location` (string, required): JSON Pointer into the request.
- `certificates[].findings[].expected` (string, required)
- `certificates[].findings[].actual` (string | null, required)
- `certificates[].findings[].source` (object, required)
- `certificates[].findings[].source.url` (string (uri), required)
- `certificates[].findings[].source.section` (string, required)
- `certificates[].fullFindings` (array of object, required)
- `certificates[].fullFindings[].severity` ("error" | "warning", required)
- `certificates[].fullFindings[].code` (string, required)
- `certificates[].fullFindings[].location` (string, required): JSON Pointer into the request.
- `certificates[].fullFindings[].expected` (string, required)
- `certificates[].fullFindings[].actual` (string | null, required)
- `certificates[].fullFindings[].source` (object, required)
- `certificates[].fullFindings[].source.url` (string (uri), required)
- `certificates[].fullFindings[].source.section` (string, required)
- `certificates[].fullPgaBody` (array of object): Append after PG01 in a linked line’s fullPgaHeader.
- `certificates[].fullPgaBody[].record` ("OI" | "PG01" | "PG02" | "PG07" | "PG10" | "PG14" | … (12 values), required)
- `certificates[].fullPgaBody[].fields` (object, required): CATAIR data elements before fixed-width ACE serialization.
- `certificates[].registryFindings` (array of object, required)
- `certificates[].registryFindings[].severity` ("error" | "warning", required)
- `certificates[].registryFindings[].code` (string, required)
- `certificates[].registryFindings[].location` (string, required): JSON Pointer into the request.
- `certificates[].registryFindings[].expected` (string, required)
- `certificates[].registryFindings[].actual` (string | null, required)
- `certificates[].registryFindings[].source` (object, required)
- `certificates[].registryFindings[].source.url` (string (uri), required)
- `certificates[].registryFindings[].source.section` (string, required)
- `lines` (array of object, required)
- `lines[].row` (integer (0 to 9007199254740991), required): Zero-based index into shipmentLines.
- `lines[].entryLine` (integer (-9007199254740991 to 9007199254740991), required)
- `lines[].hts` (string, required)
- `lines[].sku` (string, required)
- `lines[].model` (string, required)
- `lines[].quantity` (integer (-9007199254740991 to 9007199254740991), required)
- `lines[].certificateId` (string): Look up this ID in certificates for findings shared by all linked lines.
- `lines[].status` ("checked" | "needs_review" | "error", required)
- `lines[].findings` (array of object, required)
- `lines[].findings[].severity` ("error" | "warning", required)
- `lines[].findings[].code` (string, required)
- `lines[].findings[].location` (string, required): JSON Pointer into the request.
- `lines[].findings[].expected` (string, required)
- `lines[].findings[].actual` (string | null, required)
- `lines[].findings[].source` (object, required)
- `lines[].findings[].source.url` (string (uri), required)
- `lines[].findings[].source.section` (string, required)
- `lines[].fullPgaHeader` (array of object): PG01. Append fullPgaBody from the linked certificate to complete the Full message.
- `lines[].fullPgaHeader[].record` ("OI" | "PG01" | "PG02" | "PG07" | "PG10" | "PG14" | … (12 values), required)
- `lines[].fullPgaHeader[].fields` (object, required): CATAIR data elements before fixed-width ACE serialization.
- `lines[].referenceFindings` (array of object, required)
- `lines[].referenceFindings[].severity` ("error" | "warning", required)
- `lines[].referenceFindings[].code` (string, required)
- `lines[].referenceFindings[].location` (string, required): JSON Pointer into the request.
- `lines[].referenceFindings[].expected` (string, required)
- `lines[].referenceFindings[].actual` (string | null, required)
- `lines[].referenceFindings[].source` (object, required)
- `lines[].referenceFindings[].source.url` (string (uri), required)
- `lines[].referenceFindings[].source.section` (string, required)
- `lines[].referencePgaAfterCertification` (array of object): File these fields after the product version is certified in the destination Registry.
- `lines[].referencePgaAfterCertification[].record` ("OI" | "PG01" | "PG02" | "PG07" | "PG10" | "PG14" | … (12 values), required)
- `lines[].referencePgaAfterCertification[].fields` (object, required): CATAIR data elements before fixed-width ACE serialization.
- `registryCsv` (object, required)
- `registryCsv.headers` (array of string, required)
- `registryCsv.rows` (array of object, required)
- `registryCsv.rows[].certificateId` (string, required)
- `registryCsv.rows[].cells` (array of string, required): CSV field values in headers order. Do not include certificateId as a CSV column.

## Example

```sh
curl https://api.kanagu.dev/v1/cpsc/check \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"certificates":[{"certificateId":"GCC-1042","type":"GCC","productId":"TL-HELM-01","productIdType":"SKU","productName":"Trailline urban bicycle helmet","model":"TL-01","manufacturer":{"name":"Summit Protective Gear","address1":"5 Gongye Road","city":"Shenzhen","stateProvince":"Guangdong","country":"CN","postalCode":"518000","phone":"+867555550123","email":"quality@summit.example","registry":{"id":"SUMMIT-SZ","idType":"alternate","isNew":true}},"manufactureMonth":"2026-08","certifier":{"name":"Trailline Imports","address1":"28 Carson Street","city":"Portland","stateProvince":"OR","country":"US","postalCode":"97201","phone":"5035550100","email":"records@trailline.example","isImporterOfRecord":true},"recordsContact":{"name":"Trailline Imports","address1":"28 Carson Street","city":"Portland","stateProvince":"OR","country":"US","postalCode":"97201","phone":"5035550100","email":"records@trailline.example","isImporterOfRecord":true},"labs":[{"kind":"LAB","party":{"name":"West Coast Test Lab","address1":"56 Harbor Way","city":"Tacoma","stateProvince":"WA","country":"US","postalCode":"98402","phone":"2535550101","email":"tests@wctl.example","registry":{"id":"WCTL","idType":"alternate","isNew":true}},"citationCodes":["1203"],"reports":[{"testDate":"2026-07-21","reportId":"WCTL-261572"}],"testedModel":"TL-01","testedRevision":"B"}],"attested":true,"registry":{"versionId":"V2"}}],"skuLedger":[{"sku":"TL-HELM-01","model":"TL-01","productId":"TL-HELM-01","certificateId":"GCC-1042","revision":"B","revisionDate":"2026-07-08","category":"bicycle_helmet","hts":"6506103045"}],"shipmentLines":[{"entryLine":1,"hts":"6506103045","sku":"TL-HELM-01","model":"TL-01","quantity":480}],"registryCertifierId":"TRAILLINE"}'
```

```ts
const res = await fetch("https://api.kanagu.dev/v1/cpsc/check", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "certificates": [
      {
        "certificateId": "GCC-1042",
        "type": "GCC",
        "productId": "TL-HELM-01",
        "productIdType": "SKU",
        "productName": "Trailline urban bicycle helmet",
        "model": "TL-01",
        "manufacturer": {
          "name": "Summit Protective Gear",
          "address1": "5 Gongye Road",
          "city": "Shenzhen",
          "stateProvince": "Guangdong",
          "country": "CN",
          "postalCode": "518000",
          "phone": "+867555550123",
          "email": "quality@summit.example",
          "registry": {
            "id": "SUMMIT-SZ",
            "idType": "alternate",
            "isNew": true
          }
        },
        "manufactureMonth": "2026-08",
        "certifier": {
          "name": "Trailline Imports",
          "address1": "28 Carson Street",
          "city": "Portland",
          "stateProvince": "OR",
          "country": "US",
          "postalCode": "97201",
          "phone": "5035550100",
          "email": "records@trailline.example",
          "isImporterOfRecord": true
        },
        "recordsContact": {
          "name": "Trailline Imports",
          "address1": "28 Carson Street",
          "city": "Portland",
          "stateProvince": "OR",
          "country": "US",
          "postalCode": "97201",
          "phone": "5035550100",
          "email": "records@trailline.example",
          "isImporterOfRecord": true
        },
        "labs": [
          {
            "kind": "LAB",
            "party": {
              "name": "West Coast Test Lab",
              "address1": "56 Harbor Way",
              "city": "Tacoma",
              "stateProvince": "WA",
              "country": "US",
              "postalCode": "98402",
              "phone": "2535550101",
              "email": "tests@wctl.example",
              "registry": {
                "id": "WCTL",
                "idType": "alternate",
                "isNew": true
              }
            },
            "citationCodes": [
              "1203"
            ],
            "reports": [
              {
                "testDate": "2026-07-21",
                "reportId": "WCTL-261572"
              }
            ],
            "testedModel": "TL-01",
            "testedRevision": "B"
          }
        ],
        "attested": true,
        "registry": {
          "versionId": "V2"
        }
      }
    ],
    "skuLedger": [
      {
        "sku": "TL-HELM-01",
        "model": "TL-01",
        "productId": "TL-HELM-01",
        "certificateId": "GCC-1042",
        "revision": "B",
        "revisionDate": "2026-07-08",
        "category": "bicycle_helmet",
        "hts": "6506103045"
      }
    ],
    "shipmentLines": [
      {
        "entryLine": 1,
        "hts": "6506103045",
        "sku": "TL-HELM-01",
        "model": "TL-01",
        "quantity": 480
      }
    ],
    "registryCertifierId": "TRAILLINE"
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
```

## Errors

JSON `{"error":{"code","message"}}`.

- 400 `invalid_input`: The body does not match the request schema. The message names each field.
- 400 `invalid_json`: The body is missing or is not valid JSON.
- 400 `invalid_idempotency_key`: Idempotency-Key must be 1–128 visible ASCII characters.
- 401 `invalid_api_key`: The Bearer key is missing, malformed, invalid or inactive.
- 402 `free_allowance_exhausted`: This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.
- 404 `not_found`: No operation at this path.
- 409 `idempotency_conflict`: The Idempotency-Key was already used with a different body.
- 413 `payload_too_large`: JSON bodies may be at most 64 KiB.
- 429 `trial_limit`: The anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left.
- 500 `internal_error`: The call failed on our side. It is not billed; retry with the same Idempotency-Key.

## JSON Schema

Request:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "certificates": {
      "minItems": 1,
      "maxItems": 200,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "certificateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "Your internal certificate key, used by the SKU ledger."
          },
          "type": {
            "type": "string",
            "enum": [
              "CPC",
              "GCC"
            ]
          },
          "productId": {
            "type": "string",
            "maxLength": 512
          },
          "productIdType": {
            "description": "Use 8, 12, 13 or 14 digits for GTIN, 12 for UPC, or 8 or 13 for EAN. EAN files as GTIN.",
            "type": "string",
            "enum": [
              "GTIN",
              "UPC",
              "EAN",
              "SKU",
              "Model Number",
              "Serial Number",
              "Registered Number",
              "Alternate Identifier"
            ]
          },
          "productName": {
            "type": "string",
            "maxLength": 512
          },
          "description": {
            "type": "string",
            "maxLength": 512
          },
          "sku": {
            "description": "SKU on the certificate, if separate from its primary ID.",
            "type": "string",
            "maxLength": 512
          },
          "model": {
            "description": "Model number on the certificate, if separate from its primary ID.",
            "type": "string",
            "maxLength": 512
          },
          "manufacturer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 512
              },
              "address1": {
                "type": "string",
                "maxLength": 512
              },
              "address2": {
                "type": "string",
                "maxLength": 512
              },
              "gps": {
                "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.",
                "type": "object",
                "properties": {
                  "latitude": {
                    "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.",
                    "type": "string",
                    "maxLength": 512
                  },
                  "longitude": {
                    "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.",
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "additionalProperties": false
              },
              "city": {
                "type": "string",
                "maxLength": 512
              },
              "stateProvince": {
                "description": "Use the ACE Appendix B code for the US, CA or MX.",
                "type": "string",
                "maxLength": 512
              },
              "country": {
                "description": "ISO alpha-2 country code.",
                "type": "string",
                "maxLength": 512
              },
              "postalCode": {
                "type": "string",
                "maxLength": 512
              },
              "phone": {
                "type": "string",
                "maxLength": 512
              },
              "email": {
                "type": "string",
                "maxLength": 512
              },
              "registry": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "idType": {
                    "type": "string",
                    "enum": [
                      "gln",
                      "alternate"
                    ]
                  },
                  "isNew": {
                    "type": "boolean",
                    "description": "True to create the trade party on upload."
                  }
                },
                "required": [
                  "id",
                  "idType",
                  "isNew"
                ],
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "manufactureMonth": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
          },
          "certifier": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 512
              },
              "address1": {
                "type": "string",
                "maxLength": 512
              },
              "address2": {
                "type": "string",
                "maxLength": 512
              },
              "gps": {
                "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.",
                "type": "object",
                "properties": {
                  "latitude": {
                    "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.",
                    "type": "string",
                    "maxLength": 512
                  },
                  "longitude": {
                    "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.",
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "additionalProperties": false
              },
              "city": {
                "type": "string",
                "maxLength": 512
              },
              "stateProvince": {
                "description": "Use the ACE Appendix B code for the US, CA or MX.",
                "type": "string",
                "maxLength": 512
              },
              "country": {
                "description": "ISO alpha-2 country code.",
                "type": "string",
                "maxLength": 512
              },
              "postalCode": {
                "type": "string",
                "maxLength": 512
              },
              "phone": {
                "type": "string",
                "maxLength": 512
              },
              "email": {
                "type": "string",
                "maxLength": 512
              },
              "registry": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "idType": {
                    "type": "string",
                    "enum": [
                      "gln",
                      "alternate"
                    ]
                  },
                  "isNew": {
                    "type": "boolean",
                    "description": "True to create the trade party on upload."
                  }
                },
                "required": [
                  "id",
                  "idType",
                  "isNew"
                ],
                "additionalProperties": false
              },
              "isImporterOfRecord": {
                "type": "boolean"
              }
            },
            "required": [
              "isImporterOfRecord"
            ],
            "additionalProperties": false
          },
          "recordsContact": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 512
              },
              "address1": {
                "type": "string",
                "maxLength": 512
              },
              "address2": {
                "type": "string",
                "maxLength": 512
              },
              "gps": {
                "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.",
                "type": "object",
                "properties": {
                  "latitude": {
                    "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.",
                    "type": "string",
                    "maxLength": 512
                  },
                  "longitude": {
                    "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.",
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "additionalProperties": false
              },
              "city": {
                "type": "string",
                "maxLength": 512
              },
              "stateProvince": {
                "description": "Use the ACE Appendix B code for the US, CA or MX.",
                "type": "string",
                "maxLength": 512
              },
              "country": {
                "description": "ISO alpha-2 country code.",
                "type": "string",
                "maxLength": 512
              },
              "postalCode": {
                "type": "string",
                "maxLength": 512
              },
              "phone": {
                "type": "string",
                "maxLength": 512
              },
              "email": {
                "type": "string",
                "maxLength": 512
              },
              "registry": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "idType": {
                    "type": "string",
                    "enum": [
                      "gln",
                      "alternate"
                    ]
                  },
                  "isNew": {
                    "type": "boolean",
                    "description": "True to create the trade party on upload."
                  }
                },
                "required": [
                  "id",
                  "idType",
                  "isNew"
                ],
                "additionalProperties": false
              },
              "isImporterOfRecord": {
                "type": "boolean"
              }
            },
            "required": [
              "isImporterOfRecord"
            ],
            "additionalProperties": false
          },
          "labs": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "ITL"
                    },
                    "cpscLabId": {
                      "type": "string",
                      "maxLength": 512
                    },
                    "citationCodes": {
                      "maxItems": 125,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      }
                    },
                    "testDate": {
                      "description": "Legacy date shared by the lab's reports.",
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "reportId": {
                      "description": "Legacy ID or semicolon-separated IDs paired with reportUrl.",
                      "type": "string",
                      "maxLength": 512
                    },
                    "reportUrl": {
                      "description": "Legacy URL or semicolon-separated URLs paired with reportId.",
                      "type": "string",
                      "maxLength": 512
                    },
                    "reports": {
                      "description": "Reports from this lab, each with its test date. Supply instead of the lab-level testDate, reportId and reportUrl.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "testDate": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "reportId": {
                            "type": "string",
                            "maxLength": 512
                          },
                          "reportUrl": {
                            "type": "string",
                            "maxLength": 512
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "componentDescription": {
                      "type": "string",
                      "maxLength": 512
                    },
                    "testedModel": {
                      "description": "Model named on the report, if supplied.",
                      "type": "string",
                      "maxLength": 512
                    },
                    "testedRevision": {
                      "description": "Model revision named on the report, if supplied.",
                      "type": "string",
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "LAB"
                    },
                    "party": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "address1": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "address2": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "gps": {
                          "description": "For Full PGA when no street address is available. Leave address1 blank or set it to GPS.",
                          "type": "object",
                          "properties": {
                            "latitude": {
                              "description": "Decimal degrees, -90 to 90, with 4 to 7 decimal places.",
                              "type": "string",
                              "maxLength": 512
                            },
                            "longitude": {
                              "description": "Decimal degrees, -180 to 180, with 4 to 7 decimal places.",
                              "type": "string",
                              "maxLength": 512
                            }
                          },
                          "additionalProperties": false
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "stateProvince": {
                          "description": "Use the ACE Appendix B code for the US, CA or MX.",
                          "type": "string",
                          "maxLength": 512
                        },
                        "country": {
                          "description": "ISO alpha-2 country code.",
                          "type": "string",
                          "maxLength": 512
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "phone": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "email": {
                          "type": "string",
                          "maxLength": 512
                        },
                        "registry": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "maxLength": 512
                            },
                            "idType": {
                              "type": "string",
                              "enum": [
                                "gln",
                                "alternate"
                              ]
                            },
                            "isNew": {
                              "type": "boolean",
                              "description": "True to create the trade party on upload."
                            }
                          },
                          "required": [
                            "id",
                            "idType",
                            "isNew"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "citationCodes": {
                      "maxItems": 125,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      }
                    },
                    "testDate": {
                      "description": "Legacy date shared by the lab's reports.",
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "reportId": {
                      "description": "Legacy ID or semicolon-separated IDs paired with reportUrl.",
                      "type": "string",
                      "maxLength": 512
                    },
                    "reportUrl": {
                      "description": "Legacy URL or semicolon-separated URLs paired with reportId.",
                      "type": "string",
                      "maxLength": 512
                    },
                    "reports": {
                      "description": "Reports from this lab, each with its test date. Supply instead of the lab-level testDate, reportId and reportUrl.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "testDate": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "reportId": {
                            "type": "string",
                            "maxLength": 512
                          },
                          "reportUrl": {
                            "type": "string",
                            "maxLength": 512
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "componentDescription": {
                      "type": "string",
                      "maxLength": 512
                    },
                    "testedModel": {
                      "description": "Model named on the report, if supplied.",
                      "type": "string",
                      "maxLength": 512
                    },
                    "testedRevision": {
                      "description": "Model revision named on the report, if supplied.",
                      "type": "string",
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "NOL"
                    },
                    "exclusionCodes": {
                      "maxItems": 60,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      }
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "attested": {
            "description": "True only if the certifier made the attestation in 16 CFR 1110.11(a)(7).",
            "type": "boolean"
          },
          "registry": {
            "type": "object",
            "properties": {
              "versionId": {
                "type": "string",
                "maxLength": 512
              },
              "currentVersionId": {
                "description": "Supply only when updating an existing Registry certificate or adding a new version.",
                "type": "string",
                "maxLength": 512
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "certificateId"
        ],
        "additionalProperties": false
      }
    },
    "skuLedger": {
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "sku": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "certificateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "revision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "revisionDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "hts": {
            "type": "string",
            "pattern": "^\\d{10}$"
          },
          "category": {
            "type": "string",
            "enum": [
              "bicycle_helmet",
              "full_size_crib",
              "clothing_storage_unit"
            ]
          }
        },
        "required": [
          "sku",
          "model",
          "productId",
          "certificateId",
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "shipmentLines": {
      "minItems": 1,
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "entryLine": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999
          },
          "hts": {
            "type": "string",
            "pattern": "^\\d{10}$"
          },
          "sku": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "commercialDescription": {
            "description": "English OI description for this shipment row. Defaults to its linked certificate’s product name.",
            "type": "string",
            "maxLength": 512
          },
          "quantity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "entryLine",
          "hts",
          "sku",
          "model",
          "quantity"
        ],
        "additionalProperties": false
      },
      "description": "Lines for one CBP entry. Use multiple rows on an entry line for distinct products."
    },
    "registryCertifierId": {
      "description": "Certifier ID of the destination Product Registry collection, for Reference PG14.",
      "type": "string",
      "maxLength": 512
    }
  },
  "required": [
    "certificates",
    "skuLedger",
    "shipmentLines"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "certificates": [
        {
          "certificateId": "GCC-1042",
          "type": "GCC",
          "productId": "TL-HELM-01",
          "productIdType": "SKU",
          "productName": "Trailline urban bicycle helmet",
          "model": "TL-01",
          "manufacturer": {
            "name": "Summit Protective Gear",
            "address1": "5 Gongye Road",
            "city": "Shenzhen",
            "stateProvince": "Guangdong",
            "country": "CN",
            "postalCode": "518000",
            "phone": "+867555550123",
            "email": "quality@summit.example",
            "registry": {
              "id": "SUMMIT-SZ",
              "idType": "alternate",
              "isNew": true
            }
          },
          "manufactureMonth": "2026-08",
          "certifier": {
            "name": "Trailline Imports",
            "address1": "28 Carson Street",
            "city": "Portland",
            "stateProvince": "OR",
            "country": "US",
            "postalCode": "97201",
            "phone": "5035550100",
            "email": "records@trailline.example",
            "isImporterOfRecord": true
          },
          "recordsContact": {
            "name": "Trailline Imports",
            "address1": "28 Carson Street",
            "city": "Portland",
            "stateProvince": "OR",
            "country": "US",
            "postalCode": "97201",
            "phone": "5035550100",
            "email": "records@trailline.example",
            "isImporterOfRecord": true
          },
          "labs": [
            {
              "kind": "LAB",
              "party": {
                "name": "West Coast Test Lab",
                "address1": "56 Harbor Way",
                "city": "Tacoma",
                "stateProvince": "WA",
                "country": "US",
                "postalCode": "98402",
                "phone": "2535550101",
                "email": "tests@wctl.example",
                "registry": {
                  "id": "WCTL",
                  "idType": "alternate",
                  "isNew": true
                }
              },
              "citationCodes": [
                "1203"
              ],
              "reports": [
                {
                  "testDate": "2026-07-21",
                  "reportId": "WCTL-261572"
                }
              ],
              "testedModel": "TL-01",
              "testedRevision": "B"
            }
          ],
          "attested": true,
          "registry": {
            "versionId": "V2"
          }
        }
      ],
      "skuLedger": [
        {
          "sku": "TL-HELM-01",
          "model": "TL-01",
          "productId": "TL-HELM-01",
          "certificateId": "GCC-1042",
          "revision": "B",
          "revisionDate": "2026-07-08",
          "category": "bicycle_helmet",
          "hts": "6506103045"
        }
      ],
      "shipmentLines": [
        {
          "entryLine": 1,
          "hts": "6506103045",
          "sku": "TL-HELM-01",
          "model": "TL-01",
          "quantity": 480
        }
      ],
      "registryCertifierId": "TRAILLINE"
    }
  ]
}
```

Response:
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "certificatesChecked": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "sources": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "version",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "commercialDescriptions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Zero-based index into shipmentLines."
          },
          "hts": {
            "type": "string"
          },
          "oi": {
            "type": "object",
            "properties": {
              "record": {
                "type": "string",
                "enum": [
                  "OI",
                  "PG01",
                  "PG02",
                  "PG07",
                  "PG10",
                  "PG14",
                  "PG19",
                  "PG20",
                  "PG21",
                  "PG22",
                  "PG30",
                  "PG60"
                ]
              },
              "fields": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                },
                "description": "CATAIR data elements before fixed-width ACE serialization."
              }
            },
            "required": [
              "record",
              "fields"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "row",
          "hts",
          "oi"
        ],
        "additionalProperties": false
      },
      "description": "OI candidates by shipment row. Use one OI per HTS code when assembling PGA records."
    },
    "certificates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "certificateId": {
            "type": "string"
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "severity": {
                  "type": "string",
                  "enum": [
                    "error",
                    "warning"
                  ]
                },
                "code": {
                  "type": "string"
                },
                "location": {
                  "type": "string",
                  "description": "JSON Pointer into the request."
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "section": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "section"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "severity",
                "code",
                "location",
                "expected",
                "actual",
                "source"
              ],
              "additionalProperties": false
            }
          },
          "fullFindings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "severity": {
                  "type": "string",
                  "enum": [
                    "error",
                    "warning"
                  ]
                },
                "code": {
                  "type": "string"
                },
                "location": {
                  "type": "string",
                  "description": "JSON Pointer into the request."
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "section": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "section"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "severity",
                "code",
                "location",
                "expected",
                "actual",
                "source"
              ],
              "additionalProperties": false
            }
          },
          "fullPgaBody": {
            "description": "Append after PG01 in a linked line’s fullPgaHeader.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "record": {
                  "type": "string",
                  "enum": [
                    "OI",
                    "PG01",
                    "PG02",
                    "PG07",
                    "PG10",
                    "PG14",
                    "PG19",
                    "PG20",
                    "PG21",
                    "PG22",
                    "PG30",
                    "PG60"
                  ]
                },
                "fields": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "CATAIR data elements before fixed-width ACE serialization."
                }
              },
              "required": [
                "record",
                "fields"
              ],
              "additionalProperties": false
            }
          },
          "registryFindings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "severity": {
                  "type": "string",
                  "enum": [
                    "error",
                    "warning"
                  ]
                },
                "code": {
                  "type": "string"
                },
                "location": {
                  "type": "string",
                  "description": "JSON Pointer into the request."
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "section": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "section"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "severity",
                "code",
                "location",
                "expected",
                "actual",
                "source"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "certificateId",
          "findings",
          "fullFindings",
          "registryFindings"
        ],
        "additionalProperties": false
      }
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Zero-based index into shipmentLines."
          },
          "entryLine": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "hts": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "certificateId": {
            "description": "Look up this ID in certificates for findings shared by all linked lines.",
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "checked",
              "needs_review",
              "error"
            ]
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "severity": {
                  "type": "string",
                  "enum": [
                    "error",
                    "warning"
                  ]
                },
                "code": {
                  "type": "string"
                },
                "location": {
                  "type": "string",
                  "description": "JSON Pointer into the request."
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "section": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "section"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "severity",
                "code",
                "location",
                "expected",
                "actual",
                "source"
              ],
              "additionalProperties": false
            }
          },
          "fullPgaHeader": {
            "description": "PG01. Append fullPgaBody from the linked certificate to complete the Full message.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "record": {
                  "type": "string",
                  "enum": [
                    "OI",
                    "PG01",
                    "PG02",
                    "PG07",
                    "PG10",
                    "PG14",
                    "PG19",
                    "PG20",
                    "PG21",
                    "PG22",
                    "PG30",
                    "PG60"
                  ]
                },
                "fields": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "CATAIR data elements before fixed-width ACE serialization."
                }
              },
              "required": [
                "record",
                "fields"
              ],
              "additionalProperties": false
            }
          },
          "referenceFindings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "severity": {
                  "type": "string",
                  "enum": [
                    "error",
                    "warning"
                  ]
                },
                "code": {
                  "type": "string"
                },
                "location": {
                  "type": "string",
                  "description": "JSON Pointer into the request."
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "section": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "section"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "severity",
                "code",
                "location",
                "expected",
                "actual",
                "source"
              ],
              "additionalProperties": false
            }
          },
          "referencePgaAfterCertification": {
            "description": "File these fields after the product version is certified in the destination Registry.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "record": {
                  "type": "string",
                  "enum": [
                    "OI",
                    "PG01",
                    "PG02",
                    "PG07",
                    "PG10",
                    "PG14",
                    "PG19",
                    "PG20",
                    "PG21",
                    "PG22",
                    "PG30",
                    "PG60"
                  ]
                },
                "fields": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "CATAIR data elements before fixed-width ACE serialization."
                }
              },
              "required": [
                "record",
                "fields"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "row",
          "entryLine",
          "hts",
          "sku",
          "model",
          "quantity",
          "status",
          "findings",
          "referenceFindings"
        ],
        "additionalProperties": false
      }
    },
    "registryCsv": {
      "type": "object",
      "properties": {
        "headers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "rows": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "certificateId": {
                "type": "string"
              },
              "cells": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "CSV field values in headers order. Do not include certificateId as a CSV column."
              }
            },
            "required": [
              "certificateId",
              "cells"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "headers",
        "rows"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "certificatesChecked",
    "sources",
    "commercialDescriptions",
    "certificates",
    "lines",
    "registryCsv"
  ],
  "additionalProperties": false
}
```
