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).
https://api.kanagu.dev/v1/cpsc/check- Price
- $0.35 per certificate, on successful calls only
- Without a key
- 10 free calls per IP per UTC day, shared by REST and MCP.
- MCP tool
cpsc.checkathttps://api.kanagu.dev/mcp- Markdown
- /docs/cpsc.check.md
curl https://api.kanagu.dev/v1/cpsc/check \
-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"}'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"}'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();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "cpsc.check",
"arguments": {
"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"
}
}
}{
"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"
}{
"certificatesChecked": 1,
"sources": {
"certificate": {
"version": "90 FR 1800, effective 2026-07-08",
"url": "https://www.ecfr.gov/current/title-16/chapter-II/subchapter-B/part-1110/section-1110.11"
},
"pga": {
"version": "CPSC CATAIR v2.5, May 2026",
"url": "https://www.cbp.gov/sites/default/files/2026-06/260622_efiling_catair_ig_v2.5.pdf"
},
"…": "7 more sources"
},
"commercialDescriptions": [
{
"row": 0,
"hts": "6506103045",
"oi": {
"record": "OI",
"fields": {
"commercialDescription": "Trailline urban bicycle helmet"
}
}
}
],
"certificates": [
{
"certificateId": "GCC-1042",
"findings": [],
"fullFindings": [],
"fullPgaBody": [
{
"record": "PG02",
"fields": {
"itemType": "P",
"productCodeQualifier": "SKU",
"productCodeNumber": "TL-HELM-01"
}
},
{
"record": "PG07",
"fields": {
"productName": "Trailline urban",
"manufactureMonthAndYear": "082026",
"itemIdentityNumberQualifier": "MN",
"itemIdentityNumber": "TL-01"
}
},
{
"record": "PG60",
"fields": {
"additionalInformationQualifierCode": "PMN",
"additionalInformation": " bicycle helmet"
}
},
{
"record": "PG30",
"fields": {
"laboratoryTestingStatus": "L",
"dateOfLaboratoryTesting": "07212026"
}
},
{
"record": "PG19",
"fields": {
"entityRoleCode": "MF",
"entityName": "Summit Protective Gear",
"entityAddress1": "5 Gongye Road"
}
},
"… 8 more records"
],
"registryFindings": []
}
],
"lines": [
{
"row": 0,
"entryLine": 1,
"hts": "6506103045",
"sku": "TL-HELM-01",
"model": "TL-01",
"quantity": 480,
"certificateId": "GCC-1042",
"status": "checked",
"findings": [],
"fullPgaHeader": [
{
"record": "PG01",
"fields": {
"pgaLineNumber": "001",
"governmentAgencyCode": "CPS",
"governmentAgencyProgramCode": "CPS",
"governmentAgencyProcessingCode": "FGC"
}
}
],
"referenceFindings": [],
"referencePgaAfterCertification": [
{
"record": "PG01",
"fields": {
"pgaLineNumber": "001",
"governmentAgencyCode": "CPS",
"governmentAgencyProgramCode": "CPS",
"governmentAgencyProcessingCode": "REF"
}
},
{
"record": "PG02",
"fields": {
"itemType": "P",
"productCodeQualifier1": "PRI",
"productCodeNumber1": "TL-HELM-01",
"productCodeQualifier2": "PRIV",
"productCodeNumber2": "V2"
}
},
{
"record": "PG14",
"fields": {
"certifierId": "TRAILLINE"
}
}
]
}
],
"registryCsv": {
"headers": [
"Product Update",
"Current Version ID",
"New Version ID",
"Primary Product ID",
"Primary Product ID Type",
"… 78 more columns"
],
"rows": [
{
"certificateId": "GCC-1042",
"cells": [
"N",
"",
"V2",
"TL-HELM-01",
"SKU",
"… 78 more cells"
]
}
]
}
}Request body
application/json
certificatesarray of objectrequiredcertificates[].certificateIdstring (max 64 chars)required- Your internal certificate key, used by the SKU ledger.
certificates[].type"CPC" | "GCC"certificates[].productIdstring (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[].productNamestring (max 512 chars)certificates[].descriptionstring (max 512 chars)certificates[].skustring (max 512 chars)- SKU on the certificate, if separate from its primary ID.
certificates[].modelstring (max 512 chars)- Model number on the certificate, if separate from its primary ID.
certificates[].manufacturerobjectcertificates[].manufacturer.namestring (max 512 chars)certificates[].manufacturer.address1string (max 512 chars)certificates[].manufacturer.address2string (max 512 chars)certificates[].manufacturer.gpsobject- For Full PGA when no street address is available. Leave address1 blank or set it to GPS.
certificates[].manufacturer.gps.latitudestring (max 512 chars)- Decimal degrees, -90 to 90, with 4 to 7 decimal places.
certificates[].manufacturer.gps.longitudestring (max 512 chars)- Decimal degrees, -180 to 180, with 4 to 7 decimal places.
certificates[].manufacturer.citystring (max 512 chars)certificates[].manufacturer.stateProvincestring (max 512 chars)- Use the ACE Appendix B code for the US, CA or MX.
certificates[].manufacturer.countrystring (max 512 chars)- ISO alpha-2 country code.
certificates[].manufacturer.postalCodestring (max 512 chars)certificates[].manufacturer.phonestring (max 512 chars)certificates[].manufacturer.emailstring (max 512 chars)certificates[].manufacturer.registryobjectcertificates[].manufacturer.registry.idstring (max 512 chars)requiredcertificates[].manufacturer.registry.idType"gln" | "alternate"requiredcertificates[].manufacturer.registry.isNewbooleanrequired- True to create the trade party on upload.
certificates[].manufactureMonthstringcertificates[].certifierobjectcertificates[].certifier.namestring (max 512 chars)certificates[].certifier.address1string (max 512 chars)certificates[].certifier.address2string (max 512 chars)certificates[].certifier.gpsobject- For Full PGA when no street address is available. Leave address1 blank or set it to GPS.
certificates[].certifier.gps.latitudestring (max 512 chars)- Decimal degrees, -90 to 90, with 4 to 7 decimal places.
certificates[].certifier.gps.longitudestring (max 512 chars)- Decimal degrees, -180 to 180, with 4 to 7 decimal places.
certificates[].certifier.citystring (max 512 chars)certificates[].certifier.stateProvincestring (max 512 chars)- Use the ACE Appendix B code for the US, CA or MX.
certificates[].certifier.countrystring (max 512 chars)- ISO alpha-2 country code.
certificates[].certifier.postalCodestring (max 512 chars)certificates[].certifier.phonestring (max 512 chars)certificates[].certifier.emailstring (max 512 chars)certificates[].certifier.registryobjectcertificates[].certifier.registry.idstring (max 512 chars)requiredcertificates[].certifier.registry.idType"gln" | "alternate"requiredcertificates[].certifier.registry.isNewbooleanrequired- True to create the trade party on upload.
certificates[].certifier.isImporterOfRecordbooleanrequiredcertificates[].recordsContactobjectcertificates[].recordsContact.namestring (max 512 chars)certificates[].recordsContact.address1string (max 512 chars)certificates[].recordsContact.address2string (max 512 chars)certificates[].recordsContact.gpsobject- For Full PGA when no street address is available. Leave address1 blank or set it to GPS.
certificates[].recordsContact.gps.latitudestring (max 512 chars)- Decimal degrees, -90 to 90, with 4 to 7 decimal places.
certificates[].recordsContact.gps.longitudestring (max 512 chars)- Decimal degrees, -180 to 180, with 4 to 7 decimal places.
certificates[].recordsContact.citystring (max 512 chars)certificates[].recordsContact.stateProvincestring (max 512 chars)- Use the ACE Appendix B code for the US, CA or MX.
certificates[].recordsContact.countrystring (max 512 chars)- ISO alpha-2 country code.
certificates[].recordsContact.postalCodestring (max 512 chars)certificates[].recordsContact.phonestring (max 512 chars)certificates[].recordsContact.emailstring (max 512 chars)certificates[].recordsContact.registryobjectcertificates[].recordsContact.registry.idstring (max 512 chars)requiredcertificates[].recordsContact.registry.idType"gln" | "alternate"requiredcertificates[].recordsContact.registry.isNewbooleanrequired- True to create the trade party on upload.
certificates[].recordsContact.isImporterOfRecordbooleanrequiredcertificates[].labsarray of objectcertificates[].attestedboolean- True only if the certifier made the attestation in 16 CFR 1110.11(a)(7).
certificates[].registryobjectcertificates[].registry.versionIdstring (max 512 chars)certificates[].registry.currentVersionIdstring (max 512 chars)- Supply only when updating an existing Registry certificate or adding a new version.
skuLedgerarray of objectrequiredskuLedger[].skustring (max 64 chars)requiredskuLedger[].modelstring (max 64 chars)requiredskuLedger[].productIdstring (max 64 chars)requiredskuLedger[].certificateIdstring (max 64 chars)requiredskuLedger[].revisionstring (max 64 chars)requiredskuLedger[].revisionDatestring (date)skuLedger[].htsstringskuLedger[].category"bicycle_helmet" | "full_size_crib" | "clothing_storage_unit"shipmentLinesarray of objectrequired- Lines for one CBP entry. Use multiple rows on an entry line for distinct products.
shipmentLines[].entryLineinteger (1 to 999)requiredshipmentLines[].htsstringrequiredshipmentLines[].skustring (max 64 chars)requiredshipmentLines[].modelstring (max 64 chars)requiredshipmentLines[].commercialDescriptionstring (max 512 chars)- English OI description for this shipment row. Defaults to its linked certificate’s product name.
shipmentLines[].quantityinteger (≤ 9007199254740991)requiredregistryCertifierIdstring (max 512 chars)- Certifier ID of the destination Product Registry collection, for Reference PG14.
Response
200 · application/json
certificatesCheckedinteger (1 to 200)requiredsourcesobjectrequiredcommercialDescriptionsarray of objectrequired- OI candidates by shipment row. Use one OI per HTS code when assembling PGA records.
commercialDescriptions[].rowinteger (0 to 9007199254740991)required- Zero-based index into shipmentLines.
commercialDescriptions[].htsstringrequiredcommercialDescriptions[].oiobjectrequiredcommercialDescriptions[].oi.record"OI" | "PG01" | "PG02" | "PG07" | "PG10" | "PG14" | … (12 values)requiredcommercialDescriptions[].oi.fieldsobjectrequired- CATAIR data elements before fixed-width ACE serialization.
certificatesarray of objectrequiredcertificates[].certificateIdstringrequiredcertificates[].findingsarray of objectrequiredcertificates[].findings[].severity"error" | "warning"requiredcertificates[].findings[].codestringrequiredcertificates[].findings[].locationstringrequired- JSON Pointer into the request.
certificates[].findings[].expectedstringrequiredcertificates[].findings[].actualstring | nullrequiredcertificates[].findings[].sourceobjectrequiredcertificates[].findings[].source.urlstring (uri)requiredcertificates[].findings[].source.sectionstringrequiredcertificates[].fullFindingsarray of objectrequiredcertificates[].fullFindings[].severity"error" | "warning"requiredcertificates[].fullFindings[].codestringrequiredcertificates[].fullFindings[].locationstringrequired- JSON Pointer into the request.
certificates[].fullFindings[].expectedstringrequiredcertificates[].fullFindings[].actualstring | nullrequiredcertificates[].fullFindings[].sourceobjectrequiredcertificates[].fullFindings[].source.urlstring (uri)requiredcertificates[].fullFindings[].source.sectionstringrequiredcertificates[].fullPgaBodyarray of object- Append after PG01 in a linked line’s fullPgaHeader.
certificates[].fullPgaBody[].record"OI" | "PG01" | "PG02" | "PG07" | "PG10" | "PG14" | … (12 values)requiredcertificates[].fullPgaBody[].fieldsobjectrequired- CATAIR data elements before fixed-width ACE serialization.
certificates[].registryFindingsarray of objectrequiredcertificates[].registryFindings[].severity"error" | "warning"requiredcertificates[].registryFindings[].codestringrequiredcertificates[].registryFindings[].locationstringrequired- JSON Pointer into the request.
certificates[].registryFindings[].expectedstringrequiredcertificates[].registryFindings[].actualstring | nullrequiredcertificates[].registryFindings[].sourceobjectrequiredcertificates[].registryFindings[].source.urlstring (uri)requiredcertificates[].registryFindings[].source.sectionstringrequiredlinesarray of objectrequiredlines[].rowinteger (0 to 9007199254740991)required- Zero-based index into shipmentLines.
lines[].entryLineinteger (-9007199254740991 to 9007199254740991)requiredlines[].htsstringrequiredlines[].skustringrequiredlines[].modelstringrequiredlines[].quantityinteger (-9007199254740991 to 9007199254740991)requiredlines[].certificateIdstring- Look up this ID in certificates for findings shared by all linked lines.
lines[].status"checked" | "needs_review" | "error"requiredlines[].findingsarray of objectrequiredlines[].findings[].severity"error" | "warning"requiredlines[].findings[].codestringrequiredlines[].findings[].locationstringrequired- JSON Pointer into the request.
lines[].findings[].expectedstringrequiredlines[].findings[].actualstring | nullrequiredlines[].findings[].sourceobjectrequiredlines[].findings[].source.urlstring (uri)requiredlines[].findings[].source.sectionstringrequiredlines[].fullPgaHeaderarray 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)requiredlines[].fullPgaHeader[].fieldsobjectrequired- CATAIR data elements before fixed-width ACE serialization.
lines[].referenceFindingsarray of objectrequiredlines[].referenceFindings[].severity"error" | "warning"requiredlines[].referenceFindings[].codestringrequiredlines[].referenceFindings[].locationstringrequired- JSON Pointer into the request.
lines[].referenceFindings[].expectedstringrequiredlines[].referenceFindings[].actualstring | nullrequiredlines[].referenceFindings[].sourceobjectrequiredlines[].referenceFindings[].source.urlstring (uri)requiredlines[].referenceFindings[].source.sectionstringrequiredlines[].referencePgaAfterCertificationarray 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)requiredlines[].referencePgaAfterCertification[].fieldsobjectrequired- CATAIR data elements before fixed-width ACE serialization.
registryCsvobjectrequiredregistryCsv.headersarray of stringrequiredregistryCsv.rowsarray of objectrequiredregistryCsv.rows[].certificateIdstringrequiredregistryCsv.rows[].cellsarray of stringrequired- CSV field values in headers order. Do not include certificateId as a CSV column.
Try it
Errors
Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis 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_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 429 | trial_limitThe anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left. |
| 500 | internal_errorThe call failed on our side. It is not billed; retry with the same Idempotency-Key. |
JSON Schema
Request schema
{
"$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 schema
{
"$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
}