{"info":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","description":"<html><head></head><body><h1 id=\"safepackage-api-v127\">SafePackage API v1.27</h1>\n<p>Includes the main API spec (v1.27), PGA Data Supplement (v1.27), and Tracking Supplement (v1.17.3).</p>\n<h2 id=\"general-api-information\">General API Information</h2>\n<ul>\n<li><strong>Type</strong>: REST Web Service</li>\n<li><strong>Protocol</strong>: HTTP 1.1 / TLS</li>\n<li><strong>Serialization</strong>: JSON</li>\n<li><strong>Authentication</strong>: API Key (Token)</li>\n</ul>\n<h2 id=\"environments\">Environments</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment</th>\n<th>Base URL</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Production</td>\n<td><a href=\"https://api.safepackage.com\">https://api.safepackage.com</a></td>\n</tr>\n<tr>\n<td>Development</td>\n<td><a href=\"https://sandbox.safepackage.com\">https://sandbox.safepackage.com</a></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"required-headers\">Required Headers</h2>\n<ul>\n<li><code>Content-Type: application/json</code></li>\n<li><code>Accept: application/json</code></li>\n<li><code>Accept-Encoding: gzip, deflate</code></li>\n<li><code>Authorization: ApiKey YOUR_ACCESS_KEY</code></li>\n</ul>\n<h2 id=\"endpoint-index\">Endpoint Index</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Endpoint</th>\n<th>Method</th>\n<th>Path</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Product Screening</td>\n<td>POST</td>\n<td>/v1/product/screen</td>\n</tr>\n<tr>\n<td>Package Screening</td>\n<td>POST</td>\n<td>/v1/package/screen</td>\n</tr>\n<tr>\n<td>Package Data Submission (TDP)</td>\n<td>POST</td>\n<td>/v1/package/submit</td>\n</tr>\n<tr>\n<td>Duty Collection</td>\n<td>POST</td>\n<td>/v1/duty/pay</td>\n</tr>\n<tr>\n<td>Shipment Registration</td>\n<td>POST</td>\n<td>/v1/shipment/register</td>\n</tr>\n<tr>\n<td>Section 321 Data Submission</td>\n<td>POST</td>\n<td>/v1/customs/s321/shipment</td>\n</tr>\n<tr>\n<td>Shipment Verification</td>\n<td>POST</td>\n<td>/v1/shipment/verify</td>\n</tr>\n<tr>\n<td>Content Audit</td>\n<td>POST</td>\n<td>/v1/package/audit</td>\n</tr>\n<tr>\n<td>Package Tracking <em>(new v1.27)</em></td>\n<td>GET</td>\n<td>/v1/tracking/package/{packageId}</td>\n</tr>\n<tr>\n<td>Shipment Tracking <em>(new v1.27)</em></td>\n<td>GET</td>\n<td>/v1/tracking/shipment/{shipmentId}</td>\n</tr>\n<tr>\n<td>Platform List</td>\n<td>GET</td>\n<td>/v1/platform</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"whats-new-in-v127\">What's New in v1.27</h2>\n<ul>\n<li><code>hts</code> is now <strong>required</strong> (10 digits) on Product Screening and Package Screening product objects</li>\n<li><code>declarations.copper</code> object added on package line items</li>\n<li><code>declarations.aluminum.secondarySmeltCountry</code> relaxed to conditional</li>\n<li><code>declarations.aluminum.castCountry</code> type corrected to string (ISO-3)</li>\n<li>Obsolete <code>group</code> field removed from package line item docs</li>\n<li><strong>PGA Data Supplement</strong> — full agency/program reference with data schemas</li>\n<li><strong>Tracking Supplement</strong> — two new GET endpoints for package and shipment event history</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"SafePackage API v1.27","slug":"safepackage-api-v127"}],"owner":"1980603","collectionId":"5faf80cd-32ab-4646-8e39-6a344a916230","publishedId":"2sBYAyroUR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-09-10T15:43:47.000Z"},"item":[{"name":"Product Screening","item":[{"name":"Screen Product","id":"3fd90617-bfb0-4ddd-833c-9bdef4422c40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"sku\": \"SKU-12345\",\n  \"platformId\": \"AMAZON\",\n  \"sellerId\": \"seller-store-001\",\n  \"url\": \"https://www.example.com/product/12345\",\n  \"name\": \"Wireless Bluetooth Headphones\",\n  \"description\": \"Premium wireless headphones with active noise cancellation, 30-hour battery life, and foldable design. Includes carrying case and USB-C charging cable.\",\n  \"declaredName\": \"Wireless Audio Headset\",\n  \"price\": 49.99,\n  \"images\": [\n    \"<base64_encoded_image_1>\",\n    \"<base64_encoded_image_2>\"\n  ],\n  \"categories\": [\"Electronics\", \"Audio\", \"Headphones\"],\n  \"pieces\": 1,\n  \"ean\": \"0123456789012\",\n  \"hts\": \"8518300000\",\n  \"normalize\": false,\n  \"originCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"instructions\": [\n    {\n      \"type\": \"INSTRUCTION_TYPE\",\n      \"value\": \"instruction_value\"\n    }\n  ],\n  \"attributes\": [\n    { \"type\": \"ManufacturerId\", \"value\": \"MID123456789\" },\n    { \"type\": \"ManufacturerName\", \"value\": \"Acme Electronics Co. Ltd.\" },\n    { \"type\": \"ManufacturerAddress\", \"value\": \"123 Factory Road, Shenzhen, Guangdong, China\" }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/product/screen","description":"<h1 id=\"screen-product\">Screen Product</h1>\n<h2 id=\"required-fields\">Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sku</code></td>\n<td>string</td>\n<td>50</td>\n<td>Unique product listing identifier</td>\n</tr>\n<tr>\n<td><code>platformId</code></td>\n<td>string</td>\n<td>20</td>\n<td>Marketplace platform identifier</td>\n</tr>\n<tr>\n<td><code>sellerId</code></td>\n<td>string</td>\n<td>–</td>\n<td>Seller/store identifier</td>\n</tr>\n<tr>\n<td><code>url</code></td>\n<td>string</td>\n<td>1000</td>\n<td>Public product listing URL</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>300</td>\n<td>Full advertised product name (must match product page)</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>–</td>\n<td>Full advertised description (must match product page)</td>\n</tr>\n<tr>\n<td><code>price</code></td>\n<td>number</td>\n<td>–</td>\n<td>List price in USD</td>\n</tr>\n<tr>\n<td><code>images[]</code></td>\n<td>base64 array</td>\n<td>–</td>\n<td>One or more images. JPEG recommended, min 640×480. Formats: JPEG, WEBP, PNG8, PNG24, GIF (non-animated)</td>\n</tr>\n<tr>\n<td><code>hts</code></td>\n<td>string</td>\n<td>10</td>\n<td><strong>[NEW v1.27 — now required]</strong> Primary US HTS number, exactly 10 digits</td>\n</tr>\n<tr>\n<td><code>originCountry</code></td>\n<td>string</td>\n<td>–</td>\n<td>ISO-3 uppercase. Use <code>CHN</code> for China</td>\n</tr>\n<tr>\n<td><code>destinationCountry</code></td>\n<td>string</td>\n<td>–</td>\n<td>ISO-3 uppercase. Use <code>USA</code> for United States</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"conditional-fields\">Conditional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>declaredName</code></td>\n<td>string</td>\n<td>300</td>\n<td>Customs declaration name if different from <code>name</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-fields\">Optional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>categories[]</code></td>\n<td>string array</td>\n<td>Store categories or keywords</td>\n</tr>\n<tr>\n<td><code>pieces</code></td>\n<td>number</td>\n<td>Total number of pieces</td>\n</tr>\n<tr>\n<td><code>ean</code></td>\n<td>string (20)</td>\n<td>13-digit EAN or 12-digit UPC</td>\n</tr>\n<tr>\n<td><code>normalize</code></td>\n<td>boolean</td>\n<td>Whether product data needs normalizing</td>\n</tr>\n<tr>\n<td><code>instructions[]</code></td>\n<td>object array</td>\n<td>Special screening instructions (<code>type</code> required, <code>value</code> conditional)</td>\n</tr>\n<tr>\n<td><code>attributes[]</code></td>\n<td>object array</td>\n<td>Additional attributes. Types: <code>ManufacturerId</code>, <code>ManufacturerName</code>, <code>ManufacturerAddress</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>reference</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage product reference</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>number</td>\n<td>Required</td>\n<td><code>1</code> Accepted · <code>2</code> Rejected · <code>3</code> Inconclusive</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Required</td>\n<td><code>Accepted</code>, <code>Rejected</code>, or <code>Inconclusive</code></td>\n</tr>\n<tr>\n<td><code>reason.code</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Three-letter rejection reason code</td>\n</tr>\n<tr>\n<td><code>reason.description</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Short rejection reason description</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"rejection-reason-codes\">Rejection Reason Codes</h2>\n<p><code>RMG</code> <code>RBT</code> <code>RDG</code> – Transportation security · <code>RHP</code> – De-minimis · <code>RIP</code> – IP infringement · <code>RIC</code> – Copyright · <code>RIT</code> – Trademark · <code>RIN</code> – Patent · <code>RCT</code> <code>RCR</code> – Customs · <code>RPA</code> – USDA · <code>RPW</code> – FWS · <code>RPT</code> – DOT · <code>RPD</code> – FDA · <code>RPS</code> – CPSC · <code>RPF</code> – FCEN · <code>RPE</code> – ATF · <code>RPL</code> – Forced labor · <code>RBD</code> – Bad data</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","product","screen"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"c02b7f16-406b-4005-bdad-e922e1869072","name":"Accepted","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/product/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"reference\": \"SP-REF-00123456\",\n  \"code\": 1,\n  \"status\": \"Accepted\"\n}"},{"id":"3e6dc658-f816-402d-ab90-b47a95e8b077","name":"Rejected","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/product/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"reference\": \"SP-REF-00123457\",\n  \"code\": 2,\n  \"status\": \"Rejected\",\n  \"reason\": {\n    \"code\": \"RIT\",\n    \"description\": \"Trademark Infringement\"\n  }\n}"},{"id":"94ef1c7e-e4c2-405c-ab89-67178e35bba8","name":"Inconclusive","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/product/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"reference\": \"SP-REF-00123458\",\n  \"code\": 3,\n  \"status\": \"Inconclusive\",\n  \"reason\": {\n    \"code\": \"RBD\",\n    \"description\": \"Bad or incomplete data\"\n  }\n}"}],"_postman_id":"3fd90617-bfb0-4ddd-833c-9bdef4422c40"}],"id":"d247015c-7dad-4473-8e5b-fe6ad1644aa9","description":"<p>Determine the customs compliance status of a product and whether it can be imported into the U.S.</p>\n<p><strong>Endpoint:</strong> <code>POST /v1/product/screen</code></p>\n<p><strong>v1.27 change:</strong> <code>hts</code> is now <strong>required</strong> (10-digit US HTS number).</p>\n<p><strong>Result codes:</strong> <code>1</code> Accepted · <code>2</code> Rejected · <code>3</code> Inconclusive</p>\n","_postman_id":"d247015c-7dad-4473-8e5b-fe6ad1644aa9","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Package Screening","item":[{"name":"Screen Package","id":"866a8ad1-70b9-4909-885a-f602f8257758","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"PKG-EXT-001\",\n  \"platformId\": \"AMAZON\",\n  \"sellerId\": \"seller-store-001\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB000000001\",\n  \"barcode\": \"9400111899223397667318\",\n  \"invoiceNumber\": \"INV-2024-001\",\n  \"containerId\": \"CONT-BARCODE-001\",\n  \"group\": {\n    \"id\": \"GROUP-001\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": { \"value\": 1.2, \"unit\": \"K\" },\n  \"declaredValue\": 49.99,\n  \"charges\": 0.00,\n  \"from\": {\n    \"name\": \"Shenzhen Supplier Co.\",\n    \"line1\": \"123 Factory Road\",\n    \"line2\": \"Building A\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86-755-1234-5678\",\n    \"email\": \"export@supplier.com\"\n  },\n  \"to\": {\n    \"name\": \"John Smith\",\n    \"line1\": \"456 Main Street\",\n    \"line2\": \"Apt 7B\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"postalCode\": \"10001\",\n    \"country\": \"USA\",\n    \"phone\": \"+1-212-555-0100\",\n    \"email\": \"jsmith@email.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"items\": [\n        {\n          \"declaredValue\": 49.99,\n          \"declaredName\": \"Wireless Audio Headset\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"MID123456789\",\n          \"weight\": { \"value\": 1.2, \"unit\": \"K\" },\n          \"tariffStack\": [\n            {\n              \"hts\": \"8518300000\",\n              \"value\": 49.99,\n              \"indicators\": [\n                { \"type\": \"SPI\", \"value\": \"CL\" }\n              ],\n              \"quantities\": [\n                { \"unit\": \"NO\", \"quantity\": 1 }\n              ]\n            }\n          ],\n          \"pga\": [\n            {\n              \"agency\": \"FDA\",\n              \"program\": {\n                \"code\": \"DRU\",\n                \"productCode\": \"ABC\",\n                \"processingCode\": \"AC\",\n                \"intendedUseCode\": \"081\"\n              }\n            }\n          ],\n          \"declarations\": {\n            \"aluminum\": {\n              \"primarySmeltCountry\": \"CHN\",\n              \"secondarySmeltCountry\": \"CHN\",\n              \"castCountry\": \"CHN\"\n            },\n            \"copper\": {\n              \"primarySmeltCountry\": \"CHN\",\n              \"secondarySmeltCountry\": \"CHN\",\n              \"castCountry\": \"CHN\"\n            },\n            \"steel\": {\n              \"meltCountry\": \"CHN\",\n              \"applicabilityCode\": \"N\"\n            }\n          }\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-12345\",\n        \"url\": \"https://www.example.com/product/12345\",\n        \"name\": \"Wireless Bluetooth Headphones\",\n        \"description\": \"Premium wireless headphones with active noise cancellation.\",\n        \"price\": 49.99,\n        \"images\": [\"<base64_encoded_image_1>\"],\n        \"originCountry\": \"CHN\",\n        \"categories\": [\"Electronics\", \"Audio\"],\n        \"pieces\": 1,\n        \"ean\": \"0123456789012\",\n        \"hts\": \"8518300000\",\n        \"normalize\": false,\n        \"instructions\": [],\n        \"attributes\": [\n          { \"type\": \"ManufacturerId\", \"value\": \"MID123456789\" },\n          { \"type\": \"ManufacturerName\", \"value\": \"Acme Electronics Co. Ltd.\" },\n          { \"type\": \"ManufacturerAddress\", \"value\": \"123 Factory Road, Shenzhen, Guangdong, China\" }\n        ]\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/package/screen","description":"<h1 id=\"screen-package\">Screen Package</h1>\n<h2 id=\"top-level-required-fields\">Top-Level Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>–</td>\n<td>Package identifier in client's system</td>\n</tr>\n<tr>\n<td><code>platformId</code></td>\n<td>string</td>\n<td>20</td>\n<td>Marketplace platform identifier</td>\n</tr>\n<tr>\n<td><code>sellerId</code></td>\n<td>string</td>\n<td>50</td>\n<td>Seller/store identifier</td>\n</tr>\n<tr>\n<td><code>exportCountry</code></td>\n<td>string</td>\n<td>–</td>\n<td>ISO-3 export country. Use <code>CHN</code> for China</td>\n</tr>\n<tr>\n<td><code>destinationCountry</code></td>\n<td>string</td>\n<td>–</td>\n<td>ISO-3 destination country. Use <code>USA</code> for United States</td>\n</tr>\n<tr>\n<td><code>houseBillNumber</code></td>\n<td>string</td>\n<td>12</td>\n<td>Unique house bill number within a shipment</td>\n</tr>\n<tr>\n<td><code>barcode</code></td>\n<td>string</td>\n<td>–</td>\n<td>Package tracking barcode</td>\n</tr>\n<tr>\n<td><code>weight.value</code></td>\n<td>number</td>\n<td>–</td>\n<td>Gross weight value</td>\n</tr>\n<tr>\n<td><code>weight.unit</code></td>\n<td>string</td>\n<td>–</td>\n<td><code>K</code> kg · <code>L</code> lb</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>object</td>\n<td>–</td>\n<td>Shipper address (<code>name</code>, <code>line1</code>, <code>city</code>, <code>state</code>, <code>postalCode</code>, <code>country</code> required)</td>\n</tr>\n<tr>\n<td><code>to</code></td>\n<td>object</td>\n<td>–</td>\n<td>Consignee address (<code>name</code>, <code>line1</code>, <code>city</code>, <code>state</code>, <code>postalCode</code>, <code>country</code> required)</td>\n</tr>\n<tr>\n<td><code>products[]</code></td>\n<td>object array</td>\n<td>–</td>\n<td>At least one product quantifier</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"top-level-conditional-fields\">Top-Level Conditional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>invoiceNumber</code></td>\n<td>string</td>\n<td>30</td>\n<td>Invoice number for entry filing</td>\n</tr>\n<tr>\n<td><code>containerId</code></td>\n<td>string</td>\n<td>–</td>\n<td>Container barcode if package is in a separate container</td>\n</tr>\n<tr>\n<td><code>charges</code></td>\n<td>number</td>\n<td>–</td>\n<td>Total non-dutiable charges</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"top-level-optional-fields\">Top-Level Optional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>group.id</code></td>\n<td>string (50)</td>\n<td>Filing group identifier</td>\n</tr>\n<tr>\n<td><code>group.ordinal</code></td>\n<td>number</td>\n<td>Package sort order within the group</td>\n</tr>\n<tr>\n<td><code>carrierId</code></td>\n<td>string</td>\n<td>Last-mile carrier: <code>usps</code>, <code>ups</code>, <code>fedex</code>, <code>dhl</code></td>\n</tr>\n<tr>\n<td><code>declaredValue</code></td>\n<td>number</td>\n<td>Package total declared value in USD</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"productsitems-required-fields\">products[].items[] Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>declaredValue</code></td>\n<td>number</td>\n<td>Item declared value in USD</td>\n</tr>\n<tr>\n<td><code>declaredName</code></td>\n<td>string (300)</td>\n<td>Customs declaration name</td>\n</tr>\n<tr>\n<td><code>originCountry</code></td>\n<td>string</td>\n<td>ISO-3 origin country</td>\n</tr>\n<tr>\n<td><code>mid</code></td>\n<td>string</td>\n<td>Manufacturer ID (MID)</td>\n</tr>\n<tr>\n<td><code>weight.value</code> / <code>weight.unit</code></td>\n<td>number / string</td>\n<td>Item weight (<code>K</code> or <code>L</code>)</td>\n</tr>\n<tr>\n<td><code>tariffStack[]</code></td>\n<td>object array</td>\n<td>Tariff declarations (<code>hts</code> 10-digit, <code>value</code>, <code>quantities[]</code> required per entry)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"productsitems-conditional-fields\">products[].items[] Conditional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>tariffStack[].indicators[]</code></td>\n<td>object array</td>\n<td>SPI indicators (<code>type</code>, optional <code>value</code>)</td>\n</tr>\n<tr>\n<td><code>pga[]</code></td>\n<td>object array</td>\n<td>PGA filing data — see PGA Reference folder</td>\n</tr>\n<tr>\n<td><code>declarations.aluminum</code></td>\n<td>object</td>\n<td><code>primarySmeltCountry</code> [conditional], <code>secondarySmeltCountry</code> [conditional, <strong>relaxed in v1.27</strong>], <code>castCountry</code> [conditional, <strong>now string in v1.27</strong>]</td>\n</tr>\n<tr>\n<td><code>declarations.copper</code></td>\n<td>object</td>\n<td><strong>[NEW v1.27]</strong> <code>primarySmeltCountry</code>, <code>secondarySmeltCountry</code>, <code>castCountry</code> (all conditional, all ISO-3 strings)</td>\n</tr>\n<tr>\n<td><code>declarations.steel</code></td>\n<td>object</td>\n<td><code>meltCountry</code> [conditional], <code>applicabilityCode</code> [conditional]</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"productsproduct-required-fields\">products[].product Required Fields</h2>\n<p><code>sku</code>, <code>url</code>, <code>name</code>, <code>description</code>, <code>price</code>, <code>images[]</code>, <code>originCountry</code>, <code>hts</code> (<strong>required in v1.27 — 10 digits</strong>)</p>\n<h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage package identifier</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Client's external package identifier</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>number</td>\n<td>Required</td>\n<td><code>1</code> Accepted · <code>2</code> Rejected · <code>3</code> Inconclusive · <code>4</code> Audit</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Required</td>\n<td><code>Accepted</code>, <code>Rejected</code>, <code>Inconclusive</code>, or <code>Audit</code></td>\n</tr>\n<tr>\n<td><code>labelQrCode</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>QR code data for shipping label — only when <code>code</code> = 1. Print <code>SafePackage ®</code> near the QR code</td>\n</tr>\n<tr>\n<td><code>products[].reference</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage product reference</td>\n</tr>\n<tr>\n<td><code>products[].sku</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Product SKU</td>\n</tr>\n<tr>\n<td><code>products[].platformId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Platform identifier</td>\n</tr>\n<tr>\n<td><code>products[].code</code></td>\n<td>number</td>\n<td>Required</td>\n<td><code>1</code> · <code>2</code> · <code>3</code></td>\n</tr>\n<tr>\n<td><code>products[].status</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Per-product result status</td>\n</tr>\n<tr>\n<td><code>products[].reason</code></td>\n<td>object</td>\n<td>Conditional</td>\n<td><code>code</code> and <code>description</code> when rejected</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","screen"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"92bd51f5-d0c5-48ad-82b1-a06974c20da3","name":"Accepted","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001234\",\n  \"externalId\": \"PKG-EXT-001\",\n  \"code\": 1,\n  \"status\": \"Accepted\",\n  \"labelQrCode\": \"SPQR:SP-PKG-00001234:ABCDEF1234567890\",\n  \"products\": [\n    {\n      \"reference\": \"SP-REF-00123456\",\n      \"sku\": \"SKU-12345\",\n      \"platformId\": \"AMAZON\",\n      \"code\": 1,\n      \"status\": \"Accepted\"\n    }\n  ]\n}"},{"id":"034b58f8-3ce7-42bb-bdc9-e56ddcbf7fab","name":"Rejected","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001235\",\n  \"externalId\": \"PKG-EXT-002\",\n  \"code\": 2,\n  \"status\": \"Rejected\",\n  \"products\": [\n    {\n      \"reference\": \"SP-REF-00123457\",\n      \"sku\": \"SKU-99999\",\n      \"platformId\": \"AMAZON\",\n      \"code\": 2,\n      \"status\": \"Rejected\",\n      \"reason\": {\n        \"code\": \"RIP\",\n        \"description\": \"Intellectual property infringement\"\n      }\n    }\n  ]\n}"},{"id":"a4fc17e8-69af-469b-adc6-b0df0fcd025d","name":"Inconclusive","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001236\",\n  \"externalId\": \"PKG-EXT-003\",\n  \"code\": 3,\n  \"status\": \"Inconclusive\",\n  \"products\": [\n    {\n      \"reference\": \"SP-REF-00123459\",\n      \"sku\": \"SKU-11111\",\n      \"platformId\": \"AMAZON\",\n      \"code\": 3,\n      \"status\": \"Inconclusive\",\n      \"reason\": { \"code\": \"RBD\", \"description\": \"Bad or incomplete data\" }\n    }\n  ]\n}"},{"id":"6981c60a-6491-4a57-8bca-7bb49fa0260f","name":"Audit Required","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/screen"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001237\",\n  \"externalId\": \"PKG-EXT-004\",\n  \"code\": 4,\n  \"status\": \"Audit\",\n  \"products\": [\n    {\n      \"reference\": \"SP-REF-00123460\",\n      \"sku\": \"SKU-55555\",\n      \"platformId\": \"AMAZON\",\n      \"code\": 1,\n      \"status\": \"Accepted\"\n    }\n  ]\n}"}],"_postman_id":"866a8ad1-70b9-4909-885a-f602f8257758"}],"id":"c13c6281-3988-4467-9fd4-03976e38cee7","description":"<p>Initiate the package compliance verification process. Screens each product within the package.</p>\n<p><strong>Endpoint:</strong> <code>POST /v1/package/screen</code></p>\n<p><strong>v1.27 changes:</strong></p>\n<ul>\n<li><code>products[].product.hts</code> now required (10 digits)</li>\n<li><code>declarations.copper</code> object added on line items</li>\n<li><code>declarations.aluminum.secondarySmeltCountry</code> changed to conditional</li>\n<li><code>declarations.aluminum.castCountry</code> type corrected to string</li>\n</ul>\n<p><strong>Result codes:</strong> <code>1</code> Accepted · <code>2</code> Rejected · <code>3</code> Inconclusive · <code>4</code> Audit Required</p>\n","_postman_id":"c13c6281-3988-4467-9fd4-03976e38cee7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Package Data Submission (TDP)","item":[{"name":"Submit Package (TDP)","id":"9dc851c0-f9bf-414b-ab4a-988da0cc45cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"PKG-EXT-TDP-001\",\n  \"platformId\": \"AMAZON\",\n  \"sellerId\": \"seller-store-001\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB000000002\",\n  \"barcode\": \"9400111899223397667319\",\n  \"invoiceNumber\": \"INV-2024-002\",\n  \"containerId\": \"CONT-BARCODE-001\",\n  \"group\": {\n    \"id\": \"GROUP-001\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": { \"value\": 0.8, \"unit\": \"K\" },\n  \"declaredValue\": 35.00,\n  \"charges\": 0.00,\n  \"from\": {\n    \"name\": \"Shenzhen Supplier Co.\",\n    \"line1\": \"123 Factory Road\",\n    \"line2\": \"Building A\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86-755-1234-5678\",\n    \"email\": \"export@supplier.com\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"789 Oak Avenue\",\n    \"line2\": \"Suite 100\",\n    \"city\": \"Chicago\",\n    \"state\": \"IL\",\n    \"postalCode\": \"60601\",\n    \"country\": \"USA\",\n    \"phone\": \"+1-312-555-0200\",\n    \"email\": \"jdoe@email.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 2,\n      \"declaredValue\": 35.00,\n      \"declaredName\": \"Ceramic Coffee Mug\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"MID987654321\",\n      \"url\": \"https://www.example.com/product/67890\",\n      \"sku\": \"SKU-67890\",\n      \"weight\": { \"value\": 0.4, \"unit\": \"K\" },\n      \"tariffStack\": [\n        {\n          \"hts\": \"6912000000\",\n          \"value\": 35.00,\n          \"indicators\": [],\n          \"quantities\": [\n            { \"unit\": \"NO\", \"quantity\": 2 }\n          ]\n        }\n      ],\n      \"pga\": [\n        {\n          \"agency\": \"FDA\",\n          \"program\": {\n            \"code\": \"FOO\",\n            \"productCode\": \"CER\",\n            \"processingCode\": \"AC\",\n            \"intendedUseCode\": \"081\"\n          }\n        }\n      ],\n      \"declarations\": {\n        \"aluminum\": {\n          \"primarySmeltCountry\": \"CHN\",\n          \"secondarySmeltCountry\": \"CHN\",\n          \"castCountry\": \"CHN\"\n        },\n        \"copper\": {\n          \"primarySmeltCountry\": \"CHN\",\n          \"secondarySmeltCountry\": \"CHN\",\n          \"castCountry\": \"CHN\"\n        },\n        \"steel\": {\n          \"meltCountry\": \"CHN\",\n          \"applicabilityCode\": \"N\"\n        }\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/package/submit","description":"<h1 id=\"submit-package-traditional-brokerage-process\">Submit Package (Traditional Brokerage Process)</h1>\n<p>⚠️ <strong>Do NOT call this endpoint if the package was already screened via <code>/v1/package/screen</code>.</strong></p>\n<h2 id=\"products-required-fields\">products[] Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>quantity</code></td>\n<td>number</td>\n<td>–</td>\n<td>Number of distinct SKUs on this line</td>\n</tr>\n<tr>\n<td><code>declaredValue</code></td>\n<td>number</td>\n<td>–</td>\n<td>Line item total declared value in USD</td>\n</tr>\n<tr>\n<td><code>declaredName</code></td>\n<td>string</td>\n<td>300</td>\n<td>Customs declaration name</td>\n</tr>\n<tr>\n<td><code>originCountry</code></td>\n<td>string</td>\n<td>–</td>\n<td>ISO-3 origin country</td>\n</tr>\n<tr>\n<td><code>weight.value</code> / <code>weight.unit</code></td>\n<td>number / string</td>\n<td>–</td>\n<td>Item weight (<code>K</code> or <code>L</code>)</td>\n</tr>\n<tr>\n<td><code>tariffStack[]</code></td>\n<td>object array</td>\n<td>–</td>\n<td><code>hts</code> (10-digit), <code>value</code>, <code>quantities[]</code> required per entry</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"products-conditional-fields\">products[] Conditional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mid</code></td>\n<td>string</td>\n<td>20</td>\n<td>Manufacturer ID — required if entry filing is intended</td>\n</tr>\n<tr>\n<td><code>pga[]</code></td>\n<td>object array</td>\n<td>–</td>\n<td>PGA data sets — see PGA Reference folder</td>\n</tr>\n<tr>\n<td><code>declarations.aluminum</code></td>\n<td>object</td>\n<td>–</td>\n<td><code>primarySmeltCountry</code> [conditional], <code>secondarySmeltCountry</code> [conditional], <code>castCountry</code> [conditional, string ISO-3]</td>\n</tr>\n<tr>\n<td><code>declarations.copper</code></td>\n<td>object</td>\n<td>–</td>\n<td><strong>[NEW v1.27]</strong> <code>primarySmeltCountry</code>, <code>secondarySmeltCountry</code>, <code>castCountry</code> (all conditional, ISO-3 strings)</td>\n</tr>\n<tr>\n<td><code>declarations.steel</code></td>\n<td>object</td>\n<td>–</td>\n<td><code>meltCountry</code> [conditional], <code>applicabilityCode</code> [conditional]</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"products-optional-fields\">products[] Optional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>url</code></td>\n<td>string</td>\n<td>1000</td>\n<td>Product listing URL</td>\n</tr>\n<tr>\n<td><code>sku</code></td>\n<td>string</td>\n<td>50</td>\n<td>Product SKU</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage package identifier</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Client's external package identifier</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","submit"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"7fccbc63-fecd-4836-853a-a0bb70f47b18","name":"Success","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/submit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001238\",\n  \"externalId\": \"PKG-EXT-TDP-001\"\n}"}],"_postman_id":"9dc851c0-f9bf-414b-ab4a-988da0cc45cb"}],"id":"c890f959-841b-4331-96c1-41693953ef8a","description":"<p>Submit package data for customs manifesting/filing — Traditional Brokerage Process only.</p>\n<p><strong>Endpoint:</strong> <code>POST /v1/package/submit</code></p>\n<p>⚠️ Do NOT call if the package was already screened via <code>/v1/package/screen</code>.</p>\n<p><strong>v1.27 changes:</strong> <code>declarations.copper</code> added; <code>aluminum.castCountry</code> now string; <code>aluminum.secondarySmeltCountry</code> now conditional; obsolete <code>group</code> field removed.</p>\n","_postman_id":"c890f959-841b-4331-96c1-41693953ef8a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Duty Collection","item":[{"name":"Pay Duties","id":"ba095929-c196-427f-9c8d-39d2f552c7e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"packageId\": \"SP-PKG-00001234\",\n  \"barcode\": \"9400111899223397667318\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/duty/pay","description":"<h1 id=\"pay-duties\">Pay Duties</h1>\n<h2 id=\"required-fields\">Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>SafePackage package identifier from screening/submission</td>\n</tr>\n<tr>\n<td><code>barcode</code></td>\n<td>string</td>\n<td>Package tracking barcode from shipping label</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage package identifier</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Client's external package identifier</td>\n</tr>\n<tr>\n<td><code>ddpn</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Destination Duty Paid Number — proof of payment for carriers</td>\n</tr>\n<tr>\n<td><code>totalDuty</code></td>\n<td>number</td>\n<td>Conditional</td>\n<td>Total duty and fees collected in USD</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","duty","pay"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"8d45ac96-1c91-43df-a540-954dd2e1ff4e","name":"Success – Duty Collected","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/duty/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001234\",\n  \"externalId\": \"PKG-EXT-001\",\n  \"ddpn\": \"DDP-2024-000123456\",\n  \"totalDuty\": 4.99\n}"},{"id":"142e773c-89f2-4ad4-b6ee-95ada189ecc0","name":"Success – No Duty Owed","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/duty/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001239\",\n  \"externalId\": \"PKG-EXT-005\"\n}"}],"_postman_id":"ba095929-c196-427f-9c8d-39d2f552c7e0"}],"id":"367e503e-6352-4e26-875d-52c85b86b17e","description":"<p>Approve duty payment and obtain proof of payment.</p>\n<p><strong>Endpoint:</strong> <code>POST /v1/duty/pay</code></p>\n","_postman_id":"367e503e-6352-4e26-875d-52c85b86b17e","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Shipment Registration","item":[{"name":"Register Shipment","id":"4318e996-b62f-439a-b779-dd5b8d347bda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"SHIP-EXT-001\",\n  \"masterBill\": {\n    \"prefix\": \"AWBL\",\n    \"serialNumber\": \"12345678901\"\n  },\n  \"originatorCode\": \"ORIG001\",\n  \"invoiceNumber\": \"SHIP-INV-001\",\n  \"entryType\": \"86\",\n  \"importer\": {\n    \"name\": \"US Import Corp\",\n    \"line1\": \"100 Import Plaza\",\n    \"line2\": \"Suite 500\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90001\",\n    \"country\": \"USA\",\n    \"phone\": \"+1-310-555-0300\",\n    \"email\": \"import@uscorp.com\",\n    \"identifiers\": [\n      { \"type\": \"IMPORTER_NUMBER\", \"value\": \"123456789\" },\n      { \"type\": \"DUNS\", \"value\": \"987654321\" }\n    ]\n  },\n  \"shipper\": {\n    \"name\": \"Shenzhen Export Co. Ltd.\",\n    \"line1\": \"999 Export Boulevard\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518100\",\n    \"country\": \"CHN\",\n    \"identifiers\": [\n      { \"type\": \"DUNS\", \"value\": \"123456789\" }\n    ]\n  },\n  \"consignee\": {\n    \"name\": \"US Receiving Warehouse\",\n    \"line1\": \"200 Logistics Drive\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90002\",\n    \"country\": \"USA\"\n  },\n  \"transportation\": {\n    \"mode\": \"AIR\",\n    \"portOfEntry\": \"LAX\",\n    \"portOfArrival\": \"LAX\",\n    \"portOfOrigin\": \"PVG\",\n    \"carrierName\": \"China Eastern Airlines\",\n    \"carrierCode\": \"MU\",\n    \"lineNumber\": \"MU583\",\n    \"firmsCode\": \"A123\",\n    \"shippingDate\": \"2024-01-14\",\n    \"scheduledArrivalDate\": \"2024-01-15\",\n    \"terminalOperator\": \"LAXTERM01\"\n  },\n  \"containers\": [\n    {\n      \"id\": \"CONT-BARCODE-001\",\n      \"weight\": { \"value\": 50.0, \"unit\": \"K\" }\n    }\n  ],\n  \"packageIds\": [\n    \"SP-PKG-00001234\",\n    \"SP-PKG-00001235\",\n    \"SP-PKG-00001238\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/shipment/register","description":"<h1 id=\"register-shipment\">Register Shipment</h1>\n<h2 id=\"required-fields\">Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>–</td>\n<td>Shipment identifier in client's system</td>\n</tr>\n<tr>\n<td><code>masterBill.prefix</code></td>\n<td>string</td>\n<td>4</td>\n<td>Master bill prefix</td>\n</tr>\n<tr>\n<td><code>masterBill.serialNumber</code></td>\n<td>string</td>\n<td>11</td>\n<td>Master bill serial number</td>\n</tr>\n<tr>\n<td><code>shipper</code></td>\n<td>object</td>\n<td>–</td>\n<td>Shipper address (<code>name</code>, <code>line1</code>, <code>city</code>, <code>state</code>, <code>postalCode</code>, <code>country</code> required)</td>\n</tr>\n<tr>\n<td><code>consignee</code></td>\n<td>object</td>\n<td>–</td>\n<td>Consignee address (same required sub-fields)</td>\n</tr>\n<tr>\n<td><code>transportation.mode</code></td>\n<td>string</td>\n<td>–</td>\n<td><code>AIR</code> or <code>TRUCK</code></td>\n</tr>\n<tr>\n<td><code>transportation.portOfEntry</code></td>\n<td>string</td>\n<td>–</td>\n<td>3-letter airport code or CBP port code</td>\n</tr>\n<tr>\n<td><code>transportation.carrierName</code></td>\n<td>string</td>\n<td>–</td>\n<td>Carrier name</td>\n</tr>\n<tr>\n<td><code>transportation.carrierCode</code></td>\n<td>string</td>\n<td>6</td>\n<td>IATA 2-character carrier code</td>\n</tr>\n<tr>\n<td><code>transportation.lineNumber</code></td>\n<td>string</td>\n<td>14</td>\n<td>Flight/voyage number</td>\n</tr>\n<tr>\n<td><code>transportation.shippingDate</code></td>\n<td>string</td>\n<td>–</td>\n<td>Shipping date</td>\n</tr>\n<tr>\n<td><code>transportation.scheduledArrivalDate</code></td>\n<td>string</td>\n<td>–</td>\n<td>Scheduled arrival date</td>\n</tr>\n<tr>\n<td><code>packageIds[]</code></td>\n<td>string array</td>\n<td>–</td>\n<td>SafePackage package identifiers in this shipment</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"conditional-fields\">Conditional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>originatorCode</code> (10)</td>\n<td>CBP originator code if required</td>\n</tr>\n<tr>\n<td><code>invoiceNumber</code> (30)</td>\n<td>Shipment invoice number</td>\n</tr>\n<tr>\n<td><code>entryType</code> (2)</td>\n<td><code>01</code>, <code>11</code>, <code>86</code>, or <code>P</code></td>\n</tr>\n<tr>\n<td><code>importer</code></td>\n<td>If different from consignee. Identifier types: <code>DUNS</code>, <code>GLN</code>, <code>LEI</code>, <code>IMPORTER_NUMBER</code></td>\n</tr>\n<tr>\n<td><code>transportation.portOfArrival</code></td>\n<td>First arrival if different from entry (AIR)</td>\n</tr>\n<tr>\n<td><code>transportation.portOfOrigin</code></td>\n<td>Required for AIR</td>\n</tr>\n<tr>\n<td><code>transportation.portOfLading</code></td>\n<td>Required for TRUCK</td>\n</tr>\n<tr>\n<td><code>transportation.firmsCode</code> (6)</td>\n<td>Warehouse FIRMS code</td>\n</tr>\n<tr>\n<td><code>transportation.terminalOperator</code></td>\n<td>Air terminal operator</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-fields\">Optional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipper.identifiers[]</code></td>\n<td><code>DUNS</code>, <code>GLN</code>, <code>LEI</code></td>\n</tr>\n<tr>\n<td><code>consignee.identifiers[]</code></td>\n<td><code>DUNS</code>, <code>GLN</code>, <code>LEI</code></td>\n</tr>\n<tr>\n<td><code>containers[]</code></td>\n<td><code>id</code> and <code>weight</code> per container</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>SafePackage shipment identifier — use in subsequent endpoints</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","shipment","register"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"ea618f3c-912c-434a-9fa9-76abee2a2e89","name":"Success","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/shipment/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"shipmentId\": \"SP-SHIP-00000123\"\n}"}],"_postman_id":"4318e996-b62f-439a-b779-dd5b8d347bda"}],"id":"a96c7e4b-3cca-4a44-a084-74127754f7de","description":"<p>Register a shipment (consolidation) prior to or at the time of manifest/entry filing.</p>\n<p><strong>Endpoint:</strong> <code>POST /v1/shipment/register</code></p>\n","_postman_id":"a96c7e4b-3cca-4a44-a084-74127754f7de","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Customs Filing","item":[{"name":"Submit Section 321 Pilot Data","id":"51abef61-539f-4a71-adce-18855c00f7d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"shipmentId\": \"SP-SHIP-00000123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/customs/s321/shipment","description":"<h1 id=\"submit-section-321-pilot-data\">Submit Section 321 Pilot Data</h1>\n<p>Submits S321 pilot data to customs for all packages in the shipment.</p>\n<ul>\n<li>Call <strong>once per shipment</strong> unless data has changed.</li>\n<li>Will not accept further requests until the previous operation completes.</li>\n<li><strong>No response body returned.</strong></li>\n</ul>\n<h2 id=\"required-fields\">Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>SafePackage shipment identifier</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","customs","s321","shipment"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"94e116eb-f9b1-427d-8065-20224b407395","name":"Success (No Body)","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/customs/s321/shipment"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"51abef61-539f-4a71-adce-18855c00f7d0"},{"name":"Verify Shipment","id":"5fd1caf1-82ea-4d2a-951d-7953c67d9670","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"shipmentId\": \"SP-SHIP-00000123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/shipment/verify","description":"<h1 id=\"verify-shipment\">Verify Shipment</h1>\n<p>Call after S321 data submission, at least 1 hour before departure.</p>\n<h2 id=\"required-fields\">Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>SafePackage shipment identifier</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage shipment identifier</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>number</td>\n<td>Required</td>\n<td><code>1</code> Accepted · <code>2</code> Rejected</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Required</td>\n<td><code>Accepted</code> or <code>Rejected</code></td>\n</tr>\n<tr>\n<td><code>reason.code</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Rejection reason code</td>\n</tr>\n<tr>\n<td><code>reason.description</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td>Rejection reason description</td>\n</tr>\n<tr>\n<td><code>document.type</code></td>\n<td>string</td>\n<td>Conditional</td>\n<td><code>PNG</code>, <code>JPEG</code>, or <code>WEBM</code> — only when code = 1</td>\n</tr>\n<tr>\n<td><code>document.content</code></td>\n<td>base64 string</td>\n<td>Conditional</td>\n<td>Verification document — print and present to CBP on request</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","shipment","verify"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"1261f416-113e-45a2-b15b-5f36144bbd0c","name":"Accepted","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/shipment/verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"shipmentId\": \"SP-SHIP-00000123\",\n  \"code\": 1,\n  \"status\": \"Accepted\",\n  \"document\": {\n    \"type\": \"PNG\",\n    \"content\": \"<base64_encoded_verification_document>\"\n  }\n}"},{"id":"c7b0c417-c438-4937-8146-89155545fdeb","name":"Rejected","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/shipment/verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"shipmentId\": \"SP-SHIP-00000124\",\n  \"code\": 2,\n  \"status\": \"Rejected\",\n  \"reason\": {\n    \"code\": \"RCT\",\n    \"description\": \"Customs regulations violation\"\n  }\n}"}],"_postman_id":"5fd1caf1-82ea-4d2a-951d-7953c67d9670"}],"id":"395ef165-3782-4c4b-8e1c-e8891d0f2000","description":"<p>Submit Section 321 pilot data and verify shipment compliance.</p>\n<p><strong>Sequence:</strong> Submit S321 data → wait ≥ 1 hour before departure → Verify shipment</p>\n","_postman_id":"395ef165-3782-4c4b-8e1c-e8891d0f2000","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Content Audit","item":[{"name":"Submit Content Audit","id":"31ff8ce2-97f9-47fd-88c9-aa513f701371","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"packageId\": \"SP-PKG-00001237\",\n  \"externalId\": \"PKG-EXT-004\",\n  \"images\": [\n    \"<base64_encoded_image_1_product_1>\",\n    \"<base64_encoded_image_2_product_1>\"\n  ],\n  \"remark\": \"Package opened and contents inspected. All items match declaration.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/package/audit","description":"<h1 id=\"submit-content-audit\">Submit Content Audit</h1>\n<h2 id=\"required-fields\">Required Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>Client's external package identifier</td>\n</tr>\n<tr>\n<td><code>images[]</code></td>\n<td>base64 array</td>\n<td>At least <strong>two JPEG images per individual product</strong>, min 1024×768px. Must show contents in good lighting with visible brand name, logo, or product declaration</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-fields\">Optional Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Max</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>–</td>\n<td>SafePackage package identifier (recommended)</td>\n</tr>\n<tr>\n<td><code>remark</code></td>\n<td>string</td>\n<td>100</td>\n<td>Brief description of additional findings</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage package identifier</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Client's external package identifier</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>number</td>\n<td>Required</td>\n<td><code>1</code> Passed · <code>2</code> Failed · <code>3</code> Pending</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Required</td>\n<td><code>Passed</code>, <code>Failed</code>, or <code>Pending</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","audit"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"868f303a-fb0c-45c9-a411-37f2737fbf2c","name":"Passed","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/audit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001237\",\n  \"externalId\": \"PKG-EXT-004\",\n  \"code\": 1,\n  \"status\": \"Passed\"\n}"},{"id":"6bc8478e-5293-4638-8ee2-25ae961a0004","name":"Failed","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/audit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001240\",\n  \"externalId\": \"PKG-EXT-007\",\n  \"code\": 2,\n  \"status\": \"Failed\"\n}"},{"id":"fecd69cc-e9cb-4376-9817-49a68a7c36ce","name":"Pending","originalRequest":{"method":"POST","header":[],"url":"https://api.safepackage.com/v1/package/audit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001241\",\n  \"externalId\": \"PKG-EXT-008\",\n  \"code\": 3,\n  \"status\": \"Pending\"\n}"}],"_postman_id":"31ff8ce2-97f9-47fd-88c9-aa513f701371"}],"id":"98157ee6-d2f0-43e3-a747-5a3e2e359ee7","description":"<p>Submit physical audit images when package screening returns code <code>4</code> (Audit).</p>\n<p><strong>Endpoint:</strong> <code>POST /v1/package/audit</code></p>\n<p><strong>Result codes:</strong> <code>1</code> Passed · <code>2</code> Failed · <code>3</code> Pending</p>\n","_postman_id":"98157ee6-d2f0-43e3-a747-5a3e2e359ee7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Tracking (NEW v1.27)","item":[{"name":"Get Package Tracking – by packageId (route)","id":"3060b494-2c9f-4ad8-92ac-94ab5f55e0b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"url":"https://api.safepackage.com/v1/tracking/package/SP-PKG-00001234","description":"<h1 id=\"get-package-tracking\">Get Package Tracking</h1>\n<h2 id=\"route-parameter\">Route Parameter</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>optional</td>\n<td>SafePackage package identifier</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"query-parameters\">Query Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>optional</td>\n<td>SafePackage package identifier (alternative to route param)</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Client's external ID. Required if <code>packageId</code> not provided</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Format for additional tracking data elements</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>packageId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage package identifier</td>\n</tr>\n<tr>\n<td><code>events[]</code></td>\n<td>array</td>\n<td>Required</td>\n<td>Chronological event list</td>\n</tr>\n<tr>\n<td><code>events[].type</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Standardized event type</td>\n</tr>\n<tr>\n<td><code>events[].description</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Standardized event description</td>\n</tr>\n<tr>\n<td><code>events[].time</code></td>\n<td>string</td>\n<td>Required</td>\n<td>ISO 8601 event timestamp</td>\n</tr>\n<tr>\n<td><code>events[].data</code></td>\n<td>object</td>\n<td>Optional</td>\n<td>Additional event data (fields vary by type)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"package-event-types\">Package Event Types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n<th>data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>PICKED_UP</code></td>\n<td>Picked up from provider</td>\n<td><code>from</code>: Provider ID</td>\n</tr>\n<tr>\n<td><code>HANDED_OVER</code></td>\n<td>Handed to provider</td>\n<td><code>to</code>: Provider ID</td>\n</tr>\n<tr>\n<td><code>RECEIVED</code></td>\n<td>Received at location</td>\n<td><code>locationId</code></td>\n</tr>\n<tr>\n<td><code>DEPARTED</code></td>\n<td>Departed location</td>\n<td><code>locationId</code></td>\n</tr>\n<tr>\n<td><code>UNLINKED</code></td>\n<td>Removed from container</td>\n<td><code>containerId</code></td>\n</tr>\n<tr>\n<td><code>LINKED</code></td>\n<td>Added to container</td>\n<td><code>containerId</code></td>\n</tr>\n<tr>\n<td><code>MANIFEST_SUBMITTED</code></td>\n<td>Manifest submitted</td>\n<td>—</td>\n</tr>\n<tr>\n<td><code>MANIFEST_FAILED</code></td>\n<td>Manifest failed</td>\n<td><code>errorCode</code></td>\n</tr>\n<tr>\n<td><code>MANIFEST_CANCELLED</code></td>\n<td>Manifest cancelled</td>\n<td>—</td>\n</tr>\n<tr>\n<td><code>ACAS_SUBMITTED</code></td>\n<td>Cargo screening submitted</td>\n<td>—</td>\n</tr>\n<tr>\n<td><code>ACAS_FAILED</code></td>\n<td>Cargo screening failed</td>\n<td><code>errorCode</code></td>\n</tr>\n<tr>\n<td><code>ACAS_CLEARED</code></td>\n<td>Cleared cargo screening</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>ACAS_HELD</code></td>\n<td>Held for cargo screening</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>ACAS_HOLD_REMOVED</code></td>\n<td>Cargo screening hold removed</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>ACAS_PENDING</code></td>\n<td>Cargo screening pending</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>ACAS_STATUS</code></td>\n<td>New cargo screening status</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>S321_SUBMITTED</code></td>\n<td>S321 data submitted</td>\n<td>—</td>\n</tr>\n<tr>\n<td><code>S321_ACCEPTED</code></td>\n<td>S321 data accepted</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>S321_FAILED</code></td>\n<td>S321 submission failed</td>\n<td><code>errorCode</code></td>\n</tr>\n<tr>\n<td><code>CLEARED</code></td>\n<td>Cleared customs</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>HELD</code></td>\n<td>Held by customs</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>HOLD_REMOVED</code></td>\n<td>Hold removed</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>SEIZED</code></td>\n<td>Seized by customs</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>STATUS</code></td>\n<td>New customs status</td>\n<td><code>status</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","package","SP-PKG-00001234"],"host":["https://api.safepackage.com"],"query":[{"disabled":true,"description":{"content":"<p>Optional. Format for additional tracking data.</p>\n","type":"text/plain"},"key":"format","value":""}],"variable":[]}},"response":[{"id":"684d99ca-4ef5-4831-8166-d057f72ca778","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://api.safepackage.com/v1/tracking/package/SP-PKG-00001234"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"SP-PKG-00001234\",\n  \"events\": [\n    {\n      \"type\": \"RECEIVED\",\n      \"description\": \"Package Received\",\n      \"time\": \"2024-01-14T08:00:00Z\",\n      \"data\": { \"locationId\": \"WAREHOUSE-SHZ-01\" }\n    },\n    {\n      \"type\": \"LINKED\",\n      \"description\": \"Package Linked\",\n      \"time\": \"2024-01-14T08:30:00Z\",\n      \"data\": { \"containerId\": \"CONT-BARCODE-001\" }\n    },\n    {\n      \"type\": \"S321_SUBMITTED\",\n      \"description\": \"Package S321 Submitted\",\n      \"time\": \"2024-01-14T09:30:00Z\"\n    },\n    {\n      \"type\": \"S321_ACCEPTED\",\n      \"description\": \"Package S321 Accepted\",\n      \"time\": \"2024-01-14T10:15:00Z\",\n      \"data\": { \"status\": \"1A2\" }\n    },\n    {\n      \"type\": \"CLEARED\",\n      \"description\": \"Package Cleared\",\n      \"time\": \"2024-01-15T14:20:00Z\",\n      \"data\": { \"status\": \"CLR\" }\n    }\n  ]\n}"}],"_postman_id":"3060b494-2c9f-4ad8-92ac-94ab5f55e0b2"},{"name":"Get Package Tracking – by externalId (query param)","id":"9ec893ce-98c7-469d-a475-f196676c7a41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"url":"https://api.safepackage.com/v1/tracking/package?externalId=PKG-EXT-001","description":"<h1 id=\"get-package-tracking-by-externalid\">Get Package Tracking (by externalId)</h1>\n<p>Use <code>externalId</code> as a query parameter when the SafePackage <code>packageId</code> is not available.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","package"],"host":["https://api.safepackage.com"],"query":[{"description":{"content":"<p>Required when packageId is not provided.</p>\n","type":"text/plain"},"key":"externalId","value":"PKG-EXT-001"},{"disabled":true,"key":"format","value":""}],"variable":[]}},"response":[],"_postman_id":"9ec893ce-98c7-469d-a475-f196676c7a41"},{"name":"Get Shipment Tracking – by shipmentId (route)","id":"309282dc-86df-497c-8e5a-3a5c3aba6d4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"url":"https://api.safepackage.com/v1/tracking/shipment/SP-SHIP-00000123","description":"<h1 id=\"get-shipment-tracking\">Get Shipment Tracking</h1>\n<h2 id=\"route-parameter\">Route Parameter</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>optional</td>\n<td>SafePackage shipment identifier</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"query-parameters\">Query Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Alternative to route param</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Required if <code>shipmentId</code> not provided</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Format for additional tracking data</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-fields\">Response Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Presence</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>Required</td>\n<td>SafePackage shipment identifier</td>\n</tr>\n<tr>\n<td><code>events[]</code></td>\n<td>array</td>\n<td>Required</td>\n<td>Chronological event list</td>\n</tr>\n<tr>\n<td><code>events[].type</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Standardized event type</td>\n</tr>\n<tr>\n<td><code>events[].description</code></td>\n<td>string</td>\n<td>Required</td>\n<td>Event description</td>\n</tr>\n<tr>\n<td><code>events[].time</code></td>\n<td>string</td>\n<td>Required</td>\n<td>ISO 8601 event timestamp</td>\n</tr>\n<tr>\n<td><code>events[].data</code></td>\n<td>object</td>\n<td>Optional</td>\n<td>Additional event data</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"shipment-event-types\">Shipment Event Types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n<th>data</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>MASTER_HELD</code></td>\n<td>Shipment held by customs</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>MASTER_HOLD_REMOVED</code></td>\n<td>Shipment hold removed</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>LOCAL_TRANSFER_AUTHORIZED</code></td>\n<td>Local transfer authorised</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>MASTER_STATUS</code></td>\n<td>New customs status</td>\n<td><code>status</code></td>\n</tr>\n<tr>\n<td><code>PICKUP_REQUESTED</code></td>\n<td>Pickup requested</td>\n<td>—</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","shipment","SP-SHIP-00000123"],"host":["https://api.safepackage.com"],"query":[{"disabled":true,"description":{"content":"<p>Optional. Format for additional tracking data.</p>\n","type":"text/plain"},"key":"format","value":""}],"variable":[]}},"response":[{"id":"648981db-f5b8-4474-b506-e5329ff1d5a1","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://api.safepackage.com/v1/tracking/shipment/SP-SHIP-00000123"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"shipmentId\": \"SP-SHIP-00000123\",\n  \"events\": [\n    {\n      \"type\": \"PICKUP_REQUESTED\",\n      \"description\": \"Shipment Pickup Requested\",\n      \"time\": \"2024-01-13T14:00:00Z\"\n    },\n    {\n      \"type\": \"MASTER_STATUS\",\n      \"description\": \"Shipment Customs Status\",\n      \"time\": \"2024-01-15T09:00:00Z\",\n      \"data\": { \"status\": \"1C4\" }\n    },\n    {\n      \"type\": \"LOCAL_TRANSFER_AUTHORIZED\",\n      \"description\": \"Shipment Local Transfer Authorized\",\n      \"time\": \"2024-01-15T11:30:00Z\",\n      \"data\": { \"status\": \"1C4\" }\n    }\n  ]\n}"}],"_postman_id":"309282dc-86df-497c-8e5a-3a5c3aba6d4c"},{"name":"Get Shipment Tracking – by externalId (query param)","id":"88736046-43bd-4c13-9bc3-1b0a2141024d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"url":"https://api.safepackage.com/v1/tracking/shipment?externalId=PKG-EXT-001","description":"<h1 id=\"get-shipment-tracking-by-externalid\">Get Shipment Tracking (by externalId)</h1>\n<p>Use <code>externalId</code> as a query parameter when the SafePackage <code>shipmentId</code> is not available.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","shipment"],"host":["https://api.safepackage.com"],"query":[{"description":{"content":"<p>Required when shipmentId is not provided.</p>\n","type":"text/plain"},"key":"externalId","value":"PKG-EXT-001"},{"disabled":true,"key":"format","value":""}],"variable":[]}},"response":[],"_postman_id":"88736046-43bd-4c13-9bc3-1b0a2141024d"}],"id":"8a44cd2f-a7a3-4938-adb8-5c00fe177df0","description":"<p>Package and shipment tracking endpoints introduced in the Tracking Supplement v1.17.3.</p>\n<p><strong>Endpoints:</strong></p>\n<ul>\n<li><code>GET /v1/tracking/package/{packageId}</code> — Package event history</li>\n<li><code>GET /v1/tracking/shipment/{shipmentId}</code> — Shipment event history</li>\n</ul>\n<p>Both support lookup by SafePackage ID (route or query param) or by <code>externalId</code> (query param).</p>\n","_postman_id":"8a44cd2f-a7a3-4938-adb8-5c00fe177df0","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"PGA Reference (NEW v1.27)","item":[{"name":"PGA Schema – APHIS APL (Lacey Act)","id":"924d4830-f792-4093-90e8-6d4207ed190e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"PKG-PGA-APHIS-001\",\n  \"platformId\": \"AMAZON\",\n  \"sellerId\": \"seller-store-001\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB000000010\",\n  \"barcode\": \"9400111899223397667400\",\n  \"weight\": { \"value\": 2.0, \"unit\": \"K\" },\n  \"from\": { \"name\": \"Wood Products Co.\", \"line1\": \"1 Forest Rd\", \"city\": \"Guangzhou\", \"state\": \"Guangdong\", \"postalCode\": \"510000\", \"country\": \"CHN\" },\n  \"to\": { \"name\": \"Jane Doe\", \"line1\": \"100 Oak Ave\", \"city\": \"Portland\", \"state\": \"OR\", \"postalCode\": \"97201\", \"country\": \"USA\" },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"items\": [\n        {\n          \"declaredValue\": 75.00,\n          \"declaredName\": \"Wooden Picture Frame\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"MID111222333\",\n          \"weight\": { \"value\": 2.0, \"unit\": \"K\" },\n          \"tariffStack\": [\n            {\n              \"hts\": \"4414000000\",\n              \"value\": 75.00,\n              \"quantities\": [ { \"unit\": \"NO\", \"quantity\": 1 } ]\n            }\n          ],\n          \"pga\": [\n            {\n              \"agency\": \"APHIS\",\n              \"program\": {\n                \"code\": \"APL\",\n                \"entities\": [\n                  {\n                    \"name\": \"Wood Products Co. Ltd.\",\n                    \"email\": \"compliance@woodproducts.com\",\n                    \"phone\": \"+86-20-1234-5678\"\n                  }\n                ],\n                \"products\": [\n                  {\n                    \"codeQualifier\": \"HTS\",\n                    \"codeNumber\": \"4414000000\",\n                    \"elements\": [\n                      {\n                        \"name\": \"Oak\",\n                        \"species\": \"Quercus robur\",\n                        \"genus\": \"Quercus\",\n                        \"quantity\": 1.5,\n                        \"unit\": \"KG\",\n                        \"country\": \"CN\"\n                      }\n                    ]\n                  }\n                ],\n                \"certifications\": [\n                  {\n                    \"entityRoleCode\": \"IM\",\n                    \"declarationCode\": \"AP6\",\n                    \"date\": \"2024-01-14\"\n                  }\n                ]\n              }\n            }\n          ]\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-WOOD-001\",\n        \"url\": \"https://www.example.com/product/wood001\",\n        \"name\": \"Wooden Picture Frame\",\n        \"description\": \"Handcrafted oak picture frame.\",\n        \"price\": 75.00,\n        \"images\": [\"<base64_encoded_image_1>\"],\n        \"originCountry\": \"CHN\",\n        \"hts\": \"4414000000\"\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/package/screen","description":"<h1 id=\"aphis--apl-lacey-act\">APHIS – APL (Lacey Act)</h1>\n<p>Required for products containing plant materials.</p>\n<h2 id=\"pga-schema\">pga[] Schema</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>agency: \"APHIS\"  [required]\nprogram.code: \"APL\"  [required]\nprogram.entities[]  [required]\n  .name  [conditional]\n  .email  [conditional]\n  .phone  [conditional]\nprogram.products[]  [required]\n  .codeQualifier  [conditional]\n  .codeNumber  [conditional]\n  .elements[]  [optional]\n    .name  [conditional]\n    .species  [conditional]\n    .genus  [conditional]\n    .quantity  [conditional]\n    .unit  [conditional]  -- CE unit\n    .country  [conditional]  -- ISO-2\nprogram.certifications[]  [optional]\n  .entityRoleCode  [optional]  -- e.g. \"IM\"\n  .declarationCode  [optional]  -- e.g. \"AP6\"\n  .date  [conditional]\n</code></pre>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","screen"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"924d4830-f792-4093-90e8-6d4207ed190e"},{"name":"PGA Schema – FDA (All Programs)","id":"e3800e91-5230-4ec6-abc6-e1db8f9dbc32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"PKG-PGA-FDA-001\",\n  \"platformId\": \"AMAZON\",\n  \"sellerId\": \"seller-store-001\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB000000011\",\n  \"barcode\": \"9400111899223397667401\",\n  \"weight\": { \"value\": 0.5, \"unit\": \"K\" },\n  \"from\": { \"name\": \"Food Exporter Co.\", \"line1\": \"5 Harbor Rd\", \"city\": \"Shanghai\", \"state\": \"Shanghai\", \"postalCode\": \"200000\", \"country\": \"CHN\" },\n  \"to\": { \"name\": \"Mike Jones\", \"line1\": \"200 Elm St\", \"city\": \"Austin\", \"state\": \"TX\", \"postalCode\": \"78701\", \"country\": \"USA\" },\n  \"products\": [\n    {\n      \"quantity\": 2,\n      \"items\": [\n        {\n          \"declaredValue\": 20.00,\n          \"declaredName\": \"Green Tea Bags\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"MID444555666\",\n          \"weight\": { \"value\": 0.5, \"unit\": \"K\" },\n          \"tariffStack\": [\n            {\n              \"hts\": \"0902100000\",\n              \"value\": 20.00,\n              \"quantities\": [ { \"unit\": \"KG\", \"quantity\": 0.5 } ]\n            }\n          ],\n          \"pga\": [\n            {\n              \"agency\": \"FDA\",\n              \"program\": {\n                \"code\": \"FOO\",\n                \"productCode\": \"GTE\",\n                \"processingCode\": \"AC\",\n                \"intendedUseCode\": \"081\",\n                \"arrival\": \"2024-01-15\"\n              }\n            }\n          ]\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-TEA-001\",\n        \"url\": \"https://www.example.com/product/tea001\",\n        \"name\": \"Premium Green Tea Bags 100pk\",\n        \"description\": \"Premium green tea bags from China.\",\n        \"price\": 20.00,\n        \"images\": [\"<base64_encoded_image_1>\"],\n        \"originCountry\": \"CHN\",\n        \"hts\": \"0902100000\"\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/package/screen","description":"<h1 id=\"fda--all-programs-bio-cos-dev-dru-foo-rad-tob-vme\">FDA – All Programs (BIO, COS, DEV, DRU, FOO, RAD, TOB, VME)</h1>\n<p>The same pga[] schema applies to all FDA program codes.</p>\n<h2 id=\"pga-schema\">pga[] Schema</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>agency: \"FDA\"  [required]\nprogram.code  [required]\n  Allowed: \"BIO\", \"COS\", \"DEV\", \"DRU\", \"FOO\", \"RAD\", \"TOB\", \"VME\"\nprogram.productCode  [conditional]  -- FDA product code\nprogram.processingCode  [conditional]  -- FDA processing code\nprogram.intendedUseCode  [conditional]  -- FDA intended use code\nprogram.arrival  [conditional]  -- ISO 8601 arrival date\n</code></pre>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","screen"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3800e91-5230-4ec6-abc6-e1db8f9dbc32"},{"name":"PGA Schema – CPSC CPS (Product Safety)","id":"63554fd7-96f7-4455-929a-68fe498aeac8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"PKG-PGA-CPSC-001\",\n  \"platformId\": \"AMAZON\",\n  \"sellerId\": \"seller-store-001\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB000000012\",\n  \"barcode\": \"9400111899223397667402\",\n  \"weight\": { \"value\": 0.8, \"unit\": \"K\" },\n  \"from\": { \"name\": \"Toy Factory Co.\", \"line1\": \"10 Toy Lane\", \"city\": \"Dongguan\", \"state\": \"Guangdong\", \"postalCode\": \"523000\", \"country\": \"CHN\" },\n  \"to\": { \"name\": \"Sarah Lee\", \"line1\": \"50 Maple Dr\", \"city\": \"Seattle\", \"state\": \"WA\", \"postalCode\": \"98101\", \"country\": \"USA\" },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"items\": [\n        {\n          \"declaredValue\": 35.00,\n          \"declaredName\": \"Plastic Building Blocks Set\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"MID777888999\",\n          \"weight\": { \"value\": 0.8, \"unit\": \"K\" },\n          \"tariffStack\": [\n            {\n              \"hts\": \"9503000090\",\n              \"value\": 35.00,\n              \"quantities\": [ { \"unit\": \"NO\", \"quantity\": 1 } ]\n            }\n          ],\n          \"pga\": [\n            {\n              \"agency\": \"CPSC\",\n              \"program\": {\n                \"code\": \"CPS\",\n                \"commercialDescription\": \"Plastic interlocking building block toy set for children aged 3+\",\n                \"disclaim\": \"A\",\n                \"intendedUseCode\": \"010.001\"\n              }\n            }\n          ]\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-TOY-001\",\n        \"url\": \"https://www.example.com/product/toy001\",\n        \"name\": \"Plastic Building Blocks 200pc\",\n        \"description\": \"Colourful interlocking building blocks.\",\n        \"price\": 35.00,\n        \"images\": [\"<base64_encoded_image_1>\"],\n        \"originCountry\": \"CHN\",\n        \"hts\": \"9503000090\"\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.safepackage.com/v1/package/screen","description":"<h1 id=\"cpsc--cps-product-safety\">CPSC – CPS (Product Safety)</h1>\n<p>Required for consumer products regulated by the CPSC.</p>\n<h2 id=\"pga-schema\">pga[] Schema</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>agency: \"CPSC\"  [required]\nprogram.code: \"CPS\"  [required]\nprogram.commercialDescription  [required, max 70 chars]\nprogram.disclaim  [conditional]  -- \"A\", \"B\", or omit\n  Required if agencyProcessingCode is not provided\nprogram.intendedUseCode  [conditional]  -- format \"000.000\"\nprogram.intendedUseDescription  [conditional]\n  Required if intendedUseCode = \"980.000\"\nprogram.agencyProcessingCode  [conditional]  -- \"REF\" or omit\n  Required if disclaim is not provided\nprogram.productId  [conditional]  -- Required if agencyProcessingCode = \"REF\"\nprogram.versionId  [conditional]  -- Required if agencyProcessingCode = \"REF\"\nprogram.certifierId  [conditional]  -- Required if agencyProcessingCode = \"REF\"\n</code></pre><p><strong>Rule:</strong> Either <code>disclaim</code> OR <code>agencyProcessingCode</code> must be provided — not both, not neither.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","screen"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"63554fd7-96f7-4455-929a-68fe498aeac8"}],"id":"4f539b26-311b-4198-bd53-4f28f82670dc","description":"<p>PGA (Partner Government Agency) data reference — new in v1.27 via the PGA Data Supplement.</p>\n<p>These requests show example <code>pga[]</code> payloads for each supported program. The <code>pga[]</code> array is placed as a sibling of <code>tariffStack[]</code> on each line item.</p>\n<h2 id=\"supported-pga-agencies\">Supported PGA Agencies</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Agency</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>APHIS</td>\n<td>Animal and Plant Health Inspection Service</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>Food and Drug Administration</td>\n</tr>\n<tr>\n<td>CPSC</td>\n<td>Consumer Product Safety Commission</td>\n</tr>\n<tr>\n<td>FSIS</td>\n<td>Food Safety and Inspection Service</td>\n</tr>\n<tr>\n<td>NHTSA</td>\n<td>National Highway Traffic Safety Administration</td>\n</tr>\n<tr>\n<td>NMFS</td>\n<td>National Marine Fisheries Service</td>\n</tr>\n<tr>\n<td>ATF</td>\n<td>Bureau of Alcohol, Tobacco, Firearms and Explosives</td>\n</tr>\n<tr>\n<td>EPA</td>\n<td>Environmental Protection Agency</td>\n</tr>\n<tr>\n<td>TTB</td>\n<td>Alcohol and Tobacco Tax and Trade Bureau</td>\n</tr>\n<tr>\n<td>AMS</td>\n<td>Agricultural Marketing Service (USDA)</td>\n</tr>\n<tr>\n<td>FWS</td>\n<td>Fish &amp; Wildlife Service</td>\n</tr>\n<tr>\n<td>DEA</td>\n<td>Drug Enforcement Administration</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"programs-with-full-data-element-schemas\">Programs with Full Data Element Schemas</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Agency</th>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>APHIS</td>\n<td>APL</td>\n<td>Lacey Act</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>BIO</td>\n<td>Biologics</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>COS</td>\n<td>Cosmetics</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>DEV</td>\n<td>Medical Devices</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>DRU</td>\n<td>Drugs</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>FOO</td>\n<td>Foods</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>RAD</td>\n<td>Radiation Emitting Products</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>TOB</td>\n<td>Tobacco</td>\n</tr>\n<tr>\n<td>FDA</td>\n<td>VME</td>\n<td>Veterinary Drugs</td>\n</tr>\n<tr>\n<td>CPSC</td>\n<td>CPS</td>\n<td>Product Safety</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"4f539b26-311b-4198-bd53-4f28f82670dc","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}},{"name":"Platform","item":[{"name":"Get Platforms","id":"97dca7ac-a6f3-4e47-b3bb-d72abacffc07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"},{"key":"Authorization","value":"{{auth_secret_0euv}}"}],"url":"https://api.safepackage.com/v1/platform","description":"<h1 id=\"get-platforms\">Get Platforms</h1>\n<p>Returns an array of platform objects.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>Platform identifier — use as <code>platformId</code> in requests</td>\n</tr>\n<tr>\n<td><code>url</code></td>\n<td>string</td>\n<td>Platform homepage URL</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","platform"],"host":["https://api.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"5d730297-338e-4bc0-b476-1c27fd9b4f6f","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://api.safepackage.com/v1/platform"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  { \"id\": \"AMAZON\", \"url\": \"https://www.amazon.com\" },\n  { \"id\": \"EBAY\", \"url\": \"https://www.ebay.com\" },\n  { \"id\": \"ALIEXPRESS\", \"url\": \"https://www.aliexpress.com\" },\n  { \"id\": \"SHEIN\", \"url\": \"https://www.shein.com\" },\n  { \"id\": \"TEMU\", \"url\": \"https://www.temu.com\" }\n]"}],"_postman_id":"97dca7ac-a6f3-4e47-b3bb-d72abacffc07"}],"id":"f350bdce-5054-4791-b06e-72d18766bc5e","description":"<p>Retrieve all registered e-commerce platforms.</p>\n<p><strong>Endpoint:</strong> <code>GET /v1/platform</code></p>\n<p>Use returned <code>id</code> values as <code>platformId</code> in all screening and submission requests.</p>\n","_postman_id":"f350bdce-5054-4791-b06e-72d18766bc5e","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]},"isInherited":true,"source":{"_postman_id":"5faf80cd-32ab-4646-8e39-6a344a916230","id":"5faf80cd-32ab-4646-8e39-6a344a916230","name":"SafePackage","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{auth_secret_0euv}}"}]}},"variable":[{"key":"base_url","value":"https://api.safepackage.com","description":"Switch to https://sandbox.safepackage.com for development"},{"key":"api_key","value":"YOUR_ACCESS_KEY"},{"key":"packageId","value":"SP-PKG-00001234","description":"Replace with a real SafePackage package ID"},{"key":"shipmentId","value":"SP-SHIP-00000123","description":"Replace with a real SafePackage shipment ID"},{"key":"externalId","value":"PKG-EXT-001","description":"Replace with your external ID"},{"key":"auth_secret_0euv","secret":true,"source":{"provider":"postman","postman":{"type":"cloud","secretId":"2703ce3e-4d75-4d16-ac44-f55cd6b27473","vaultId":"5d5933de-cc3c-4502-aaf4-e84353e984b9"}}}]}