{"info":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","description":"<html><head></head><body><h1 id=\"safepackage-api-v128\">SafePackage API v1.28</h1>\n<p>Includes the main API spec (v1.28), PGA Data Supplement (v1.27), and Tracking Supplement (v1.18).</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</td>\n<td>GET</td>\n<td>/v1/tracking/package/{packageId}</td>\n</tr>\n<tr>\n<td>Shipment Tracking</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-v128\">What's New in v1.28</h2>\n<ul>\n<li><code>products[].items[].manufacturer</code> object (optional) added on <strong>Package Screening</strong> line items: manufacturer name, address, phone and email</li>\n<li><code>products[].manufacturer</code> object (optional) added on <strong>Package Data Submission (TDP)</strong> product lines, with the same address fields</li>\n<li><code>products[].items[].mid</code> description clarified as the product <em>item</em> manufacturer identifier</li>\n</ul>\n<h2 id=\"using-this-collection\">Using This Collection</h2>\n<ul>\n<li><strong>Authorization</strong> is set once at the collection level from the <code>apiKey</code> variable and inherited by every request.</li>\n<li><strong>Server selection</strong>: the <code>target</code> collection variable picks the host (<code>sandbox</code> by default, or <code>production</code>); <code>baseUrl</code> is set from it automatically before each request.</li>\n<li><strong>Chained identifiers</strong>: Package Screening and Package Data Submission save <code>packageId</code>, and Shipment Registration saves <code>shipmentId</code>, so later requests are pre-filled.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Purpose</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>apiKey</code></td>\n<td>Your SafePackage access key</td>\n</tr>\n<tr>\n<td><code>target</code></td>\n<td><code>sandbox</code> or <code>production</code></td>\n</tr>\n<tr>\n<td><code>sandboxUrl</code> / <code>productionUrl</code></td>\n<td>Host for each environment</td>\n</tr>\n<tr>\n<td><code>baseUrl</code></td>\n<td>Resolved host (set automatically)</td>\n</tr>\n<tr>\n<td><code>platformId</code></td>\n<td>Platform id from Platform List</td>\n</tr>\n<tr>\n<td><code>externalPackageId</code> / <code>barcode</code></td>\n<td>Your package identifier and label barcode</td>\n</tr>\n<tr>\n<td><code>packageId</code></td>\n<td>SafePackage package id (auto-saved)</td>\n</tr>\n<tr>\n<td><code>externalShipmentId</code></td>\n<td>Your shipment identifier</td>\n</tr>\n<tr>\n<td><code>shipmentId</code></td>\n<td>SafePackage shipment id (auto-saved)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"result-codes\">Result Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Endpoint</th>\n<th>1</th>\n<th>2</th>\n<th>3</th>\n<th>4</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Product Screening</td>\n<td>Accepted</td>\n<td>Rejected</td>\n<td>Inconclusive</td>\n<td>–</td>\n</tr>\n<tr>\n<td>Package Screening</td>\n<td>Accepted</td>\n<td>Rejected</td>\n<td>Inconclusive</td>\n<td>Audit</td>\n</tr>\n<tr>\n<td>Content Audit</td>\n<td>Passed</td>\n<td>Failed</td>\n<td>Pending</td>\n<td>–</td>\n</tr>\n<tr>\n<td>Shipment Verification</td>\n<td>Accepted</td>\n<td>Rejected</td>\n<td>–</td>\n<td>–</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"SafePackage API v1.28","slug":"safepackage-api-v128"}],"owner":"51549637","collectionId":"1c152b12-6098-462a-ba99-de2c1fcb3c09","publishedId":"2sBYHNYPAn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-10-05T18:30:50.000Z"},"item":[{"name":"Product Screening","item":[{"name":"Screen Product","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"cd3975d6-ccae-4488-8f95-4e4db432017c"}}],"id":"75ed90ca-b2b9-49ab-a950-91264dc34b7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"sku\": \"SKU-100234\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n  \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n  \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n  \"declaredName\": \"Stainless steel vacuum water bottle\",\n  \"price\": 12.99,\n  \"images\": [\n    \"BASE64_ENCODED_JPEG_IMAGE\",\n    \"BASE64_ENCODED_JPEG_IMAGE\"\n  ],\n  \"categories\": [\n    \"Home & Kitchen\",\n    \"Drinkware\"\n  ],\n  \"pieces\": 1,\n  \"ean\": \"0123456789012\",\n  \"hts\": \"9617001000\",\n  \"normalize\": false,\n  \"originCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"attributes\": [\n    {\n      \"type\": \"ManufacturerId\",\n      \"value\": \"CNDONEXA12DON\"\n    },\n    {\n      \"type\": \"ManufacturerName\",\n      \"value\": \"Dongguan Example Manufacturing Ltd.\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/product/screen","description":"<p>Determines the customs compliance status of a product and whether it can be imported into the U.S.</p>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sku</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>SKU or Item ID – the unique product listing identifier on the platform.</td>\n</tr>\n<tr>\n<td><code>platformId</code></td>\n<td>string(20)</td>\n<td>required</td>\n<td>Marketplace platform identifier. Use <strong>GET /v1/platform</strong> for the list of supported platforms.</td>\n</tr>\n<tr>\n<td><code>sellerId</code></td>\n<td>string</td>\n<td>required</td>\n<td>Username or identifier that uniquely identifies the seller ('store') on the platform.</td>\n</tr>\n<tr>\n<td><code>url</code></td>\n<td>string(1000)</td>\n<td>required</td>\n<td>Working, public URL of the product web page.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string(300)</td>\n<td>required</td>\n<td>Full advertised product name. Must match the product web page.</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>required</td>\n<td>Full advertised description. Must match the product web page.</td>\n</tr>\n<tr>\n<td><code>declaredName</code></td>\n<td>string(300)</td>\n<td>conditional</td>\n<td>Name used for customs declaration if different from the advertised name.</td>\n</tr>\n<tr>\n<td><code>price</code></td>\n<td>number</td>\n<td>required</td>\n<td>List price in USD as displayed on the product web page.</td>\n</tr>\n<tr>\n<td><code>images[]</code></td>\n<td>base64 string array</td>\n<td>required</td>\n<td>One or more product images. Formats: JPEG (recommended), WEBP, PNG8, PNG24, GIF (non-animated). Minimum 640x480.</td>\n</tr>\n<tr>\n<td><code>categories[]</code></td>\n<td>string array</td>\n<td>optional</td>\n<td>Store categories or keywords associated with the product.</td>\n</tr>\n<tr>\n<td><code>pieces</code></td>\n<td>number</td>\n<td>optional</td>\n<td>Total number of product pieces, if applicable.</td>\n</tr>\n<tr>\n<td><code>ean</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>13-digit EAN or 12-digit UPC.</td>\n</tr>\n<tr>\n<td><code>hts</code></td>\n<td>string(10)</td>\n<td>required</td>\n<td>Primary 10-digit U.S. HTS number.</td>\n</tr>\n<tr>\n<td><code>normalize</code></td>\n<td>boolean</td>\n<td>optional</td>\n<td>Whether the product data needs to be normalized.</td>\n</tr>\n<tr>\n<td><code>originCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>Uppercase ISO-3 origin country (or two-character province code where applicable). <code>\"CHN\"</code> for products made in China.</td>\n</tr>\n<tr>\n<td><code>destinationCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>Uppercase ISO-3 destination country. <code>\"USA\"</code> for imports into the United States.</td>\n</tr>\n<tr>\n<td><code>instructions[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Special screening instruction objects.</td>\n</tr>\n<tr>\n<td><code>instructions[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Type of the special screening instruction.</td>\n</tr>\n<tr>\n<td><code>instructions[].value</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Instruction argument (applicable to certain instruction types).</td>\n</tr>\n<tr>\n<td><code>attributes[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Additional product attribute objects.</td>\n</tr>\n<tr>\n<td><code>attributes[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td><code>\"ManufacturerId\"</code> (MID), <code>\"ManufacturerName\"</code>, or <code>\"ManufacturerAddress\"</code>.</td>\n</tr>\n<tr>\n<td><code>attributes[].value</code></td>\n<td>string</td>\n<td>required</td>\n<td>Attribute value corresponding to the type.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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>Unique SafePackage product reference.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>number</td>\n<td>required</td>\n<td>Result code: <code>1</code> Accepted (compliant, can be shipped), <code>2</code> Rejected (most likely a violation, do not ship), <code>3</code> Inconclusive (potentially violative, do not ship until proven otherwise).</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></td>\n<td>object</td>\n<td>conditional</td>\n<td>Rejection reason, if applicable.</td>\n</tr>\n<tr>\n<td><code>reason.code</code></td>\n<td>string</td>\n<td>required</td>\n<td>Three-letter rejection reason code (see table below).</td>\n</tr>\n<tr>\n<td><code>reason.description</code></td>\n<td>string</td>\n<td>required</td>\n<td>Short phrase describing the rejection reason.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"rejection-reason-codes\">Rejection reason codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>RMG</td>\n<td>Transportation security violation</td>\n</tr>\n<tr>\n<td>RBT</td>\n<td>Transportation security violation</td>\n</tr>\n<tr>\n<td>RDG</td>\n<td>Transportation security violation</td>\n</tr>\n<tr>\n<td>RHP</td>\n<td>De-minimis value violation</td>\n</tr>\n<tr>\n<td>RIP</td>\n<td>Intellectual property infringement</td>\n</tr>\n<tr>\n<td>RIC</td>\n<td>Copyright infringement</td>\n</tr>\n<tr>\n<td>RIT</td>\n<td>Trademark infringement</td>\n</tr>\n<tr>\n<td>RIN</td>\n<td>Patent infringement</td>\n</tr>\n<tr>\n<td>RCT</td>\n<td>Customs regulations violation</td>\n</tr>\n<tr>\n<td>RPA</td>\n<td>U.S. Department of Agriculture (USDA) violation</td>\n</tr>\n<tr>\n<td>RPW</td>\n<td>U.S. Fish and Wildlife Service (FWS) violation</td>\n</tr>\n<tr>\n<td>RPT</td>\n<td>U.S. Department of Transportation (DOT) violation</td>\n</tr>\n<tr>\n<td>RPD</td>\n<td>U.S. Food and Drug Administration (FDA) violation</td>\n</tr>\n<tr>\n<td>RPS</td>\n<td>U.S. Consumer Product Safety Commission (CPSC) violation</td>\n</tr>\n<tr>\n<td>RPF</td>\n<td>U.S. Financial Crimes Enforcement Network (FCEN) violation</td>\n</tr>\n<tr>\n<td>RPE</td>\n<td>U.S. Bureau of Alcohol, Tobacco, Firearms and Explosives (ATF) violation</td>\n</tr>\n<tr>\n<td>RPL</td>\n<td>Forced labor violation</td>\n</tr>\n<tr>\n<td>RCR</td>\n<td>Customs regulations violation</td>\n</tr>\n<tr>\n<td>RBD</td>\n<td>Bad or incomplete data</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","product","screen"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"f4e835e0-435d-456d-9e2c-c09a71735e9d","name":"200 – Accepted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"sku\": \"SKU-100234\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n  \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n  \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n  \"declaredName\": \"Stainless steel vacuum water bottle\",\n  \"price\": 12.99,\n  \"images\": [\n    \"BASE64_ENCODED_JPEG_IMAGE\",\n    \"BASE64_ENCODED_JPEG_IMAGE\"\n  ],\n  \"categories\": [\n    \"Home & Kitchen\",\n    \"Drinkware\"\n  ],\n  \"pieces\": 1,\n  \"ean\": \"0123456789012\",\n  \"hts\": \"9617001000\",\n  \"normalize\": false,\n  \"originCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"attributes\": [\n    {\n      \"type\": \"ManufacturerId\",\n      \"value\": \"CNDONEXA12DON\"\n    },\n    {\n      \"type\": \"ManufacturerName\",\n      \"value\": \"Dongguan Example Manufacturing Ltd.\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PRD-7F3A9C21\",\n  \"code\": 1,\n  \"status\": \"Accepted\"\n}"},{"id":"e7b9547e-e896-4813-987d-a370b052866f","name":"200 – Rejected (IP infringement)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"sku\": \"SKU-100234\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n  \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n  \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n  \"declaredName\": \"Stainless steel vacuum water bottle\",\n  \"price\": 12.99,\n  \"images\": [\n    \"BASE64_ENCODED_JPEG_IMAGE\",\n    \"BASE64_ENCODED_JPEG_IMAGE\"\n  ],\n  \"categories\": [\n    \"Home & Kitchen\",\n    \"Drinkware\"\n  ],\n  \"pieces\": 1,\n  \"ean\": \"0123456789012\",\n  \"hts\": \"9617001000\",\n  \"normalize\": false,\n  \"originCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"attributes\": [\n    {\n      \"type\": \"ManufacturerId\",\n      \"value\": \"CNDONEXA12DON\"\n    },\n    {\n      \"type\": \"ManufacturerName\",\n      \"value\": \"Dongguan Example Manufacturing Ltd.\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PRD-7F3A9C22\",\n  \"code\": 2,\n  \"status\": \"Rejected\",\n  \"reason\": {\n    \"code\": \"RIT\",\n    \"description\": \"Trademark Infringement\"\n  }\n}"},{"id":"0b06d33c-ef89-4f98-b4b6-2f9135d6b421","name":"200 – Inconclusive","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"sku\": \"SKU-100234\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n  \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n  \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n  \"declaredName\": \"Stainless steel vacuum water bottle\",\n  \"price\": 12.99,\n  \"images\": [\n    \"BASE64_ENCODED_JPEG_IMAGE\",\n    \"BASE64_ENCODED_JPEG_IMAGE\"\n  ],\n  \"categories\": [\n    \"Home & Kitchen\",\n    \"Drinkware\"\n  ],\n  \"pieces\": 1,\n  \"ean\": \"0123456789012\",\n  \"hts\": \"9617001000\",\n  \"normalize\": false,\n  \"originCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"attributes\": [\n    {\n      \"type\": \"ManufacturerId\",\n      \"value\": \"CNDONEXA12DON\"\n    },\n    {\n      \"type\": \"ManufacturerName\",\n      \"value\": \"Dongguan Example Manufacturing Ltd.\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PRD-7F3A9C23\",\n  \"code\": 3,\n  \"status\": \"Inconclusive\",\n  \"reason\": {\n    \"code\": \"RBD\",\n    \"description\": \"Bad or incomplete data\"\n  }\n}"}],"_postman_id":"75ed90ca-b2b9-49ab-a950-91264dc34b7c"}],"id":"393c08d9-d2a7-450a-9763-42b5b08897b1","description":"<p>Determines the customs compliance status of a product and whether it can be imported into the U.S.</p>\n","_postman_id":"393c08d9-d2a7-450a-9763-42b5b08897b1","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Package Screening","item":[{"name":"Screen Package","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });","let json; try { json = pm.response.json(); } catch (e) { json = {}; }","if (json && json.packageId) {","    pm.collectionVariables.set(\"packageId\", json.packageId);","    console.log(\"Saved packageId =\", json.packageId);","}"],"id":"ef4dc03a-caa7-4647-9084-ce3aafccabfb"}}],"id":"dce1e968-29f3-4da3-bbf5-a9edfd07bd1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"items\": [\n        {\n          \"declaredValue\": 9.5,\n          \"declaredName\": \"Stainless steel vacuum water bottle\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"CNDONEXA12DON\",\n          \"manufacturer\": {\n            \"name\": \"Dongguan Example Manufacturing Ltd.\",\n            \"line1\": \"12 Industrial Rd\",\n            \"city\": \"Dongguan\",\n            \"state\": \"Guangdong\",\n            \"postalCode\": \"523000\",\n            \"country\": \"CHN\"\n          },\n          \"weight\": {\n            \"value\": 0.4,\n            \"unit\": \"K\"\n          },\n          \"tariffStack\": [\n            {\n              \"hts\": \"9617001000\",\n              \"value\": 9.5,\n              \"quantities\": [\n                {\n                  \"unit\": \"NO\",\n                  \"quantity\": 1\n                }\n              ]\n            }\n          ],\n          \"declarations\": {\n            \"steel\": {\n              \"meltCountry\": \"CHN\",\n              \"applicabilityCode\": \"CODE_VALUE\"\n            }\n          }\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-100234\",\n        \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n        \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n        \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n        \"price\": 12.99,\n        \"images\": [\n          \"BASE64_ENCODED_JPEG_IMAGE\",\n          \"BASE64_ENCODED_JPEG_IMAGE\"\n        ],\n        \"originCountry\": \"CHN\",\n        \"categories\": [\n          \"Home & Kitchen\",\n          \"Drinkware\"\n        ],\n        \"pieces\": 1,\n        \"ean\": \"0123456789012\",\n        \"hts\": \"9617001000\",\n        \"normalize\": false,\n        \"attributes\": [\n          {\n            \"type\": \"ManufacturerId\",\n            \"value\": \"CNDONEXA12DON\"\n          },\n          {\n            \"type\": \"ManufacturerName\",\n            \"value\": \"Dongguan Example Manufacturing Ltd.\"\n          }\n        ]\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/package/screen","description":"<p>Initiates the package compliance verification process. Each product in the package is screened and a result indicating the package's current customs compliance status is returned.</p>\n<blockquote>\n<p>The <strong>Tests</strong> tab automatically saves the returned <code>packageId</code> to the <code>packageId</code> collection variable so it can be used by Duty Collection, Content Audit, Shipment Registration and Package Tracking.</p>\n</blockquote>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</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>required</td>\n<td>Package identifier that is unique within the client's system.</td>\n</tr>\n<tr>\n<td><code>platformId</code></td>\n<td>string(20)</td>\n<td>required</td>\n<td>Marketplace platform identifier. Use <strong>GET /v1/platform</strong> for the list of supported platforms.</td>\n</tr>\n<tr>\n<td><code>sellerId</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Username or identifier of the seller ('store') on the platform.</td>\n</tr>\n<tr>\n<td><code>exportCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>ISO3 (uppercase) country of export. <code>\"CHN\"</code> for all packages coming from China.</td>\n</tr>\n<tr>\n<td><code>destinationCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>ISO3 (uppercase) destination country. <code>\"USA\"</code> for packages imported into the United States.</td>\n</tr>\n<tr>\n<td><code>houseBillNumber</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>House bill number used for customs filing. Must be unique within a single shipment (consolidation).</td>\n</tr>\n<tr>\n<td><code>barcode</code></td>\n<td>string</td>\n<td>required</td>\n<td>Package barcode (tracking number) printed on the shipping label.</td>\n</tr>\n<tr>\n<td><code>invoiceNumber</code></td>\n<td>string(30)</td>\n<td>conditional</td>\n<td>Package invoice (order) number for entry filing, if applicable.</td>\n</tr>\n<tr>\n<td><code>containerId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Package container identifier (barcode) if the package is provided in a separate container.</td>\n</tr>\n<tr>\n<td><code>group</code></td>\n<td>object</td>\n<td>optional</td>\n<td>Entry grouping and sorting logic. Packages sharing the same group id are consolidated into a single entry and ordered accordingly, whenever feasible.</td>\n</tr>\n<tr>\n<td><code>group.id</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Filing group identifier.</td>\n</tr>\n<tr>\n<td><code>group.ordinal</code></td>\n<td>number</td>\n<td>optional</td>\n<td>Ordinal number of the package within the group (sorting order).</td>\n</tr>\n<tr>\n<td><code>carrierId</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Last-mile carrier identifier on the shipping label, e.g. <code>\"usps\"</code>, <code>\"ups\"</code>, <code>\"fedex\"</code>, <code>\"dhl\"</code>.</td>\n</tr>\n<tr>\n<td><code>weight</code></td>\n<td>object</td>\n<td>required</td>\n<td>Package gross weight.</td>\n</tr>\n<tr>\n<td><code>weight.value</code></td>\n<td>number</td>\n<td>required</td>\n<td>Gross weight value in the specified unit.</td>\n</tr>\n<tr>\n<td><code>weight.unit</code></td>\n<td>string</td>\n<td>required</td>\n<td>Weight unit: <code>\"K\"</code> – Kilograms, <code>\"L\"</code> – Pounds.</td>\n</tr>\n<tr>\n<td><code>declaredValue</code></td>\n<td>number</td>\n<td>optional</td>\n<td>Package total declared value in USD for filing purposes.</td>\n</tr>\n<tr>\n<td><code>charges</code></td>\n<td>number</td>\n<td>conditional</td>\n<td>Total non-dutiable charges for the package.</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>object</td>\n<td>required</td>\n<td>Package sender (shipper) address.</td>\n</tr>\n<tr>\n<td><code>from.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's full name.</td>\n</tr>\n<tr>\n<td><code>from.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's address line one.</td>\n</tr>\n<tr>\n<td><code>from.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Shipper's address line two.</td>\n</tr>\n<tr>\n<td><code>from.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's city.</td>\n</tr>\n<tr>\n<td><code>from.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Shipper's state or province.</td>\n</tr>\n<tr>\n<td><code>from.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Shipper's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>from.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Shipper's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>from.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Shipper's phone number if available.</td>\n</tr>\n<tr>\n<td><code>from.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Shipper's email address if available.</td>\n</tr>\n<tr>\n<td><code>to</code></td>\n<td>object</td>\n<td>required</td>\n<td>Package recipient (consignee) address.</td>\n</tr>\n<tr>\n<td><code>to.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's full name.</td>\n</tr>\n<tr>\n<td><code>to.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's address line one.</td>\n</tr>\n<tr>\n<td><code>to.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Consignee's address line two.</td>\n</tr>\n<tr>\n<td><code>to.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's city.</td>\n</tr>\n<tr>\n<td><code>to.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Consignee's state or province.</td>\n</tr>\n<tr>\n<td><code>to.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Consignee's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>to.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Consignee's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>to.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Consignee's phone number if available.</td>\n</tr>\n<tr>\n<td><code>to.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Consignee's email address if available.</td>\n</tr>\n<tr>\n<td><code>products[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Product quantifiers: product details, quantity and customs declaration line items.</td>\n</tr>\n<tr>\n<td><code>products[].quantity</code></td>\n<td>number</td>\n<td>required</td>\n<td>Total count of individual products within the package.</td>\n</tr>\n<tr>\n<td><code>products[].items[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Line items – one per product component that must be declared individually for customs filing.</td>\n</tr>\n<tr>\n<td><code>products[].items[].declaredValue</code></td>\n<td>number</td>\n<td>required</td>\n<td>Product unit value in USD for customs declaration.</td>\n</tr>\n<tr>\n<td><code>products[].items[].declaredName</code></td>\n<td>string(300)</td>\n<td>required</td>\n<td>Item name used for customs declaration.</td>\n</tr>\n<tr>\n<td><code>products[].items[].originCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>Uppercase ISO-3 origin country (or province code). <code>\"CHN\"</code> for products made in China.</td>\n</tr>\n<tr>\n<td><code>products[].items[].mid</code></td>\n<td>string</td>\n<td>required</td>\n<td>Manufacturer identifier (MID). Required for customs filing.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer</code></td>\n<td>object</td>\n<td>optional</td>\n<td>Manufacturer address information.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Manufacturer's full name.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Manufacturer's address line one.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Manufacturer's address line two.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Manufacturer's city.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Manufacturer's state or province.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Manufacturer's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Manufacturer's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Manufacturer's phone number if available.</td>\n</tr>\n<tr>\n<td><code>products[].items[].manufacturer.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Manufacturer's email address if available.</td>\n</tr>\n<tr>\n<td><code>products[].items[].weight</code></td>\n<td>object</td>\n<td>required</td>\n<td>Item weight.</td>\n</tr>\n<tr>\n<td><code>products[].items[].weight.value</code></td>\n<td>number</td>\n<td>required</td>\n<td>Item gross weight value.</td>\n</tr>\n<tr>\n<td><code>products[].items[].weight.unit</code></td>\n<td>string</td>\n<td>required</td>\n<td>Weight unit: <code>\"K\"</code> – Kilograms, <code>\"L\"</code> – Pounds.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Tariff declaration details.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].hts</code></td>\n<td>string</td>\n<td>required</td>\n<td>10-digit U.S. Harmonized Tariff Schedule (HTS) number.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].value</code></td>\n<td>number</td>\n<td>required</td>\n<td>Declared tariff value.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].indicators[]</code></td>\n<td>object array</td>\n<td>conditional</td>\n<td>Tariff special program indicators where applicable.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].indicators[].type</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Indicator type, e.g. <code>\"SPI\"</code> or <code>\"SPI2\"</code>.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].indicators[].value</code></td>\n<td>string(300)</td>\n<td>conditional</td>\n<td>Indicator value if applicable, e.g. <code>\"CL\"</code> (Chile FTA), <code>\"S\"</code> (USMCA).</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].quantities[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Census quantity reporting objects applicable to the HTS code.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].quantities[].unit</code></td>\n<td>string</td>\n<td>required</td>\n<td>Census quantity unit.</td>\n</tr>\n<tr>\n<td><code>products[].items[].tariffStack[].quantities[].quantity</code></td>\n<td>number</td>\n<td>required</td>\n<td>Census quantity value.</td>\n</tr>\n<tr>\n<td><code>products[].items[].pga[]</code></td>\n<td>object array</td>\n<td>conditional</td>\n<td>PGA filing data sets where applicable. See the <strong>PGA Data Reference</strong> folder.</td>\n</tr>\n<tr>\n<td><code>products[].items[].pga[].agency</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>PGA agency code, e.g. <code>\"FDA\"</code>, <code>\"APHIS\"</code>, <code>\"CPSC\"</code>.</td>\n</tr>\n<tr>\n<td><code>products[].items[].pga[].program</code></td>\n<td>object</td>\n<td>required</td>\n<td>Agency-specific program data; additional fields depend on the program code.</td>\n</tr>\n<tr>\n<td><code>products[].items[].pga[].program.code</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>PGA program code, e.g. <code>\"APL\"</code> (Lacey Act), <code>\"DRU\"</code> (FDA drugs).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Additional reporting declarations.</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.aluminum</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Aluminum reporting details.</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.aluminum.primarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Primary country of aluminum smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.aluminum.secondarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Secondary country of aluminum smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.aluminum.castCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Country of aluminum cast (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.copper</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Copper reporting details.</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.copper.primarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Primary country of copper smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.copper.secondarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Secondary country of copper smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.copper.castCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Country of copper cast (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.steel</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Steel reporting details.</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.steel.meltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Country of steel melt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].items[].declarations.steel.applicabilityCode</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Steel reporting applicability code.</td>\n</tr>\n<tr>\n<td><code>products[].product</code></td>\n<td>object</td>\n<td>required</td>\n<td>Product-level details.</td>\n</tr>\n<tr>\n<td><code>products[].product.sku</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>SKU / Item ID – the unique product listing identifier on the platform.</td>\n</tr>\n<tr>\n<td><code>products[].product.url</code></td>\n<td>string(1000)</td>\n<td>required</td>\n<td>Working, public URL of the product web page on the platform.</td>\n</tr>\n<tr>\n<td><code>products[].product.name</code></td>\n<td>string(300)</td>\n<td>required</td>\n<td>Full advertised product name. Must match the product web page.</td>\n</tr>\n<tr>\n<td><code>products[].product.description</code></td>\n<td>string</td>\n<td>required</td>\n<td>Full advertised description (features, function, composition, usage, handling, etc.). Must match the product web page.</td>\n</tr>\n<tr>\n<td><code>products[].product.price</code></td>\n<td>number</td>\n<td>required</td>\n<td>List price in USD as displayed on the product web page.</td>\n</tr>\n<tr>\n<td><code>products[].product.images[]</code></td>\n<td>base64 string array</td>\n<td>required</td>\n<td>One or more product images as shown on the web page. Formats: JPEG (recommended), WEBP, PNG8, PNG24, GIF (non-animated). Minimum 640x480.</td>\n</tr>\n<tr>\n<td><code>products[].product.originCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>Uppercase ISO-3 country code (or two-character province code where applicable) of origin. <code>\"CHN\"</code> for products made in China.</td>\n</tr>\n<tr>\n<td><code>products[].product.categories[]</code></td>\n<td>string array</td>\n<td>optional</td>\n<td>Store categories or keywords associated with the product.</td>\n</tr>\n<tr>\n<td><code>products[].product.pieces</code></td>\n<td>number</td>\n<td>optional</td>\n<td>Total number of pieces, if sold as a lot. Default 1.</td>\n</tr>\n<tr>\n<td><code>products[].product.ean</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>13-digit EAN or 12-digit UPC.</td>\n</tr>\n<tr>\n<td><code>products[].product.hts</code></td>\n<td>string(10)</td>\n<td>required</td>\n<td>Primary 10-digit U.S. HTS number.</td>\n</tr>\n<tr>\n<td><code>products[].product.normalize</code></td>\n<td>boolean</td>\n<td>optional</td>\n<td>Whether the product data needs to be normalized.</td>\n</tr>\n<tr>\n<td><code>products[].product.instructions[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Special screening instruction objects.</td>\n</tr>\n<tr>\n<td><code>products[].product.instructions[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Type of the special screening instruction.</td>\n</tr>\n<tr>\n<td><code>products[].product.instructions[].value</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Instruction argument (applicable to certain instruction types).</td>\n</tr>\n<tr>\n<td><code>products[].product.attributes[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Additional product attribute objects.</td>\n</tr>\n<tr>\n<td><code>products[].product.attributes[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Attribute type: <code>\"ManufacturerId\"</code> (MID), <code>\"ManufacturerName\"</code>, <code>\"ManufacturerAddress\"</code>.</td>\n</tr>\n<tr>\n<td><code>products[].product.attributes[].value</code></td>\n<td>string</td>\n<td>required</td>\n<td>Attribute value corresponding to the type.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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-side package identifier.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>number</td>\n<td>required</td>\n<td>Package result: <code>1</code> Accepted, <code>2</code> Rejected, <code>3</code> Inconclusive, <code>4</code> Audit (compliant but requires content audit – call <strong>POST /v1/package/audit</strong>).</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>Data to encode as a QR code on the shipping label. Returned only when <code>code</code> = 1 (Accepted). See label requirements below.</td>\n</tr>\n<tr>\n<td><code>products[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Screening result for each product in the package.</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>SKU or Item ID on the platform.</td>\n</tr>\n<tr>\n<td><code>products[].platformId</code></td>\n<td>string</td>\n<td>required</td>\n<td>Selling platform identifier.</td>\n</tr>\n<tr>\n<td><code>products[].code</code></td>\n<td>number</td>\n<td>required</td>\n<td>Product result: <code>1</code> Accepted, <code>2</code> Rejected, <code>3</code> Inconclusive.</td>\n</tr>\n<tr>\n<td><code>products[].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>products[].reason</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Product rejection reason, if applicable.</td>\n</tr>\n<tr>\n<td><code>products[].reason.code</code></td>\n<td>string</td>\n<td>required</td>\n<td>Three-letter rejection reason code (see table below).</td>\n</tr>\n<tr>\n<td><code>products[].reason.description</code></td>\n<td>string</td>\n<td>required</td>\n<td>Short phrase describing the rejection reason.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"shipping-label-qr-code-requirements\">Shipping label QR code requirements</h2>\n<ul>\n<li>The encoded QR code content must match the <code>labelQrCode</code> value.</li>\n<li>The QR code must be scannable on the printed label (smartphone or dedicated barcode scanner).</li>\n<li>The trademark <strong>\"SafePackage ®\"</strong> must be printed close to the QR code (preferably above it).</li>\n</ul>\n<h2 id=\"rejection-reason-codes\">Rejection reason codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>RMG</td>\n<td>Transportation security violation</td>\n</tr>\n<tr>\n<td>RBT</td>\n<td>Transportation security violation</td>\n</tr>\n<tr>\n<td>RDG</td>\n<td>Transportation security violation</td>\n</tr>\n<tr>\n<td>RHP</td>\n<td>De-minimis value violation</td>\n</tr>\n<tr>\n<td>RIP</td>\n<td>Intellectual property infringement</td>\n</tr>\n<tr>\n<td>RIC</td>\n<td>Copyright infringement</td>\n</tr>\n<tr>\n<td>RIT</td>\n<td>Trademark infringement</td>\n</tr>\n<tr>\n<td>RIN</td>\n<td>Patent infringement</td>\n</tr>\n<tr>\n<td>RCT</td>\n<td>Customs regulations violation</td>\n</tr>\n<tr>\n<td>RPA</td>\n<td>U.S. Department of Agriculture (USDA) violation</td>\n</tr>\n<tr>\n<td>RPW</td>\n<td>U.S. Fish and Wildlife Service (FWS) violation</td>\n</tr>\n<tr>\n<td>RPT</td>\n<td>U.S. Department of Transportation (DOT) violation</td>\n</tr>\n<tr>\n<td>RPD</td>\n<td>U.S. Food and Drug Administration (FDA) violation</td>\n</tr>\n<tr>\n<td>RPS</td>\n<td>U.S. Consumer Product Safety Commission (CPSC) violation</td>\n</tr>\n<tr>\n<td>RPF</td>\n<td>U.S. Financial Crimes Enforcement Network (FCEN) violation</td>\n</tr>\n<tr>\n<td>RPE</td>\n<td>U.S. Bureau of Alcohol, Tobacco, Firearms and Explosives (ATF) violation</td>\n</tr>\n<tr>\n<td>RPL</td>\n<td>Forced labor violation</td>\n</tr>\n<tr>\n<td>RCR</td>\n<td>Customs regulations violation</td>\n</tr>\n<tr>\n<td>RBD</td>\n<td>Bad or incomplete data</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","screen"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"411a1d01-f823-46a7-85cd-00cbc0da8ec9","name":"200 – Accepted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"items\": [\n        {\n          \"declaredValue\": 9.5,\n          \"declaredName\": \"Stainless steel vacuum water bottle\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"CNDONEXA12DON\",\n          \"manufacturer\": {\n            \"name\": \"Dongguan Example Manufacturing Ltd.\",\n            \"line1\": \"12 Industrial Rd\",\n            \"city\": \"Dongguan\",\n            \"state\": \"Guangdong\",\n            \"postalCode\": \"523000\",\n            \"country\": \"CHN\"\n          },\n          \"weight\": {\n            \"value\": 0.4,\n            \"unit\": \"K\"\n          },\n          \"tariffStack\": [\n            {\n              \"hts\": \"9617001000\",\n              \"value\": 9.5,\n              \"quantities\": [\n                {\n                  \"unit\": \"NO\",\n                  \"quantity\": 1\n                }\n              ]\n            }\n          ],\n          \"declarations\": {\n            \"steel\": {\n              \"meltCountry\": \"CHN\",\n              \"applicabilityCode\": \"CODE_VALUE\"\n            }\n          }\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-100234\",\n        \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n        \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n        \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n        \"price\": 12.99,\n        \"images\": [\n          \"BASE64_ENCODED_JPEG_IMAGE\",\n          \"BASE64_ENCODED_JPEG_IMAGE\"\n        ],\n        \"originCountry\": \"CHN\",\n        \"categories\": [\n          \"Home & Kitchen\",\n          \"Drinkware\"\n        ],\n        \"pieces\": 1,\n        \"ean\": \"0123456789012\",\n        \"hts\": \"9617001000\",\n        \"normalize\": false,\n        \"attributes\": [\n          {\n            \"type\": \"ManufacturerId\",\n            \"value\": \"CNDONEXA12DON\"\n          },\n          {\n            \"type\": \"ManufacturerName\",\n            \"value\": \"Dongguan Example Manufacturing Ltd.\"\n          }\n        ]\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B77\",\n  \"externalId\": \"ORD-2026-000123\",\n  \"code\": 1,\n  \"status\": \"Accepted\",\n  \"labelQrCode\": \"QR_CODE_PAYLOAD\",\n  \"products\": [\n    {\n      \"reference\": \"PRD-7F3A9C21\",\n      \"sku\": \"SKU-100234\",\n      \"platformId\": \"example\",\n      \"code\": 1,\n      \"status\": \"Accepted\"\n    }\n  ]\n}"},{"id":"093a24af-92fe-491c-9d6b-1527a9cfd5bf","name":"200 – Rejected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"items\": [\n        {\n          \"declaredValue\": 9.5,\n          \"declaredName\": \"Stainless steel vacuum water bottle\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"CNDONEXA12DON\",\n          \"manufacturer\": {\n            \"name\": \"Dongguan Example Manufacturing Ltd.\",\n            \"line1\": \"12 Industrial Rd\",\n            \"city\": \"Dongguan\",\n            \"state\": \"Guangdong\",\n            \"postalCode\": \"523000\",\n            \"country\": \"CHN\"\n          },\n          \"weight\": {\n            \"value\": 0.4,\n            \"unit\": \"K\"\n          },\n          \"tariffStack\": [\n            {\n              \"hts\": \"9617001000\",\n              \"value\": 9.5,\n              \"quantities\": [\n                {\n                  \"unit\": \"NO\",\n                  \"quantity\": 1\n                }\n              ]\n            }\n          ],\n          \"declarations\": {\n            \"steel\": {\n              \"meltCountry\": \"CHN\",\n              \"applicabilityCode\": \"CODE_VALUE\"\n            }\n          }\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-100234\",\n        \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n        \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n        \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n        \"price\": 12.99,\n        \"images\": [\n          \"BASE64_ENCODED_JPEG_IMAGE\",\n          \"BASE64_ENCODED_JPEG_IMAGE\"\n        ],\n        \"originCountry\": \"CHN\",\n        \"categories\": [\n          \"Home & Kitchen\",\n          \"Drinkware\"\n        ],\n        \"pieces\": 1,\n        \"ean\": \"0123456789012\",\n        \"hts\": \"9617001000\",\n        \"normalize\": false,\n        \"attributes\": [\n          {\n            \"type\": \"ManufacturerId\",\n            \"value\": \"CNDONEXA12DON\"\n          },\n          {\n            \"type\": \"ManufacturerName\",\n            \"value\": \"Dongguan Example Manufacturing Ltd.\"\n          }\n        ]\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B78\",\n  \"externalId\": \"ORD-2026-000124\",\n  \"code\": 2,\n  \"status\": \"Rejected\",\n  \"products\": [\n    {\n      \"reference\": \"PRD-7F3A9C25\",\n      \"sku\": \"SKU-200871\",\n      \"platformId\": \"example\",\n      \"code\": 2,\n      \"status\": \"Rejected\",\n      \"reason\": {\n        \"code\": \"RDG\",\n        \"description\": \"Transportation security violation.\"\n      }\n    }\n  ]\n}"},{"id":"6faf636c-41dc-479b-98a2-4aeb9b9275e9","name":"200 – Audit required","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"items\": [\n        {\n          \"declaredValue\": 9.5,\n          \"declaredName\": \"Stainless steel vacuum water bottle\",\n          \"originCountry\": \"CHN\",\n          \"mid\": \"CNDONEXA12DON\",\n          \"manufacturer\": {\n            \"name\": \"Dongguan Example Manufacturing Ltd.\",\n            \"line1\": \"12 Industrial Rd\",\n            \"city\": \"Dongguan\",\n            \"state\": \"Guangdong\",\n            \"postalCode\": \"523000\",\n            \"country\": \"CHN\"\n          },\n          \"weight\": {\n            \"value\": 0.4,\n            \"unit\": \"K\"\n          },\n          \"tariffStack\": [\n            {\n              \"hts\": \"9617001000\",\n              \"value\": 9.5,\n              \"quantities\": [\n                {\n                  \"unit\": \"NO\",\n                  \"quantity\": 1\n                }\n              ]\n            }\n          ],\n          \"declarations\": {\n            \"steel\": {\n              \"meltCountry\": \"CHN\",\n              \"applicabilityCode\": \"CODE_VALUE\"\n            }\n          }\n        }\n      ],\n      \"product\": {\n        \"sku\": \"SKU-100234\",\n        \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n        \"name\": \"Stainless Steel Insulated Water Bottle 750ml\",\n        \"description\": \"Double-wall vacuum insulated 18/8 stainless steel bottle. Keeps drinks cold 24h / hot 12h. BPA-free lid. Hand wash only.\",\n        \"price\": 12.99,\n        \"images\": [\n          \"BASE64_ENCODED_JPEG_IMAGE\",\n          \"BASE64_ENCODED_JPEG_IMAGE\"\n        ],\n        \"originCountry\": \"CHN\",\n        \"categories\": [\n          \"Home & Kitchen\",\n          \"Drinkware\"\n        ],\n        \"pieces\": 1,\n        \"ean\": \"0123456789012\",\n        \"hts\": \"9617001000\",\n        \"normalize\": false,\n        \"attributes\": [\n          {\n            \"type\": \"ManufacturerId\",\n            \"value\": \"CNDONEXA12DON\"\n          },\n          {\n            \"type\": \"ManufacturerName\",\n            \"value\": \"Dongguan Example Manufacturing Ltd.\"\n          }\n        ]\n      }\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B79\",\n  \"externalId\": \"ORD-2026-000125\",\n  \"code\": 4,\n  \"status\": \"Audit\",\n  \"products\": [\n    {\n      \"reference\": \"PRD-7F3A9C21\",\n      \"sku\": \"SKU-100234\",\n      \"platformId\": \"example\",\n      \"code\": 1,\n      \"status\": \"Accepted\"\n    }\n  ]\n}"}],"_postman_id":"dce1e968-29f3-4da3-bbf5-a9edfd07bd1a"}],"id":"e5ceb201-03e7-4203-b721-6459b95c4752","description":"<p>Initiates the package compliance verification process: every product in the package is screened and the package's customs compliance status is returned.</p>\n","_postman_id":"e5ceb201-03e7-4203-b721-6459b95c4752","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Package Data Submission (TDP)","item":[{"name":"Submit Package (TDP)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });","let json; try { json = pm.response.json(); } catch (e) { json = {}; }","if (json && json.packageId) {","    pm.collectionVariables.set(\"packageId\", json.packageId);","    console.log(\"Saved packageId =\", json.packageId);","}"],"id":"587decde-2c5d-4525-b140-748f448cab88"}}],"id":"cf554bfd-7466-4464-a882-0c6870c138a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Stainless steel vacuum water bottle\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"9617001000\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/package/submit","description":"<p>Submits package data required to complete the customs manifesting and/or filing procedure as part of the <strong>Traditional Brokerage Process (TDP)</strong>.</p>\n<blockquote>\n<p>Do <strong>not</strong> call this endpoint for a package that has already been screened via <strong>POST /v1/package/screen</strong>.</p>\n</blockquote>\n<blockquote>\n<p>The <strong>Tests</strong> tab saves the returned <code>packageId</code> to the <code>packageId</code> collection variable.</p>\n</blockquote>\n<p>The package-level fields are identical to Package Screening. The difference is in <code>products[]</code>: here each entry is a flat customs line item (no nested <code>items[]</code> / <code>product</code> objects).</p>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</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>required</td>\n<td>Package identifier that is unique within the client's system.</td>\n</tr>\n<tr>\n<td><code>platformId</code></td>\n<td>string(20)</td>\n<td>required</td>\n<td>Marketplace platform identifier. Use <strong>GET /v1/platform</strong> for the list of supported platforms.</td>\n</tr>\n<tr>\n<td><code>sellerId</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Username or identifier of the seller ('store') on the platform.</td>\n</tr>\n<tr>\n<td><code>exportCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>ISO3 (uppercase) country of export. <code>\"CHN\"</code> for all packages coming from China.</td>\n</tr>\n<tr>\n<td><code>destinationCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>ISO3 (uppercase) destination country. <code>\"USA\"</code> for packages imported into the United States.</td>\n</tr>\n<tr>\n<td><code>houseBillNumber</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>House bill number used for customs filing. Must be unique within a single shipment (consolidation).</td>\n</tr>\n<tr>\n<td><code>barcode</code></td>\n<td>string</td>\n<td>required</td>\n<td>Package barcode (tracking number) printed on the shipping label.</td>\n</tr>\n<tr>\n<td><code>invoiceNumber</code></td>\n<td>string(30)</td>\n<td>conditional</td>\n<td>Package invoice (order) number for entry filing, if applicable.</td>\n</tr>\n<tr>\n<td><code>containerId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Package container identifier (barcode) if the package is provided in a separate container.</td>\n</tr>\n<tr>\n<td><code>group</code></td>\n<td>object</td>\n<td>optional</td>\n<td>Entry grouping and sorting logic. Packages sharing the same group id are consolidated into a single entry and ordered accordingly, whenever feasible.</td>\n</tr>\n<tr>\n<td><code>group.id</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Filing group identifier.</td>\n</tr>\n<tr>\n<td><code>group.ordinal</code></td>\n<td>number</td>\n<td>optional</td>\n<td>Ordinal number of the package within the group (sorting order).</td>\n</tr>\n<tr>\n<td><code>carrierId</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Last-mile carrier identifier on the shipping label, e.g. <code>\"usps\"</code>, <code>\"ups\"</code>, <code>\"fedex\"</code>, <code>\"dhl\"</code>.</td>\n</tr>\n<tr>\n<td><code>weight</code></td>\n<td>object</td>\n<td>required</td>\n<td>Package gross weight.</td>\n</tr>\n<tr>\n<td><code>weight.value</code></td>\n<td>number</td>\n<td>required</td>\n<td>Gross weight value in the specified unit.</td>\n</tr>\n<tr>\n<td><code>weight.unit</code></td>\n<td>string</td>\n<td>required</td>\n<td>Weight unit: <code>\"K\"</code> – Kilograms, <code>\"L\"</code> – Pounds.</td>\n</tr>\n<tr>\n<td><code>declaredValue</code></td>\n<td>number</td>\n<td>optional</td>\n<td>Package total declared value in USD for filing purposes.</td>\n</tr>\n<tr>\n<td><code>charges</code></td>\n<td>number</td>\n<td>conditional</td>\n<td>Total non-dutiable charges for the package.</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>object</td>\n<td>required</td>\n<td>Package sender (shipper) address.</td>\n</tr>\n<tr>\n<td><code>from.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's full name.</td>\n</tr>\n<tr>\n<td><code>from.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's address line one.</td>\n</tr>\n<tr>\n<td><code>from.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Shipper's address line two.</td>\n</tr>\n<tr>\n<td><code>from.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's city.</td>\n</tr>\n<tr>\n<td><code>from.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Shipper's state or province.</td>\n</tr>\n<tr>\n<td><code>from.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Shipper's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>from.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Shipper's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>from.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Shipper's phone number if available.</td>\n</tr>\n<tr>\n<td><code>from.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Shipper's email address if available.</td>\n</tr>\n<tr>\n<td><code>to</code></td>\n<td>object</td>\n<td>required</td>\n<td>Package recipient (consignee) address.</td>\n</tr>\n<tr>\n<td><code>to.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's full name.</td>\n</tr>\n<tr>\n<td><code>to.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's address line one.</td>\n</tr>\n<tr>\n<td><code>to.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Consignee's address line two.</td>\n</tr>\n<tr>\n<td><code>to.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's city.</td>\n</tr>\n<tr>\n<td><code>to.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Consignee's state or province.</td>\n</tr>\n<tr>\n<td><code>to.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Consignee's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>to.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Consignee's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>to.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Consignee's phone number if available.</td>\n</tr>\n<tr>\n<td><code>to.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Consignee's email address if available.</td>\n</tr>\n<tr>\n<td><code>products[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Product line items: customs declaration info with product references and quantities.</td>\n</tr>\n<tr>\n<td><code>products[].quantity</code></td>\n<td>number</td>\n<td>required</td>\n<td>How many of the distinct SKUs (products) associated with this line are in the package.</td>\n</tr>\n<tr>\n<td><code>products[].declaredValue</code></td>\n<td>number</td>\n<td>required</td>\n<td>Line item total value in USD for customs declaration.</td>\n</tr>\n<tr>\n<td><code>products[].declaredName</code></td>\n<td>string(300)</td>\n<td>required</td>\n<td>Item name used for customs declaration.</td>\n</tr>\n<tr>\n<td><code>products[].originCountry</code></td>\n<td>string</td>\n<td>required</td>\n<td>Uppercase ISO-3 origin country (or province code). <code>\"CHN\"</code> for products made in China.</td>\n</tr>\n<tr>\n<td><code>products[].mid</code></td>\n<td>string(20)</td>\n<td>conditional</td>\n<td>Manufacturer identifier for customs declaration, if entry filing is intended for this package.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer</code></td>\n<td>object</td>\n<td>optional</td>\n<td>Manufacturer address information.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Manufacturer's full name.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Manufacturer's address line one.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Manufacturer's address line two.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Manufacturer's city.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Manufacturer's state or province.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Manufacturer's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Manufacturer's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Manufacturer's phone number if available.</td>\n</tr>\n<tr>\n<td><code>products[].manufacturer.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Manufacturer's email address if available.</td>\n</tr>\n<tr>\n<td><code>products[].url</code></td>\n<td>string(1000)</td>\n<td>optional</td>\n<td>Public URL of the product web page. Multiple lines can share the same URL.</td>\n</tr>\n<tr>\n<td><code>products[].sku</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>SKU / Item ID on the platform. Multiple lines can share the same SKU.</td>\n</tr>\n<tr>\n<td><code>products[].weight</code></td>\n<td>object</td>\n<td>required</td>\n<td>Item weight.</td>\n</tr>\n<tr>\n<td><code>products[].weight.value</code></td>\n<td>number</td>\n<td>required</td>\n<td>Item gross weight value.</td>\n</tr>\n<tr>\n<td><code>products[].weight.unit</code></td>\n<td>string</td>\n<td>required</td>\n<td>Weight unit: <code>\"K\"</code> – Kilograms, <code>\"L\"</code> – Pounds.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Tariff declaration details.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].hts</code></td>\n<td>string</td>\n<td>required</td>\n<td>10-digit U.S. Harmonized Tariff Schedule (HTS) number.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].value</code></td>\n<td>number</td>\n<td>required</td>\n<td>Declared tariff value.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].indicators[]</code></td>\n<td>object array</td>\n<td>conditional</td>\n<td>Tariff special program indicators where applicable.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].indicators[].type</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Indicator type, e.g. <code>\"SPI\"</code> or <code>\"SPI2\"</code>.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].indicators[].value</code></td>\n<td>string(300)</td>\n<td>conditional</td>\n<td>Indicator value if applicable, e.g. <code>\"CL\"</code> (Chile FTA), <code>\"S\"</code> (USMCA).</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].quantities[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Census quantity reporting objects applicable to the HTS code.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].quantities[].unit</code></td>\n<td>string</td>\n<td>required</td>\n<td>Census quantity unit.</td>\n</tr>\n<tr>\n<td><code>products[].tariffStack[].quantities[].quantity</code></td>\n<td>number</td>\n<td>required</td>\n<td>Census quantity value.</td>\n</tr>\n<tr>\n<td><code>products[].pga[]</code></td>\n<td>object array</td>\n<td>conditional</td>\n<td>PGA filing data sets where applicable. See the <strong>PGA Data Reference</strong> folder.</td>\n</tr>\n<tr>\n<td><code>products[].pga[].agency</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>PGA agency code, e.g. <code>\"FDA\"</code>, <code>\"APHIS\"</code>, <code>\"CPSC\"</code>.</td>\n</tr>\n<tr>\n<td><code>products[].pga[].program</code></td>\n<td>object</td>\n<td>required</td>\n<td>Agency-specific program data; additional fields depend on the program code.</td>\n</tr>\n<tr>\n<td><code>products[].pga[].program.code</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>PGA program code, e.g. <code>\"APL\"</code> (Lacey Act), <code>\"DRU\"</code> (FDA drugs).</td>\n</tr>\n<tr>\n<td><code>products[].declarations</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Additional reporting declarations.</td>\n</tr>\n<tr>\n<td><code>products[].declarations.aluminum</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Aluminum reporting details.</td>\n</tr>\n<tr>\n<td><code>products[].declarations.aluminum.primarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Primary country of aluminum smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].declarations.aluminum.secondarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Secondary country of aluminum smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].declarations.aluminum.castCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Country of aluminum cast (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].declarations.copper</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Copper reporting details.</td>\n</tr>\n<tr>\n<td><code>products[].declarations.copper.primarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Primary country of copper smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].declarations.copper.secondarySmeltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Secondary country of copper smelt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].declarations.copper.castCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Country of copper cast (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].declarations.steel</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Steel reporting details.</td>\n</tr>\n<tr>\n<td><code>products[].declarations.steel.meltCountry</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Country of steel melt (ISO-3).</td>\n</tr>\n<tr>\n<td><code>products[].declarations.steel.applicabilityCode</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Steel reporting applicability code.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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-side package identifier.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","submit"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"e08bd201-4b87-4f1f-90ac-be6279a58dca","name":"200 – Submitted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Stainless steel vacuum water bottle\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"9617001000\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B80\",\n  \"externalId\": \"ORD-2026-000123\"\n}"}],"_postman_id":"cf554bfd-7466-4464-a882-0c6870c138a1"}],"id":"e0510622-8d76-43fe-8ae2-416cc832703f","description":"<p>Submits package data required for customs manifesting and/or filing under the Traditional Brokerage Process (TDP). Do <strong>not</strong> use for packages already screened with Package Screening.</p>\n","_postman_id":"e0510622-8d76-43fe-8ae2-416cc832703f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Duty Collection","item":[{"name":"Pay Duties","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"7487bcc8-04ce-4760-9755-f63ef318954d"}}],"id":"4ec2ec1c-9ae3-4cfe-bdc0-5ef04ea15992","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"packageId\": \"\",\n  \"barcode\": \"9400100000000000000000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/duty/pay","description":"<p>Approves payment of all applicable duties and customs fees for the package and returns proof of payment for further processing.</p>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</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 returned by the package screening endpoint.</td>\n</tr>\n<tr>\n<td><code>barcode</code></td>\n<td>string</td>\n<td>required</td>\n<td>Package barcode (tracking number) printed on the shipping label.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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-side 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 duty payment for third-party carriers or postal entities, indicating duty was collected by SafePackage.</td>\n</tr>\n<tr>\n<td><code>totalDuty</code></td>\n<td>number</td>\n<td>conditional</td>\n<td>Total amount of duty and customs fees collected, if applicable.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","duty","pay"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"3a3d5cef-554c-44ac-bcb2-c369282731f0","name":"200 – Duty paid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"packageId\": \"\",\n  \"barcode\": \"9400100000000000000000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B77\",\n  \"externalId\": \"ORD-2026-000123\",\n  \"ddpn\": \"DDPN_VALUE\",\n  \"totalDuty\": 1.24\n}"}],"_postman_id":"4ec2ec1c-9ae3-4cfe-bdc0-5ef04ea15992"}],"id":"6bb1c8ee-505e-4d48-af36-d7ca911d4754","description":"<p>Approves payment of applicable duties and customs fees for a package and returns proof of payment.</p>\n","_postman_id":"6bb1c8ee-505e-4d48-af36-d7ca911d4754","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Shipment Registration","item":[{"name":"Register Shipment","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });","let json; try { json = pm.response.json(); } catch (e) { json = {}; }","if (json && json.shipmentId) {","    pm.collectionVariables.set(\"shipmentId\", json.shipmentId);","    console.log(\"Saved shipmentId =\", json.shipmentId);","}"],"id":"40108754-5a04-46c2-a92b-bb53ce092871"}}],"id":"690ab41c-829d-4e86-be0f-23d1dd7e0378","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"SHP-EXT-2026-0045\",\n  \"masterBill\": {\n    \"prefix\": \"999\",\n    \"serialNumber\": \"12345675\"\n  },\n  \"originatorCode\": \"CODE_VALUE\",\n  \"invoiceNumber\": \"SHP-INV-2026-0045\",\n  \"entryType\": \"86\",\n  \"importer\": {\n    \"name\": \"Example Imports LLC\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\",\n    \"identifiers\": [\n      {\n        \"type\": \"IMPORTER_NUMBER\",\n        \"value\": \"12-3456789\"\n      }\n    ]\n  },\n  \"shipper\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\",\n    \"identifiers\": [\n      {\n        \"type\": \"DUNS\",\n        \"value\": \"123456789\"\n      }\n    ]\n  },\n  \"consignee\": {\n    \"name\": \"Example Imports LLC\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\",\n    \"identifiers\": [\n      {\n        \"type\": \"DUNS\",\n        \"value\": \"987654321\"\n      }\n    ]\n  },\n  \"transportation\": {\n    \"mode\": \"AIR\",\n    \"portOfEntry\": \"LAX\",\n    \"portOfOrigin\": \"SZX\",\n    \"carrierName\": \"Example Air Cargo\",\n    \"carrierCode\": \"XX\",\n    \"lineNumber\": \"XX1234\",\n    \"firmsCode\": \"FIRMS_CODE\",\n    \"shippingDate\": \"2026-10-05\",\n    \"scheduledArrivalDate\": \"2026-10-06\",\n    \"terminalOperator\": \"CODE_VALUE\"\n  },\n  \"containers\": [\n    {\n      \"id\": \"ULD-AKE12345XX\",\n      \"weight\": {\n        \"value\": 450.0,\n        \"unit\": \"K\"\n      }\n    }\n  ],\n  \"packageIds\": [\n    \"\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/shipment/register","description":"<p>Provides shipment (consolidation) information prior to or at the time of manifest/entry filing to Customs. A shipment is a logical grouping of packages with common shipper, consignee and transportation information.</p>\n<blockquote>\n<p>The <strong>Tests</strong> tab saves the returned <code>shipmentId</code> to the <code>shipmentId</code> collection variable for use by the Section 321, Verification and Shipment Tracking requests.</p>\n</blockquote>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</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>required</td>\n<td>Shipment identifier unique within the client's system.</td>\n</tr>\n<tr>\n<td><code>masterBill</code></td>\n<td>object</td>\n<td>required</td>\n<td>Master bill of lading number used for customs filing.</td>\n</tr>\n<tr>\n<td><code>masterBill.prefix</code></td>\n<td>string(4)</td>\n<td>required</td>\n<td>Master bill number prefix.</td>\n</tr>\n<tr>\n<td><code>masterBill.serialNumber</code></td>\n<td>string(11)</td>\n<td>required</td>\n<td>Master bill serial number.</td>\n</tr>\n<tr>\n<td><code>originatorCode</code></td>\n<td>string(10)</td>\n<td>conditional</td>\n<td>CBP originator (filer) code, if required by the clearance process.</td>\n</tr>\n<tr>\n<td><code>invoiceNumber</code></td>\n<td>string(30)</td>\n<td>conditional</td>\n<td>Shipment invoice number for entry filing.</td>\n</tr>\n<tr>\n<td><code>entryType</code></td>\n<td>string(2)</td>\n<td>conditional</td>\n<td>Customs entry type requested: <code>\"01\"</code>, <code>\"11\"</code>, <code>\"86\"</code>, or <code>\"P\"</code> (postal).</td>\n</tr>\n<tr>\n<td><code>importer</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Importer address, if different from the consignee.</td>\n</tr>\n<tr>\n<td><code>importer.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Importer's full name.</td>\n</tr>\n<tr>\n<td><code>importer.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Importer's address line one.</td>\n</tr>\n<tr>\n<td><code>importer.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Importer's address line two.</td>\n</tr>\n<tr>\n<td><code>importer.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Importer's city.</td>\n</tr>\n<tr>\n<td><code>importer.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Importer's state or province.</td>\n</tr>\n<tr>\n<td><code>importer.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Importer's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>importer.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Importer's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>importer.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Importer's phone number if available.</td>\n</tr>\n<tr>\n<td><code>importer.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Importer's email address if available.</td>\n</tr>\n<tr>\n<td><code>importer.identifiers[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Importer's entity identifiers.</td>\n</tr>\n<tr>\n<td><code>importer.identifiers[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Entity identifier type. Accepted values: <code>\"DUNS\"</code>, <code>\"GLN\"</code>, <code>\"LEI\"</code>, <code>\"IMPORTER_NUMBER\"</code>.</td>\n</tr>\n<tr>\n<td><code>importer.identifiers[].value</code></td>\n<td>string(32)</td>\n<td>required</td>\n<td>Entity identifier value.</td>\n</tr>\n<tr>\n<td><code>shipper</code></td>\n<td>object</td>\n<td>required</td>\n<td>Consolidation shipper address.</td>\n</tr>\n<tr>\n<td><code>shipper.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's full name.</td>\n</tr>\n<tr>\n<td><code>shipper.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's address line one.</td>\n</tr>\n<tr>\n<td><code>shipper.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Shipper's address line two.</td>\n</tr>\n<tr>\n<td><code>shipper.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Shipper's city.</td>\n</tr>\n<tr>\n<td><code>shipper.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Shipper's state or province.</td>\n</tr>\n<tr>\n<td><code>shipper.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Shipper's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>shipper.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Shipper's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>shipper.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Shipper's phone number if available.</td>\n</tr>\n<tr>\n<td><code>shipper.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Shipper's email address if available.</td>\n</tr>\n<tr>\n<td><code>shipper.identifiers[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Shipper's entity identifiers.</td>\n</tr>\n<tr>\n<td><code>shipper.identifiers[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Entity identifier type. Accepted values: <code>\"DUNS\"</code>, <code>\"GLN\"</code>, <code>\"LEI\"</code> (string(4)).</td>\n</tr>\n<tr>\n<td><code>shipper.identifiers[].value</code></td>\n<td>string(32)</td>\n<td>required</td>\n<td>Entity identifier value.</td>\n</tr>\n<tr>\n<td><code>consignee</code></td>\n<td>object</td>\n<td>required</td>\n<td>Shipment consignee address.</td>\n</tr>\n<tr>\n<td><code>consignee.name</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's full name.</td>\n</tr>\n<tr>\n<td><code>consignee.line1</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's address line one.</td>\n</tr>\n<tr>\n<td><code>consignee.line2</code></td>\n<td>string(50)</td>\n<td>optional</td>\n<td>Consignee's address line two.</td>\n</tr>\n<tr>\n<td><code>consignee.city</code></td>\n<td>string(50)</td>\n<td>required</td>\n<td>Consignee's city.</td>\n</tr>\n<tr>\n<td><code>consignee.state</code></td>\n<td>string(30)</td>\n<td>required</td>\n<td>Consignee's state or province.</td>\n</tr>\n<tr>\n<td><code>consignee.postalCode</code></td>\n<td>string(12)</td>\n<td>required</td>\n<td>Consignee's postal code or zip.</td>\n</tr>\n<tr>\n<td><code>consignee.country</code></td>\n<td>string</td>\n<td>required</td>\n<td>Consignee's country in ISO3 format (uppercase).</td>\n</tr>\n<tr>\n<td><code>consignee.phone</code></td>\n<td>string(20)</td>\n<td>optional</td>\n<td>Consignee's phone number if available.</td>\n</tr>\n<tr>\n<td><code>consignee.email</code></td>\n<td>string(35)</td>\n<td>optional</td>\n<td>Consignee's email address if available.</td>\n</tr>\n<tr>\n<td><code>consignee.identifiers[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Consignee's entity identifiers.</td>\n</tr>\n<tr>\n<td><code>consignee.identifiers[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Entity identifier type. Accepted values: <code>\"DUNS\"</code>, <code>\"GLN\"</code>, <code>\"LEI\"</code>.</td>\n</tr>\n<tr>\n<td><code>consignee.identifiers[].value</code></td>\n<td>string(32)</td>\n<td>required</td>\n<td>Entity identifier value.</td>\n</tr>\n<tr>\n<td><code>transportation</code></td>\n<td>object</td>\n<td>required</td>\n<td>Shipment transportation information.</td>\n</tr>\n<tr>\n<td><code>transportation.mode</code></td>\n<td>string</td>\n<td>required</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>required</td>\n<td>Port where goods officially enter and clear customs (3-letter airport code, or CBP port code for other modes).</td>\n</tr>\n<tr>\n<td><code>transportation.portOfArrival</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Port of first arrival (domestic airport code) if different from port of entry. Applies to AIR.</td>\n</tr>\n<tr>\n<td><code>transportation.portOfOrigin</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Foreign airport where transportation began. <strong>Required for AIR.</strong></td>\n</tr>\n<tr>\n<td><code>transportation.portOfLading</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Port of lading of the freight. <strong>Required for TRUCK.</strong></td>\n</tr>\n<tr>\n<td><code>transportation.carrierName</code></td>\n<td>string</td>\n<td>required</td>\n<td>Transportation carrier name (airline).</td>\n</tr>\n<tr>\n<td><code>transportation.carrierCode</code></td>\n<td>string(6)</td>\n<td>required</td>\n<td>Transportation carrier code (IATA, 2 characters).</td>\n</tr>\n<tr>\n<td><code>transportation.lineNumber</code></td>\n<td>string(14)</td>\n<td>required</td>\n<td>Flight / voyage line number.</td>\n</tr>\n<tr>\n<td><code>transportation.firmsCode</code></td>\n<td>string(6)</td>\n<td>conditional</td>\n<td>Processing warehouse FIRMS code as shown on the master bill, if required.</td>\n</tr>\n<tr>\n<td><code>transportation.shippingDate</code></td>\n<td>string</td>\n<td>required</td>\n<td>Date of shipping.</td>\n</tr>\n<tr>\n<td><code>transportation.scheduledArrivalDate</code></td>\n<td>string</td>\n<td>required</td>\n<td>Date of scheduled arrival.</td>\n</tr>\n<tr>\n<td><code>transportation.terminalOperator</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Cargo terminal operator code if transported by air.</td>\n</tr>\n<tr>\n<td><code>containers[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Shipment containers.</td>\n</tr>\n<tr>\n<td><code>containers[].id</code></td>\n<td>string</td>\n<td>required</td>\n<td>Unique container identifier (barcode).</td>\n</tr>\n<tr>\n<td><code>containers[].weight</code></td>\n<td>object</td>\n<td>required</td>\n<td>Total container weight.</td>\n</tr>\n<tr>\n<td><code>containers[].weight.value</code></td>\n<td>number</td>\n<td>required</td>\n<td>Container gross weight value.</td>\n</tr>\n<tr>\n<td><code>containers[].weight.unit</code></td>\n<td>string</td>\n<td>required</td>\n<td>Weight unit: <code>\"K\"</code> – Kilograms, <code>\"L\"</code> – Pounds.</td>\n</tr>\n<tr>\n<td><code>packageIds[]</code></td>\n<td>string array</td>\n<td>required</td>\n<td>SafePackage package identifiers consolidated in this shipment.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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>Unique SafePackage shipment identifier.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","shipment","register"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"e5dfe06f-134d-4bd4-a375-7d5a62af4ece","name":"200 – Registered","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"SHP-EXT-2026-0045\",\n  \"masterBill\": {\n    \"prefix\": \"999\",\n    \"serialNumber\": \"12345675\"\n  },\n  \"originatorCode\": \"CODE_VALUE\",\n  \"invoiceNumber\": \"SHP-INV-2026-0045\",\n  \"entryType\": \"86\",\n  \"importer\": {\n    \"name\": \"Example Imports LLC\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\",\n    \"identifiers\": [\n      {\n        \"type\": \"IMPORTER_NUMBER\",\n        \"value\": \"12-3456789\"\n      }\n    ]\n  },\n  \"shipper\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\",\n    \"identifiers\": [\n      {\n        \"type\": \"DUNS\",\n        \"value\": \"123456789\"\n      }\n    ]\n  },\n  \"consignee\": {\n    \"name\": \"Example Imports LLC\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\",\n    \"identifiers\": [\n      {\n        \"type\": \"DUNS\",\n        \"value\": \"987654321\"\n      }\n    ]\n  },\n  \"transportation\": {\n    \"mode\": \"AIR\",\n    \"portOfEntry\": \"LAX\",\n    \"portOfOrigin\": \"SZX\",\n    \"carrierName\": \"Example Air Cargo\",\n    \"carrierCode\": \"XX\",\n    \"lineNumber\": \"XX1234\",\n    \"firmsCode\": \"FIRMS_CODE\",\n    \"shippingDate\": \"2026-10-05\",\n    \"scheduledArrivalDate\": \"2026-10-06\",\n    \"terminalOperator\": \"CODE_VALUE\"\n  },\n  \"containers\": [\n    {\n      \"id\": \"ULD-AKE12345XX\",\n      \"weight\": {\n        \"value\": 450.0,\n        \"unit\": \"K\"\n      }\n    }\n  ],\n  \"packageIds\": [\n    \"\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"SHP-91D2E0A4\"\n}"}],"_postman_id":"690ab41c-829d-4e86-be0f-23d1dd7e0378"}],"id":"f0bedf37-b8df-4686-9a89-3d731d053f1a","description":"<p>Registers a shipment (consolidation): a logical grouping of packages with common shipper, consignee and transportation information.</p>\n","_postman_id":"f0bedf37-b8df-4686-9a89-3d731d053f1a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Customs Filing","item":[{"name":"Submit Section 321 Pilot Data","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"8cbe3939-55ac-4e59-a82c-21f7f9093fc9"}}],"id":"1ce9b658-deaf-4565-b789-c158b51f8a41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"shipmentId\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/customs/s321/shipment","description":"<p>Submits Section 321 pilot data to customs for all packages in the shipment.</p>\n<p><strong>Notes</strong></p>\n<ul>\n<li>Generally there is no need to call this endpoint more than once per shipment, unless shipment or package data changed between calls.</li>\n<li>Once triggered, the endpoint will not accept further requests for the same shipment until the previous operation is complete.</li>\n<li><strong>This endpoint does not return a response body.</strong></li>\n</ul>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</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 returned by the shipment registration endpoint.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","customs","s321","shipment"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"0a30f03d-4607-498d-8fbd-53f682add551","name":"200 – Accepted (no body)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"shipmentId\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/customs/s321/shipment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"1ce9b658-deaf-4565-b789-c158b51f8a41"},{"name":"Verify Shipment","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"f95e2638-9e92-4198-8d04-9d6af9a5ecbc"}}],"id":"00d1ec8e-f766-4077-87dc-2f3c71101fe8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"shipmentId\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/shipment/verify","description":"<p>Verifies that the inbound shipment (consolidation) meets all criteria for the associated customs clearance benefits.</p>\n<p><strong>Timing:</strong> call at least <strong>one hour before departure</strong> from origin, and <strong>after</strong> Section 321 pilot data has been submitted. On success, a document (base64 image) is returned that should be printed and presented to CBP personnel on request.</p>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</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 returned by the shipment registration endpoint.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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 (entire shipment compliant), <code>2</code> Rejected (shipment not compliant).</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></td>\n<td>object</td>\n<td>conditional</td>\n<td>Rejection reason, if applicable.</td>\n</tr>\n<tr>\n<td><code>reason.code</code></td>\n<td>string</td>\n<td>required</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>required</td>\n<td>Short phrase describing the rejection reason.</td>\n</tr>\n<tr>\n<td><code>document</code></td>\n<td>object</td>\n<td>conditional</td>\n<td>Verification document, returned when status is <code>\"Accepted\"</code>.</td>\n</tr>\n<tr>\n<td><code>document.type</code></td>\n<td>string</td>\n<td>required</td>\n<td><code>\"PNG\"</code>, <code>\"JPEG\"</code> or <code>\"WEBM\"</code>.</td>\n</tr>\n<tr>\n<td><code>document.content</code></td>\n<td>base64 string</td>\n<td>required</td>\n<td>Document content. Print and present to CBP personnel on request.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","shipment","verify"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"6dc0096f-aaf1-48a3-8dd6-3a38263067a7","name":"200 – Accepted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"shipmentId\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"SHP-91D2E0A4\",\n  \"code\": 1,\n  \"status\": \"Accepted\",\n  \"document\": {\n    \"type\": \"PNG\",\n    \"content\": \"BASE64_ENCODED_PNG\"\n  }\n}"},{"id":"884e9ac8-7e07-44f4-a917-af1ed876702a","name":"200 – Rejected","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"shipmentId\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"SHP-91D2E0A4\",\n  \"code\": 2,\n  \"status\": \"Rejected\",\n  \"reason\": {\n    \"code\": \"RBD\",\n    \"description\": \"Bad or incomplete data\"\n  }\n}"}],"_postman_id":"00d1ec8e-f766-4077-87dc-2f3c71101fe8"}],"id":"b0430684-348b-4e88-9f2a-1507cfffc29a","description":"<p>Section 321 pilot data submission for a registered shipment, followed by pre-departure shipment verification (at least one hour before departure, after the Section 321 data has been submitted).</p>\n","_postman_id":"b0430684-348b-4e88-9f2a-1507cfffc29a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Content Audit","item":[{"name":"Submit Content Audit","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"1b178cad-277e-4f54-add4-4fae0a240a2c"}}],"id":"ea828e0f-5434-4786-a004-5e6eefe1af10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"packageId\": \"\",\n  \"externalId\": \"ORD-2026-000123\",\n  \"images\": [\n    \"BASE64_ENCODED_JPEG_IMAGE\",\n    \"BASE64_ENCODED_JPEG_IMAGE\"\n  ],\n  \"remark\": \"Contents match declaration.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/package/audit","description":"<p>Submits additional package information as images taken during a physical content audit. Use this when Package Screening returns <code>code</code> = 4 (<strong>Audit</strong>). At least two images per product must be provided along with a unique package identifier.</p>\n<h2 id=\"request-data-elements-object\">Request Data Elements (object)</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>Required</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 returned by the package screening endpoint.</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>required</td>\n<td>Client-side package identifier.</td>\n</tr>\n<tr>\n<td><code>images[]</code></td>\n<td>base64 string array</td>\n<td>required</td>\n<td>Two or more JPEG images clearly showing the parcel contents in good lighting. At least two images per individual product, with brand name, logo and/or product declaration clearly visible. Minimum 1024x768.</td>\n</tr>\n<tr>\n<td><code>remark</code></td>\n<td>string(100)</td>\n<td>optional</td>\n<td>Brief description of additional audit findings.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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-side 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 (package accepted), <code>2</code> Failed (return due to compliance violations), <code>3</code> Pending (hold the package until the audit yields Passed or Failed).</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":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","audit"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"58cd7328-6266-4116-bfac-762259a787a2","name":"200 – Passed","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"packageId\": \"\",\n  \"externalId\": \"ORD-2026-000123\",\n  \"images\": [\n    \"BASE64_ENCODED_JPEG_IMAGE\",\n    \"BASE64_ENCODED_JPEG_IMAGE\"\n  ],\n  \"remark\": \"Contents match declaration.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B79\",\n  \"externalId\": \"ORD-2026-000125\",\n  \"code\": 1,\n  \"status\": \"Passed\"\n}"},{"id":"9aaec32b-d2f2-469b-bb86-b4fb56833369","name":"200 – Pending","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"packageId\": \"\",\n  \"externalId\": \"ORD-2026-000123\",\n  \"images\": [\n    \"BASE64_ENCODED_JPEG_IMAGE\",\n    \"BASE64_ENCODED_JPEG_IMAGE\"\n  ],\n  \"remark\": \"Contents match declaration.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B79\",\n  \"externalId\": \"ORD-2026-000125\",\n  \"code\": 3,\n  \"status\": \"Pending\"\n}"}],"_postman_id":"ea828e0f-5434-4786-a004-5e6eefe1af10"}],"id":"f71a2121-8e16-4ca4-906a-5347f3624aad","description":"<p>Submits content-audit images for packages whose screening result was <strong>Audit</strong> (code 4).</p>\n","_postman_id":"f71a2121-8e16-4ca4-906a-5347f3624aad","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Tracking","item":[{"name":"Get Package Tracking – by packageId (route)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"5b29ab93-e629-4497-8a0d-631d4f43b187"}}],"id":"98125878-fe4c-4aeb-bcf1-e72ae92781a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":"https://sandbox.safepackage.com/v1/tracking/package/:packageId","description":"<p>Obtains the package tracking event history.</p>\n<p>The package can be identified either by <code>packageId</code> (as a route parameter <strong>or</strong> query parameter) or by <code>externalId</code> (query parameter). <code>externalId</code> is required if <code>packageId</code> is not provided.</p>\n<h2 id=\"request-route-parameters\">Request Route Parameters</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>Required</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=\"request-query-parameters\">Request Query Parameters</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>Required</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<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Client-side package identifier. Required if <code>packageId</code> is not provided.</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Defines how additional tracking data elements are formatted.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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>object array</td>\n<td>required</td>\n<td>Chronological package tracking events.</td>\n</tr>\n<tr>\n<td><code>events[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Standardized SafePackage package tracking event type (see table).</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 date/time when the event occurred.</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; elements depend on the event type (see table).</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"package-tracking-event-types\">Package tracking event types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event type</th>\n<th>Name</th>\n<th>Description</th>\n<th>Additional <code>data</code> elements</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>PICKED_UP</code></td>\n<td>Package Picked Up</td>\n<td>Picked up from the specified logistics provider.</td>\n<td><code>from</code> (req) – provider id, <code>unspecified:{identifier}</code></td>\n</tr>\n<tr>\n<td><code>HANDED_OVER</code></td>\n<td>Package Handed Over</td>\n<td>Handed over to the specified logistics provider.</td>\n<td><code>to</code> (req) – provider id, <code>bol:{identifier}</code> or <code>unspecified:{identifier}</code></td>\n</tr>\n<tr>\n<td><code>RECEIVED</code></td>\n<td>Package Received</td>\n<td>Received at the specified location.</td>\n<td><code>locationId</code> (req) – <code>location:{name}:{city}:{state}:{postal}:{country}</code></td>\n</tr>\n<tr>\n<td><code>DEPARTED</code></td>\n<td>Package Departed</td>\n<td>Departed the specified location.</td>\n<td><code>locationId</code> (req) – <code>location:{name}:{city}:{state}:{postal}:{country}</code></td>\n</tr>\n<tr>\n<td><code>UNLINKED</code></td>\n<td>Package Unlinked</td>\n<td>Removed from the specified container.</td>\n<td><code>containerId</code> (req)</td>\n</tr>\n<tr>\n<td><code>LINKED</code></td>\n<td>Package Linked</td>\n<td>Added to the specified container.</td>\n<td><code>containerId</code> (req)</td>\n</tr>\n<tr>\n<td><code>MANIFEST_SUBMITTED</code></td>\n<td>Package Manifest Submitted</td>\n<td>Manifest submitted to customs.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>MANIFEST_FAILED</code></td>\n<td>Package Manifest Failed</td>\n<td>Customs manifest submission failed.</td>\n<td><code>errorCode</code> (req), <code>errorMessage</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>MANIFEST_CANCELLED</code></td>\n<td>Package Manifest Cancelled</td>\n<td>Customs manifest submission cancelled.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>CLEARED</code></td>\n<td>Package Cleared</td>\n<td>Cleared customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>HELD</code></td>\n<td>Package Held</td>\n<td>Held by customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>HOLD_REMOVED</code></td>\n<td>Package Hold Removed</td>\n<td>Hold removed.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>SEIZED</code></td>\n<td>Package Seized</td>\n<td>Seized by customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>STATUS</code></td>\n<td>Package Customs Status</td>\n<td>New customs status received.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>STAGED_FOR_HANDOVER</code></td>\n<td>Package Staged for Handover</td>\n<td>Ready for departure or handover.</td>\n<td>None</td>\n</tr>\n<tr>\n<td><code>CONSOLIDATED</code></td>\n<td>Package Consolidated</td>\n<td>Assigned to a shipment.</td>\n<td><code>shipmentId</code> (req), <code>masterBillNumber</code> (req)</td>\n</tr>\n<tr>\n<td><code>DECONSOLIDATED</code></td>\n<td>Package Deconsolidated</td>\n<td>Removed from a shipment.</td>\n<td><code>shipmentId</code> (req), <code>masterBillNumber</code> (req)</td>\n</tr>\n<tr>\n<td><code>LOST</code></td>\n<td>Package Lost</td>\n<td>Lost, either by CBP or internally.</td>\n<td><code>reason</code> (req) – <code>C</code> = lost by CBP, <code>I</code> = lost internally</td>\n</tr>\n<tr>\n<td><code>ACAS_CANCELED</code></td>\n<td>Package ACAS Canceled</td>\n<td>Cargo screening submission cancelled.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_SUBMITTED</code></td>\n<td>Package Entry Submitted</td>\n<td>Entry submitted to customs.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_ACCEPTED</code></td>\n<td>Package Entry Accepted</td>\n<td>Entry accepted by customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_REJECTED</code></td>\n<td>Package Entry Rejected</td>\n<td>Entry rejected by customs.</td>\n<td><code>errorCode</code> (req), <code>errorMessage</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_STATUS</code></td>\n<td>Package Entry Status</td>\n<td>Entry status update from customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_UNDER_REVIEW</code></td>\n<td>Package Entry Under Review</td>\n<td>Entry under customs review or release suspended.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>BILL_MATCHED</code></td>\n<td>Package Bill Matched</td>\n<td>Bill of lading matched on the manifest.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>RELEASED</code></td>\n<td>Package Released</td>\n<td>CBP has released the cargo.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>CSOP_SUBMITTED</code></td>\n<td>Package CSOP Submitted</td>\n<td>CSOP data submitted.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_CLEARED</code></td>\n<td>Package PGA Cleared</td>\n<td>PGA {agencyCode} cleared – may proceed.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_REJECTED</code></td>\n<td>Package PGA Rejected</td>\n<td>PGA {agencyCode} data rejected.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_REVIEW</code></td>\n<td>Package PGA Under Review</td>\n<td>PGA {agencyCode} under review.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_STATUS</code></td>\n<td>Package PGA Status</td>\n<td>PGA {agencyCode} review status received.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","package",":packageId"],"host":["https://sandbox.safepackage.com"],"query":[{"disabled":true,"description":{"content":"<p>Optional. Additional tracking data format.</p>\n","type":"text/plain"},"key":"format","value":""}],"variable":[{"id":"cee604d0-489d-4534-be03-d85304117e3f","description":{"content":"<p>SafePackage package identifier.</p>\n","type":"text/plain"},"type":"any","value":"","key":"packageId"}]}},"response":[{"id":"988a7e84-669a-476d-a505-94d4cbd73511","name":"200 – Events","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":{"raw":"https://sandbox.safepackage.com/v1/tracking/package/:packageId","host":["https://sandbox.safepackage.com"],"path":["v1","tracking","package",":packageId"],"query":[{"key":"format","value":"","description":"Optional. Additional tracking data format.","disabled":true}],"variable":[{"key":"packageId","value":"","description":"SafePackage package identifier."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"PKG-4C8E1B77\",\n  \"events\": [\n    {\n      \"type\": \"RECEIVED\",\n      \"description\": \"Package Received\",\n      \"time\": \"2026-10-05T03:12:44Z\",\n      \"data\": {\n        \"locationId\": \"location:SZX Hub:Shenzhen:Guangdong:518000:CHN\"\n      }\n    },\n    {\n      \"type\": \"CONSOLIDATED\",\n      \"description\": \"Package Consolidated\",\n      \"time\": \"2026-10-05T06:40:10Z\",\n      \"data\": {\n        \"shipmentId\": \"SHP-91D2E0A4\",\n        \"masterBillNumber\": \"999-12345675\"\n      }\n    },\n    {\n      \"type\": \"MANIFEST_SUBMITTED\",\n      \"description\": \"Package Manifest Submitted\",\n      \"time\": \"2026-10-05T07:02:31Z\"\n    },\n    {\n      \"type\": \"CLEARED\",\n      \"description\": \"Package Cleared\",\n      \"time\": \"2026-10-06T15:20:00Z\",\n      \"data\": {\n        \"status\": \"CUSTOMS_STATUS_CODE\"\n      }\n    }\n  ]\n}"}],"_postman_id":"98125878-fe4c-4aeb-bcf1-e72ae92781a1"},{"name":"Get Package Tracking – by externalId (query param)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"f8ece9c2-8f7b-4e89-9166-c4c5117a680c"}}],"id":"3b7bc524-7694-4479-ba5f-be4e3d2b2221","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":"https://sandbox.safepackage.com/v1/tracking/package?externalId=ORD-2026-000123","description":"<p>Obtains the package tracking event history.</p>\n<p>The package can be identified either by <code>packageId</code> (as a route parameter <strong>or</strong> query parameter) or by <code>externalId</code> (query parameter). <code>externalId</code> is required if <code>packageId</code> is not provided.</p>\n<h2 id=\"request-route-parameters\">Request Route Parameters</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>Required</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=\"request-query-parameters\">Request Query Parameters</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>Required</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<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Client-side package identifier. Required if <code>packageId</code> is not provided.</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Defines how additional tracking data elements are formatted.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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>object array</td>\n<td>required</td>\n<td>Chronological package tracking events.</td>\n</tr>\n<tr>\n<td><code>events[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Standardized SafePackage package tracking event type (see table).</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 date/time when the event occurred.</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; elements depend on the event type (see table).</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"package-tracking-event-types\">Package tracking event types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event type</th>\n<th>Name</th>\n<th>Description</th>\n<th>Additional <code>data</code> elements</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>PICKED_UP</code></td>\n<td>Package Picked Up</td>\n<td>Picked up from the specified logistics provider.</td>\n<td><code>from</code> (req) – provider id, <code>unspecified:{identifier}</code></td>\n</tr>\n<tr>\n<td><code>HANDED_OVER</code></td>\n<td>Package Handed Over</td>\n<td>Handed over to the specified logistics provider.</td>\n<td><code>to</code> (req) – provider id, <code>bol:{identifier}</code> or <code>unspecified:{identifier}</code></td>\n</tr>\n<tr>\n<td><code>RECEIVED</code></td>\n<td>Package Received</td>\n<td>Received at the specified location.</td>\n<td><code>locationId</code> (req) – <code>location:{name}:{city}:{state}:{postal}:{country}</code></td>\n</tr>\n<tr>\n<td><code>DEPARTED</code></td>\n<td>Package Departed</td>\n<td>Departed the specified location.</td>\n<td><code>locationId</code> (req) – <code>location:{name}:{city}:{state}:{postal}:{country}</code></td>\n</tr>\n<tr>\n<td><code>UNLINKED</code></td>\n<td>Package Unlinked</td>\n<td>Removed from the specified container.</td>\n<td><code>containerId</code> (req)</td>\n</tr>\n<tr>\n<td><code>LINKED</code></td>\n<td>Package Linked</td>\n<td>Added to the specified container.</td>\n<td><code>containerId</code> (req)</td>\n</tr>\n<tr>\n<td><code>MANIFEST_SUBMITTED</code></td>\n<td>Package Manifest Submitted</td>\n<td>Manifest submitted to customs.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>MANIFEST_FAILED</code></td>\n<td>Package Manifest Failed</td>\n<td>Customs manifest submission failed.</td>\n<td><code>errorCode</code> (req), <code>errorMessage</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>MANIFEST_CANCELLED</code></td>\n<td>Package Manifest Cancelled</td>\n<td>Customs manifest submission cancelled.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>CLEARED</code></td>\n<td>Package Cleared</td>\n<td>Cleared customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>HELD</code></td>\n<td>Package Held</td>\n<td>Held by customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>HOLD_REMOVED</code></td>\n<td>Package Hold Removed</td>\n<td>Hold removed.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>SEIZED</code></td>\n<td>Package Seized</td>\n<td>Seized by customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>STATUS</code></td>\n<td>Package Customs Status</td>\n<td>New customs status received.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>STAGED_FOR_HANDOVER</code></td>\n<td>Package Staged for Handover</td>\n<td>Ready for departure or handover.</td>\n<td>None</td>\n</tr>\n<tr>\n<td><code>CONSOLIDATED</code></td>\n<td>Package Consolidated</td>\n<td>Assigned to a shipment.</td>\n<td><code>shipmentId</code> (req), <code>masterBillNumber</code> (req)</td>\n</tr>\n<tr>\n<td><code>DECONSOLIDATED</code></td>\n<td>Package Deconsolidated</td>\n<td>Removed from a shipment.</td>\n<td><code>shipmentId</code> (req), <code>masterBillNumber</code> (req)</td>\n</tr>\n<tr>\n<td><code>LOST</code></td>\n<td>Package Lost</td>\n<td>Lost, either by CBP or internally.</td>\n<td><code>reason</code> (req) – <code>C</code> = lost by CBP, <code>I</code> = lost internally</td>\n</tr>\n<tr>\n<td><code>ACAS_CANCELED</code></td>\n<td>Package ACAS Canceled</td>\n<td>Cargo screening submission cancelled.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_SUBMITTED</code></td>\n<td>Package Entry Submitted</td>\n<td>Entry submitted to customs.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_ACCEPTED</code></td>\n<td>Package Entry Accepted</td>\n<td>Entry accepted by customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_REJECTED</code></td>\n<td>Package Entry Rejected</td>\n<td>Entry rejected by customs.</td>\n<td><code>errorCode</code> (req), <code>errorMessage</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_STATUS</code></td>\n<td>Package Entry Status</td>\n<td>Entry status update from customs.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>ENTRY_UNDER_REVIEW</code></td>\n<td>Package Entry Under Review</td>\n<td>Entry under customs review or release suspended.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>BILL_MATCHED</code></td>\n<td>Package Bill Matched</td>\n<td>Bill of lading matched on the manifest.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>RELEASED</code></td>\n<td>Package Released</td>\n<td>CBP has released the cargo.</td>\n<td><code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>CSOP_SUBMITTED</code></td>\n<td>Package CSOP Submitted</td>\n<td>CSOP data submitted.</td>\n<td><code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_CLEARED</code></td>\n<td>Package PGA Cleared</td>\n<td>PGA {agencyCode} cleared – may proceed.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_REJECTED</code></td>\n<td>Package PGA Rejected</td>\n<td>PGA {agencyCode} data rejected.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_REVIEW</code></td>\n<td>Package PGA Under Review</td>\n<td>PGA {agencyCode} under review.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n<tr>\n<td><code>PGA_STATUS</code></td>\n<td>Package PGA Status</td>\n<td>PGA {agencyCode} review status received.</td>\n<td><code>agencyCode</code> (req), <code>productQuantifierId</code> (req), <code>status</code> (req), <code>customsMessageReference</code> (opt)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","package"],"host":["https://sandbox.safepackage.com"],"query":[{"description":{"content":"<p>Client-side package identifier.</p>\n","type":"text/plain"},"key":"externalId","value":"ORD-2026-000123"},{"disabled":true,"description":{"content":"<p>Optional. Additional tracking data format.</p>\n","type":"text/plain"},"key":"format","value":""}],"variable":[]}},"response":[{"id":"729fe122-cb07-4338-ae8b-c53605124b40","name":"200 – Events","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":{"raw":"https://sandbox.safepackage.com/v1/tracking/package?externalId=ORD-2026-000123","host":["https://sandbox.safepackage.com"],"path":["v1","tracking","package"],"query":[{"key":"externalId","value":"ORD-2026-000123","description":"Client-side package identifier."},{"key":"format","value":"","description":"Optional. Additional tracking data format.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"packageId\": \"PKG-4C8E1B77\",\n  \"events\": [\n    {\n      \"type\": \"RECEIVED\",\n      \"description\": \"Package Received\",\n      \"time\": \"2026-10-05T03:12:44Z\",\n      \"data\": {\n        \"locationId\": \"location:SZX Hub:Shenzhen:Guangdong:518000:CHN\"\n      }\n    },\n    {\n      \"type\": \"CONSOLIDATED\",\n      \"description\": \"Package Consolidated\",\n      \"time\": \"2026-10-05T06:40:10Z\",\n      \"data\": {\n        \"shipmentId\": \"SHP-91D2E0A4\",\n        \"masterBillNumber\": \"999-12345675\"\n      }\n    },\n    {\n      \"type\": \"MANIFEST_SUBMITTED\",\n      \"description\": \"Package Manifest Submitted\",\n      \"time\": \"2026-10-05T07:02:31Z\"\n    },\n    {\n      \"type\": \"CLEARED\",\n      \"description\": \"Package Cleared\",\n      \"time\": \"2026-10-06T15:20:00Z\",\n      \"data\": {\n        \"status\": \"CUSTOMS_STATUS_CODE\"\n      }\n    }\n  ]\n}"}],"_postman_id":"3b7bc524-7694-4479-ba5f-be4e3d2b2221"},{"name":"Get Shipment Tracking – by shipmentId (route)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"0351b3da-5dea-4613-83c6-d8fcd3a9b17e"}}],"id":"c9c86de4-efa1-4deb-87b0-af6748af8d1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":"https://sandbox.safepackage.com/v1/tracking/shipment/:shipmentId","description":"<p>Obtains the shipment tracking event history.</p>\n<p>The shipment can be identified either by <code>shipmentId</code> (as a route parameter <strong>or</strong> query parameter) or by <code>externalId</code> (query parameter). <code>externalId</code> is required if <code>shipmentId</code> is not provided.</p>\n<h2 id=\"request-route-parameters\">Request Route Parameters</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>Required</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=\"request-query-parameters\">Request Query Parameters</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>Required</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<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Client-side shipment identifier. Required if <code>shipmentId</code> is not provided.</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Defines how additional tracking data elements are formatted.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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>object array</td>\n<td>required</td>\n<td>Chronological shipment tracking events.</td>\n</tr>\n<tr>\n<td><code>events[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Standardized SafePackage shipment tracking event type (see table).</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 date/time when the event occurred.</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; elements depend on the event type (see table).</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"shipment-tracking-event-types\">Shipment tracking event types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event type</th>\n<th>Name</th>\n<th>Description</th>\n<th>Additional <code>data</code> elements</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>MASTER_HELD</code></td>\n<td>Shipment Held</td>\n<td>Held by customs.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>MASTER_HOLD_REMOVED</code></td>\n<td>Shipment Hold Removed</td>\n<td>Hold removed.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>LOCAL_TRANSFER_AUTHORIZED</code></td>\n<td>Shipment Local Transfer Authorized</td>\n<td>Local transfer authorized.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>MASTER_STATUS</code></td>\n<td>Shipment Customs Status</td>\n<td>New customs status received.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>PICKUP_REQUESTED</code></td>\n<td>Shipment Pickup Requested</td>\n<td>Shipment 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":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","shipment",":shipmentId"],"host":["https://sandbox.safepackage.com"],"query":[{"disabled":true,"description":{"content":"<p>Optional. Additional tracking data format.</p>\n","type":"text/plain"},"key":"format","value":""}],"variable":[{"id":"b4c56fef-45c1-4358-a952-a372d3003260","description":{"content":"<p>SafePackage shipment identifier.</p>\n","type":"text/plain"},"type":"any","value":"","key":"shipmentId"}]}},"response":[{"id":"976816dc-c890-4242-a614-50f96d6b972c","name":"200 – Events","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":{"raw":"https://sandbox.safepackage.com/v1/tracking/shipment/:shipmentId","host":["https://sandbox.safepackage.com"],"path":["v1","tracking","shipment",":shipmentId"],"query":[{"key":"format","value":"","description":"Optional. Additional tracking data format.","disabled":true}],"variable":[{"key":"shipmentId","value":"","description":"SafePackage shipment identifier."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"shipmentId\": \"SHP-91D2E0A4\",\n  \"events\": [\n    {\n      \"type\": \"MASTER_STATUS\",\n      \"description\": \"Shipment Customs Status\",\n      \"time\": \"2026-10-06T14:05:00Z\",\n      \"data\": {\n        \"status\": \"CUSTOMS_STATUS_CODE\"\n      }\n    },\n    {\n      \"type\": \"PICKUP_REQUESTED\",\n      \"description\": \"Shipment Pickup Requested\",\n      \"time\": \"2026-10-06T16:30:00Z\"\n    }\n  ]\n}"}],"_postman_id":"c9c86de4-efa1-4deb-87b0-af6748af8d1f"},{"name":"Get Shipment Tracking – by externalId (query param)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"b479b60a-a21f-45ad-af21-cdc9485200d5"}}],"id":"d414325e-ebfb-4b50-8ef6-d6f818f8e07c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":"https://sandbox.safepackage.com/v1/tracking/shipment?externalId=SHP-EXT-2026-0045","description":"<p>Obtains the shipment tracking event history.</p>\n<p>The shipment can be identified either by <code>shipmentId</code> (as a route parameter <strong>or</strong> query parameter) or by <code>externalId</code> (query parameter). <code>externalId</code> is required if <code>shipmentId</code> is not provided.</p>\n<h2 id=\"request-route-parameters\">Request Route Parameters</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>Required</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=\"request-query-parameters\">Request Query Parameters</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>Required</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<tr>\n<td><code>externalId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Client-side shipment identifier. Required if <code>shipmentId</code> is not provided.</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Defines how additional tracking data elements are formatted.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-data-elements-object\">Response Data Elements (object)</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>Required</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>object array</td>\n<td>required</td>\n<td>Chronological shipment tracking events.</td>\n</tr>\n<tr>\n<td><code>events[].type</code></td>\n<td>string</td>\n<td>required</td>\n<td>Standardized SafePackage shipment tracking event type (see table).</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 date/time when the event occurred.</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; elements depend on the event type (see table).</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"shipment-tracking-event-types\">Shipment tracking event types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event type</th>\n<th>Name</th>\n<th>Description</th>\n<th>Additional <code>data</code> elements</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>MASTER_HELD</code></td>\n<td>Shipment Held</td>\n<td>Held by customs.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>MASTER_HOLD_REMOVED</code></td>\n<td>Shipment Hold Removed</td>\n<td>Hold removed.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>LOCAL_TRANSFER_AUTHORIZED</code></td>\n<td>Shipment Local Transfer Authorized</td>\n<td>Local transfer authorized.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>MASTER_STATUS</code></td>\n<td>Shipment Customs Status</td>\n<td>New customs status received.</td>\n<td><code>status</code> (req)</td>\n</tr>\n<tr>\n<td><code>PICKUP_REQUESTED</code></td>\n<td>Shipment Pickup Requested</td>\n<td>Shipment 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":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","tracking","shipment"],"host":["https://sandbox.safepackage.com"],"query":[{"description":{"content":"<p>Client-side shipment identifier.</p>\n","type":"text/plain"},"key":"externalId","value":"SHP-EXT-2026-0045"},{"disabled":true,"description":{"content":"<p>Optional. Additional tracking data format.</p>\n","type":"text/plain"},"key":"format","value":""}],"variable":[]}},"response":[{"id":"c4d99f93-0026-4850-af88-560e5ecd24c7","name":"200 – Events","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":{"raw":"https://sandbox.safepackage.com/v1/tracking/shipment?externalId=SHP-EXT-2026-0045","host":["https://sandbox.safepackage.com"],"path":["v1","tracking","shipment"],"query":[{"key":"externalId","value":"SHP-EXT-2026-0045","description":"Client-side shipment identifier."},{"key":"format","value":"","description":"Optional. Additional tracking data format.","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"shipmentId\": \"SHP-91D2E0A4\",\n  \"events\": [\n    {\n      \"type\": \"MASTER_STATUS\",\n      \"description\": \"Shipment Customs Status\",\n      \"time\": \"2026-10-06T14:05:00Z\",\n      \"data\": {\n        \"status\": \"CUSTOMS_STATUS_CODE\"\n      }\n    },\n    {\n      \"type\": \"PICKUP_REQUESTED\",\n      \"description\": \"Shipment Pickup Requested\",\n      \"time\": \"2026-10-06T16:30:00Z\"\n    }\n  ]\n}"}],"_postman_id":"d414325e-ebfb-4b50-8ef6-d6f818f8e07c"}],"id":"4100b0f4-869e-4ab3-9bff-54dbff7e4a93","description":"<p>Package and shipment tracking event history (Tracking Supplement). Each endpoint accepts either the SafePackage identifier in the route, or your own <code>externalId</code> as a query parameter. Event types and their additional <code>data</code> elements are listed on each request.</p>\n","_postman_id":"4100b0f4-869e-4ab3-9bff-54dbff7e4a93","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"PGA Reference","item":[{"name":"PGA Schema – APHIS APL (Lacey Act)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });","let json; try { json = pm.response.json(); } catch (e) { json = {}; }","if (json && json.packageId) {","    pm.collectionVariables.set(\"packageId\", json.packageId);","    console.log(\"Saved packageId =\", json.packageId);","}"],"id":"e7b19eb2-f6e6-4f6b-b9e8-fa67107cb2cb"}}],"id":"40c572d9-64cd-4a1c-826a-179b122db79d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Bamboo cutting board\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"4419900000\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ],\n      \"pga\": [\n        {\n          \"agency\": \"APHIS\",\n          \"program\": {\n            \"code\": \"APL\",\n            \"entities\": [\n              {\n                \"name\": \"Example Imports LLC\",\n                \"email\": \"compliance@example.com\",\n                \"phone\": \"+1 213 555 0100\"\n              }\n            ],\n            \"products\": [\n              {\n                \"codeQualifier\": \"CODE_QUALIFIER\",\n                \"codeNumber\": \"CODE_VALUE\",\n                \"elements\": [\n                  {\n                    \"name\": \"Bamboo\",\n                    \"genus\": \"Phyllostachys\",\n                    \"species\": \"edulis\",\n                    \"quantity\": 0.2,\n                    \"unit\": \"KG\",\n                    \"country\": \"CN\"\n                  }\n                ]\n              }\n            ],\n            \"certifications\": [\n              {\n                \"entityRoleCode\": \"IM\",\n                \"declarationCode\": \"AP6\",\n                \"date\": \"2026-10-05\"\n              }\n            ]\n          }\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/package/submit","description":"<p>Example <strong>Package Data Submission</strong> (<code>POST /v1/package/submit</code>) carrying a <strong>APHIS – APL (Lacey Act)</strong> PGA data set in <code>products[].pga[]</code>.</p>\n<p>The same <code>pga[]</code> object can be placed in <code>products[].items[].pga[]</code> of a <strong>Package Screening</strong> request.</p>\n<h2 id=\"pga-element--aphis--apl-lacey-act\"><code>pga[]</code> element – APHIS – APL (Lacey Act)</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>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>agency</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>Must be <code>\"APHIS\"</code>.</td>\n</tr>\n<tr>\n<td><code>program</code></td>\n<td>object</td>\n<td>required</td>\n<td>Agency-specific program data.</td>\n</tr>\n<tr>\n<td><code>program.code</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>Must be <code>\"APL\"</code> (Lacey Act).</td>\n</tr>\n<tr>\n<td><code>program.entities[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Entity information (PG19, PG20).</td>\n</tr>\n<tr>\n<td><code>program.entities[].name</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Entity name.</td>\n</tr>\n<tr>\n<td><code>program.entities[].email</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Entity email.</td>\n</tr>\n<tr>\n<td><code>program.entities[].phone</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Entity phone.</td>\n</tr>\n<tr>\n<td><code>program.products[]</code></td>\n<td>object array</td>\n<td>required</td>\n<td>Product or component information (PG02).</td>\n</tr>\n<tr>\n<td><code>program.products[].codeQualifier</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Product code qualifier, if applicable.</td>\n</tr>\n<tr>\n<td><code>program.products[].codeNumber</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Product code number, if applicable.</td>\n</tr>\n<tr>\n<td><code>program.products[].elements[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Constituent elements (PG04, PG05, PG06).</td>\n</tr>\n<tr>\n<td><code>program.products[].elements[].name</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Constituent element name.</td>\n</tr>\n<tr>\n<td><code>program.products[].elements[].species</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Scientific species name.</td>\n</tr>\n<tr>\n<td><code>program.products[].elements[].genus</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Scientific genus name.</td>\n</tr>\n<tr>\n<td><code>program.products[].elements[].quantity</code></td>\n<td>number</td>\n<td>conditional</td>\n<td>Constituent element quantity.</td>\n</tr>\n<tr>\n<td><code>program.products[].elements[].unit</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Unit of measure (CE).</td>\n</tr>\n<tr>\n<td><code>program.products[].elements[].country</code></td>\n<td>string(2)</td>\n<td>conditional</td>\n<td>ISO2 country code.</td>\n</tr>\n<tr>\n<td><code>program.certifications[]</code></td>\n<td>object array</td>\n<td>optional</td>\n<td>Certification declaration (PG22).</td>\n</tr>\n<tr>\n<td><code>program.certifications[].entityRoleCode</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Entity role code (IM).</td>\n</tr>\n<tr>\n<td><code>program.certifications[].declarationCode</code></td>\n<td>string</td>\n<td>optional</td>\n<td>Declaration code (AP6).</td>\n</tr>\n<tr>\n<td><code>program.certifications[].date</code></td>\n<td>date</td>\n<td>conditional</td>\n<td>Certification date signature.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","submit"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"da9e54eb-b952-4784-adce-0a47b202a9b4","name":"200 – Submitted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Bamboo cutting board\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"4419900000\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ],\n      \"pga\": [\n        {\n          \"agency\": \"APHIS\",\n          \"program\": {\n            \"code\": \"APL\",\n            \"entities\": [\n              {\n                \"name\": \"Example Imports LLC\",\n                \"email\": \"compliance@example.com\",\n                \"phone\": \"+1 213 555 0100\"\n              }\n            ],\n            \"products\": [\n              {\n                \"codeQualifier\": \"CODE_QUALIFIER\",\n                \"codeNumber\": \"CODE_VALUE\",\n                \"elements\": [\n                  {\n                    \"name\": \"Bamboo\",\n                    \"genus\": \"Phyllostachys\",\n                    \"species\": \"edulis\",\n                    \"quantity\": 0.2,\n                    \"unit\": \"KG\",\n                    \"country\": \"CN\"\n                  }\n                ]\n              }\n            ],\n            \"certifications\": [\n              {\n                \"entityRoleCode\": \"IM\",\n                \"declarationCode\": \"AP6\",\n                \"date\": \"2026-10-05\"\n              }\n            ]\n          }\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B81\",\n  \"externalId\": \"ORD-2026-000126\"\n}"}],"_postman_id":"40c572d9-64cd-4a1c-826a-179b122db79d"},{"name":"PGA Schema – FDA (All Programs)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });","let json; try { json = pm.response.json(); } catch (e) { json = {}; }","if (json && json.packageId) {","    pm.collectionVariables.set(\"packageId\", json.packageId);","    console.log(\"Saved packageId =\", json.packageId);","}"],"id":"c129747e-bfa6-4710-ae54-5c05ca916dbf"}}],"id":"e4d5359e-99e4-425c-9c21-67a36c93abe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Face moisturizing cream\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"3304990000\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ],\n      \"pga\": [\n        {\n          \"agency\": \"FDA\",\n          \"program\": {\n            \"code\": \"COS\",\n            \"productCode\": \"FDA_PRODUCT_CODE\",\n            \"processingCode\": \"CODE_VALUE\",\n            \"intendedUseCode\": \"CODE_VALUE\",\n            \"arrival\": \"2026-10-06T14:00:00Z\"\n          }\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/package/submit","description":"<p>Example <strong>Package Data Submission</strong> (<code>POST /v1/package/submit</code>) carrying a <strong>FDA – All Programs</strong> PGA data set in <code>products[].pga[]</code>.</p>\n<p>The same <code>pga[]</code> object can be placed in <code>products[].items[].pga[]</code> of a <strong>Package Screening</strong> request.</p>\n<p>The example uses <code>COS</code> (Cosmetics); switch <code>program.code</code> to any other FDA program code as needed.</p>\n<h2 id=\"pga-element--fda--all-programs\"><code>pga[]</code> element – FDA – All Programs</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>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>agency</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>Must be <code>\"FDA\"</code>.</td>\n</tr>\n<tr>\n<td><code>program</code></td>\n<td>object</td>\n<td>required</td>\n<td>Agency-specific program data.</td>\n</tr>\n<tr>\n<td><code>program.code</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>One of <code>\"BIO\"</code>, <code>\"COS\"</code>, <code>\"DEV\"</code>, <code>\"DRU\"</code>, <code>\"FOO\"</code>, <code>\"RAD\"</code>, <code>\"TOB\"</code>, <code>\"VME\"</code>.</td>\n</tr>\n<tr>\n<td><code>program.productCode</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>FDA product code.</td>\n</tr>\n<tr>\n<td><code>program.processingCode</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>FDA processing code.</td>\n</tr>\n<tr>\n<td><code>program.intendedUseCode</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>FDA intended use code.</td>\n</tr>\n<tr>\n<td><code>program.arrival</code></td>\n<td>date</td>\n<td>conditional</td>\n<td>Arrival date and time.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","submit"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"a7bffcfc-a705-47e1-8452-313bb8f4b73b","name":"200 – Submitted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Face moisturizing cream\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"3304990000\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ],\n      \"pga\": [\n        {\n          \"agency\": \"FDA\",\n          \"program\": {\n            \"code\": \"COS\",\n            \"productCode\": \"FDA_PRODUCT_CODE\",\n            \"processingCode\": \"CODE_VALUE\",\n            \"intendedUseCode\": \"CODE_VALUE\",\n            \"arrival\": \"2026-10-06T14:00:00Z\"\n          }\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B81\",\n  \"externalId\": \"ORD-2026-000126\"\n}"}],"_postman_id":"e4d5359e-99e4-425c-9c21-67a36c93abe1"},{"name":"PGA Schema – CPSC CPS (Product Safety)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });","let json; try { json = pm.response.json(); } catch (e) { json = {}; }","if (json && json.packageId) {","    pm.collectionVariables.set(\"packageId\", json.packageId);","    console.log(\"Saved packageId =\", json.packageId);","}"],"id":"5597331f-a754-4794-aad7-c7addd77a6b7"}}],"id":"ed8ac7dd-a54d-4f6b-b23f-0abfa4e4f219","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Children's wooden puzzle toy\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"9503000073\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ],\n      \"pga\": [\n        {\n          \"agency\": \"CPSC\",\n          \"program\": {\n            \"code\": \"CPS\",\n            \"commercialDescription\": \"Children's wooden puzzle toy\",\n            \"intendedUseCode\": \"000.000\",\n            \"agencyProcessingCode\": \"REF\",\n            \"productId\": \"CPSC_PRODUCT_ID\",\n            \"versionId\": \"CPSC_VERSION_ID\",\n            \"certifierId\": \"CPSC_CERTIFIER_ID\"\n          }\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.safepackage.com/v1/package/submit","description":"<p>Example <strong>Package Data Submission</strong> (<code>POST /v1/package/submit</code>) carrying a <strong>CPSC – CPS (Product Safety)</strong> PGA data set in <code>products[].pga[]</code>.</p>\n<p>The same <code>pga[]</code> object can be placed in <code>products[].items[].pga[]</code> of a <strong>Package Screening</strong> request.</p>\n<p><strong>Rule:</strong> provide either <code>disclaim</code> (<code>\"A\"</code>/<code>\"B\"</code>) <strong>or</strong> <code>agencyProcessingCode</code> = <code>\"REF\"</code> together with <code>productId</code>, <code>versionId</code> and <code>certifierId</code>. The example uses the <code>REF</code> path.</p>\n<h2 id=\"pga-element--cpsc--cps-product-safety\"><code>pga[]</code> element – CPSC – CPS (Product Safety)</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>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>agency</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>Must be <code>\"CPSC\"</code>.</td>\n</tr>\n<tr>\n<td><code>program</code></td>\n<td>object</td>\n<td>required</td>\n<td>Agency-specific program data.</td>\n</tr>\n<tr>\n<td><code>program.code</code></td>\n<td>string(5)</td>\n<td>required</td>\n<td>Must be <code>\"CPS\"</code>.</td>\n</tr>\n<tr>\n<td><code>program.commercialDescription</code></td>\n<td>string(70)</td>\n<td>required</td>\n<td>Product or component commercial description.</td>\n</tr>\n<tr>\n<td><code>program.disclaim</code></td>\n<td>string</td>\n<td>conditional</td>\n<td><code>\"A\"</code>, <code>\"B\"</code>, or omitted. If omitted, <code>agencyProcessingCode</code> must be provided.</td>\n</tr>\n<tr>\n<td><code>program.intendedUseCode</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Format <code>\"000.000\"</code>. See CBP ACE Intended Use Codes specification.</td>\n</tr>\n<tr>\n<td><code>program.intendedUseDescription</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Required if <code>intendedUseCode</code> is <code>\"980.000\"</code>.</td>\n</tr>\n<tr>\n<td><code>program.agencyProcessingCode</code></td>\n<td>string</td>\n<td>conditional</td>\n<td><code>\"REF\"</code> or omitted. If omitted, <code>disclaim</code> must be provided.</td>\n</tr>\n<tr>\n<td><code>program.productId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>CPSC product identifier. Required if <code>agencyProcessingCode</code> = <code>\"REF\"</code>.</td>\n</tr>\n<tr>\n<td><code>program.versionId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>CPSC version identifier. Required if <code>agencyProcessingCode</code> = <code>\"REF\"</code>.</td>\n</tr>\n<tr>\n<td><code>program.certifierId</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>CPSC certifier identifier. Required if <code>agencyProcessingCode</code> = <code>\"REF\"</code>.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","package","submit"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"11593f77-5306-494e-8609-4cfce6077df7","name":"200 – Submitted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"body":{"mode":"raw","raw":"{\n  \"externalId\": \"ORD-2026-000123\",\n  \"platformId\": \"\",\n  \"sellerId\": \"store-8842\",\n  \"exportCountry\": \"CHN\",\n  \"destinationCountry\": \"USA\",\n  \"houseBillNumber\": \"HB0000012345\",\n  \"barcode\": \"9400100000000000000000\",\n  \"invoiceNumber\": \"INV-2026-000123\",\n  \"group\": {\n    \"id\": \"GRP-20261005-01\",\n    \"ordinal\": 1\n  },\n  \"carrierId\": \"usps\",\n  \"weight\": {\n    \"value\": 0.45,\n    \"unit\": \"K\"\n  },\n  \"declaredValue\": 9.5,\n  \"from\": {\n    \"name\": \"Shenzhen Example Trading Co.\",\n    \"line1\": \"88 Nanshan Ave\",\n    \"line2\": \"Floor 5\",\n    \"city\": \"Shenzhen\",\n    \"state\": \"Guangdong\",\n    \"postalCode\": \"518000\",\n    \"country\": \"CHN\",\n    \"phone\": \"+86 755 0000 0000\",\n    \"email\": \"ops@example.cn\"\n  },\n  \"to\": {\n    \"name\": \"Jane Doe\",\n    \"line1\": \"123 Main St\",\n    \"line2\": \"Apt 4B\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"postalCode\": \"90012\",\n    \"country\": \"USA\",\n    \"phone\": \"+1 213 555 0100\",\n    \"email\": \"jane@example.com\"\n  },\n  \"products\": [\n    {\n      \"quantity\": 1,\n      \"declaredValue\": 9.5,\n      \"declaredName\": \"Children's wooden puzzle toy\",\n      \"originCountry\": \"CHN\",\n      \"mid\": \"CNDONEXA12DON\",\n      \"manufacturer\": {\n        \"name\": \"Dongguan Example Manufacturing Ltd.\",\n        \"line1\": \"12 Industrial Rd\",\n        \"city\": \"Dongguan\",\n        \"state\": \"Guangdong\",\n        \"postalCode\": \"523000\",\n        \"country\": \"CHN\"\n      },\n      \"url\": \"https://www.example-marketplace.com/item/SKU-100234\",\n      \"sku\": \"SKU-100234\",\n      \"weight\": {\n        \"value\": 0.4,\n        \"unit\": \"K\"\n      },\n      \"tariffStack\": [\n        {\n          \"hts\": \"9503000073\",\n          \"value\": 9.5,\n          \"quantities\": [\n            {\n              \"unit\": \"NO\",\n              \"quantity\": 1\n            }\n          ]\n        }\n      ],\n      \"pga\": [\n        {\n          \"agency\": \"CPSC\",\n          \"program\": {\n            \"code\": \"CPS\",\n            \"commercialDescription\": \"Children's wooden puzzle toy\",\n            \"intendedUseCode\": \"000.000\",\n            \"agencyProcessingCode\": \"REF\",\n            \"productId\": \"CPSC_PRODUCT_ID\",\n            \"versionId\": \"CPSC_VERSION_ID\",\n            \"certifierId\": \"CPSC_CERTIFIER_ID\"\n          }\n        }\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://sandbox.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\": \"PKG-4C8E1B81\",\n  \"externalId\": \"ORD-2026-000126\"\n}"}],"_postman_id":"ed8ac7dd-a54d-4f6b-b23f-0abfa4e4f219"}],"id":"82f15650-9dc5-416a-90b1-febe551e50e6","description":"<p>Partner Government Agency (PGA) data sets are supplied in the <code>pga[]</code> array of each customs line item:</p>\n<ul>\n<li><strong>Package Screening:</strong> <code>products[].items[].pga[]</code></li>\n<li><strong>Package Data Submission:</strong> <code>products[].pga[]</code></li>\n</ul>\n<p>Each element has an <code>agency</code> code and a <code>program</code> object whose <code>code</code> selects the program; the remaining <code>program</code> fields depend on the program code. The requests in this folder are ready-to-edit <strong>Package Data Submission</strong> examples carrying each supported program's data set; each request documents that program's data elements.</p>\n<h2 id=\"pga-agency-codes\">PGA Agency Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Agency code</th>\n<th>Agency name</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=\"pga-program-codes\">PGA Program Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Agency</th>\n<th>Program 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":"82f15650-9dc5-416a-90b1-febe551e50e6","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}},{"name":"Platform","item":[{"name":"Get Platforms","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"],"id":"a758115a-6d20-4626-a292-798510030132"}}],"id":"884a2a54-d1f2-40c8-b04e-bab6a28ed9db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":"https://sandbox.safepackage.com/v1/platform","description":"<p>Retrieves the list of all e-commerce platforms registered in the API. The returned <code>id</code> must be used as <code>platformId</code> in all screening endpoints.</p>\n<h2 id=\"response-data-elements-object-array\">Response Data Elements (object array)</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>Required</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>required</td>\n<td>Unique platform identifier. Use as <code>platformId</code> in screening requests.</td>\n</tr>\n<tr>\n<td><code>url</code></td>\n<td>string</td>\n<td>required</td>\n<td>Link to the platform's homepage.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}},"urlObject":{"path":["v1","platform"],"host":["https://sandbox.safepackage.com"],"query":[],"variable":[]}},"response":[{"id":"88717cfd-98e4-4e88-a1ca-34c7ddef814b","name":"200 – Platforms","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"gzip, deflate"}],"url":"https://sandbox.safepackage.com/v1/platform"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"example\",\n    \"url\": \"https://www.example-marketplace.com\"\n  },\n  {\n    \"id\": \"example2\",\n    \"url\": \"https://www.another-marketplace.com\"\n  }\n]"}],"_postman_id":"884a2a54-d1f2-40c8-b04e-bab6a28ed9db"}],"id":"999c4680-9552-42f5-bd48-da10aff9f13a","description":"<p>Retrieves the list of e-commerce platforms registered in the API. Use the returned <code>id</code> as <code>platformId</code> in all screening endpoints.</p>\n","_postman_id":"999c4680-9552-42f5-bd48-da10aff9f13a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","id":"1c152b12-6098-462a-ba99-de2c1fcb3c09","name":"SafePackage","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Pick the API host from the 'target' variable (sandbox | production).","const target = (pm.variables.get('target') || 'sandbox').toLowerCase();","const host = target === 'production' ? pm.variables.get('productionUrl') : pm.variables.get('sandboxUrl');","if (host) { pm.collectionVariables.set('baseUrl', host); }","if (!pm.variables.get('apiKey')) { console.warn('SafePackage: apiKey is empty - set it in the collection Variables tab.'); }"],"id":"69cb9a09-6fc3-4d32-9749-783f93d30890"}}],"variable":[{"key":"target","value":"sandbox","description":"Which server to call: \"sandbox\" or \"production\". The collection pre-request script sets baseUrl from this."},{"key":"sandboxUrl","value":"https://sandbox.safepackage.com","description":"Development (sandbox) host."},{"key":"productionUrl","value":"https://api.safepackage.com","description":"Production host."},{"key":"baseUrl","value":"https://sandbox.safepackage.com","description":"Resolved host. Set automatically from target before every request."},{"key":"apiKey","value":"","description":"Your SafePackage access key (sent as Authorization: ApiKey YOUR_ACCESS_KEY)."},{"key":"platformId","value":""},{"key":"externalPackageId","value":"ORD-2026-000123"},{"key":"barcode","value":"9400100000000000000000"},{"key":"packageId","value":""},{"key":"externalShipmentId","value":"SHP-EXT-2026-0045"},{"key":"shipmentId","value":""}]}