Calculate import duties, taxes, and customs fees for international shipments.
How it works:
Provide shipment and commodity details (origin, destination, HS codes, values)
Receive a breakdown of all applicable duties and taxes in the dutiesAndTaxes response
Additional Services:
additionalServices.postalDuties: Calculate lower postal duty rates instead of courier rates
additionalServices.taxesCollection: Create a DDU taxes collection (see below)
DDU Taxes Collection (when additionalServices.taxesCollection: true):
Requires: incoterms: DDU, trackingNumber, and shipTo.phone OR shipTo.email
Creates a taxes collection record with status pending_classification
Triggers background HS code classification and duty recalculation
Returns dutiesAndTaxes: null (final amount calculated after classification)
Returns collection object with collectionId, status, paymentUrl, and collectionDeadline
Notification channel: Both SMS and email when both provided, otherwise whichever is available
Partner receives webhook when classification completes and collection is ready for payment
Why use this?
Show landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Teleship Developer Hub","colors":{"primary":"#3ECC5F","light":"#44D860","dark":"#1C1E1E"},"logo":{"light":"https://mintcdn.com/teleship/xJxPL0DYWRieARJx/logo/light.svg?fit=max\u0026auto=format\u0026n=xJxPL0DYWRieARJx\u0026q=85\u0026s=9f57a70ccd14e9396feffe27a690b353","dark":"https://mintcdn.com/teleship/xJxPL0DYWRieARJx/logo/dark.svg?fit=max\u0026auto=format\u0026n=xJxPL0DYWRieARJx\u0026q=85\u0026s=66bf3b8499c47fc772540aca62496a1b"},"favicon":"https://mintcdn.com/teleship/xJxPL0DYWRieARJx/favicon.ico?fit=max\u0026auto=format\u0026n=xJxPL0DYWRieARJx\u0026q=85\u0026s=5d26f29b5e27c06ff400c648f21f4ac3","navbar":{"links":[{"href":"https://teleship.com","label":"Website"}]},"footer":{"socials":{"x":"https://x.com/teleship","linkedin":"https://linkedin.com/company/teleship"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"teleship","hasAudioNarration":false,"actualSubdomain":"teleship","customDomains":["developers.teleship.com"],"gitSource":{"type":"github","owner":"teleship","repo":"stack","deployBranch":"release","contentDirectory":"apps/developer-docs/docs.json","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21ddd9a00fa423a8a6598d","collectionId":"5b5d3267-1a06-4cfd-8a5e-d0637855d3d3","schemaVersion":"v2"},"feedback":{"issues":false,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a22ac17176712f0ade9b513:failure","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API reference","count":30},{"language":"default","tag":"Shipping services","count":16},{"language":"default","tag":"Trade engine","count":6},{"language":"default","tag":"Taxes collections","count":4},{"language":"default","tag":"Authentication","count":3},{"language":"default","tag":"Overview","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"cs@teleship.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/trade-engine/calculate-duties-and-taxes","slug":"/api-reference/trade-engine/calculate-duties-and-taxes","pageMetadata":{"title":"Calculate duties and taxes","description":"Calculate import duties, taxes, and customs fees for international shipments.\n\n**How it works:**\n- Provide shipment and commodity details (origin, destination, HS codes, values)\n- Receive a breakdown of all applicable duties and taxes in the `dutiesAndTaxes` response\n\n**Additional Services:**\n- `additionalServices.postalDuties`: Calculate lower postal duty rates instead of courier rates\n- `additionalServices.taxesCollection`: Create a DDU taxes collection (see below)\n\n**DDU Taxes Collection (when `additionalServices.taxesCollection: true`):**\n- Requires: `incoterms: DDU`, `trackingNumber`, and `shipTo.phone` OR `shipTo.email`\n- Creates a taxes collection record with status `pending_classification`\n- Triggers background HS code classification and duty recalculation\n- Returns `dutiesAndTaxes: null` (final amount calculated after classification)\n- Returns `collection` object with `collectionId`, `status`, `paymentUrl`, and `collectionDeadline`\n- Notification channel: Both SMS and email when both provided, otherwise whichever is available\n- Partner receives webhook when classification completes and collection is ready for payment\n\n**Why use this?**\nShow landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/trade-engine/duties-taxes","href":"/api-reference/trade-engine/calculate-duties-and-taxes","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Calculate import duties, taxes, and customs fees for international shipments.\"\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"How it works:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Provide shipment and commodity details (origin, destination, HS codes, values)\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Receive a breakdown of all applicable duties and taxes in the \", _jsx(_components.code, {\n children: \"dutiesAndTaxes\"\n }), \" response\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Additional Services:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"additionalServices.postalDuties\"\n }), \": Calculate lower postal duty rates instead of courier rates\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"additionalServices.taxesCollection\"\n }), \": Create a DDU taxes collection (see below)\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsxs(_components.strong, {\n children: [\"DDU Taxes Collection (when \", _jsx(_components.code, {\n children: \"additionalServices.taxesCollection: true\"\n }), \"):\"]\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Requires: \", _jsx(_components.code, {\n children: \"incoterms: DDU\"\n }), \", \", _jsx(_components.code, {\n children: \"trackingNumber\"\n }), \", and \", _jsx(_components.code, {\n children: \"shipTo.phone\"\n }), \" OR \", _jsx(_components.code, {\n children: \"shipTo.email\"\n })]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Creates a taxes collection record with status \", _jsx(_components.code, {\n children: \"pending_classification\"\n })]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Triggers background HS code classification and duty recalculation\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Returns \", _jsx(_components.code, {\n children: \"dutiesAndTaxes: null\"\n }), \" (final amount calculated after classification)\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Returns \", _jsx(_components.code, {\n children: \"collection\"\n }), \" object with \", _jsx(_components.code, {\n children: \"collectionId\"\n }), \", \", _jsx(_components.code, {\n children: \"status\"\n }), \", \", _jsx(_components.code, {\n children: \"paymentUrl\"\n }), \", and \", _jsx(_components.code, {\n children: \"collectionDeadline\"\n })]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Notification channel: Both SMS and email when both provided, otherwise whichever is available\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Partner receives webhook when classification completes and collection is ready for payment\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Why use this?\"\n }), \"\\nShow landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Calculate duties and taxes","description":"Calculate import duties, taxes, and customs fees for international shipments.\n\n**How it works:**\n- Provide shipment and commodity details (origin, destination, HS codes, values)\n- Receive a breakdown of all applicable duties and taxes in the `dutiesAndTaxes` response\n\n**Additional Services:**\n- `additionalServices.postalDuties`: Calculate lower postal duty rates instead of courier rates\n- `additionalServices.taxesCollection`: Create a DDU taxes collection (see below)\n\n**DDU Taxes Collection (when `additionalServices.taxesCollection: true`):**\n- Requires: `incoterms: DDU`, `trackingNumber`, and `shipTo.phone` OR `shipTo.email`\n- Creates a taxes collection record with status `pending_classification`\n- Triggers background HS code classification and duty recalculation\n- Returns `dutiesAndTaxes: null` (final amount calculated after classification)\n- Returns `collection` object with `collectionId`, `status`, `paymentUrl`, and `collectionDeadline`\n- Notification channel: Both SMS and email when both provided, otherwise whichever is available\n- Partner receives webhook when classification completes and collection is ready for payment\n\n**Why use this?**\nShow landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/trade-engine/duties-taxes","href":"/api-reference/trade-engine/calculate-duties-and-taxes","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"calculateDutiesAndTaxes","summary":"Calculate duties and taxes","description":"Calculate import duties, taxes, and customs fees for international shipments.\n\n**How it works:**\n- Provide shipment and commodity details (origin, destination, HS codes, values)\n- Receive a breakdown of all applicable duties and taxes in the `dutiesAndTaxes` response\n\n**Additional Services:**\n- `additionalServices.postalDuties`: Calculate lower postal duty rates instead of courier rates\n- `additionalServices.taxesCollection`: Create a DDU taxes collection (see below)\n\n**DDU Taxes Collection (when `additionalServices.taxesCollection: true`):**\n- Requires: `incoterms: DDU`, `trackingNumber`, and `shipTo.phone` OR `shipTo.email`\n- Creates a taxes collection record with status `pending_classification`\n- Triggers background HS code classification and duty recalculation\n- Returns `dutiesAndTaxes: null` (final amount calculated after classification)\n- Returns `collection` object with `collectionId`, `status`, `paymentUrl`, and `collectionDeadline`\n- Notification channel: Both SMS and email when both provided, otherwise whichever is available\n- Partner receives webhook when classification completes and collection is ready for payment\n\n**Why use this?**\nShow landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\n","parameters":["f8f32e19-daf0-4b44-91aa-c754c7c943bc","3e77b200-0ec2-45fa-a589-843569da59da"],"requestBody":"17a3ea13-2ee7-4a8e-bede-944b8868f41f","responses":{"200":"6fbe661b-90b5-46cb-9a62-c377c0e8cc68","400":"fcb9bf1f-2596-49e5-b78b-70027dbaa8d3","500":"c07beea5-9cdf-41f8-8e6e-e4634d97baff"},"tags":["Trade Engine"],"security":["4483b9d3-a3bd-461f-8113-58fe95956365"],"method":"post","type":"path","servers":["8e9a3119-56d7-456a-b944-1786c8b36af0"],"path":"/api/trade-engine/duties-taxes","baseUrlOptions":["https://api.teleship.com"],"title":"Calculate duties and taxes","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f8f32e19-daf0-4b44-91aa-c754c7c943bc":{"name":"x-request-id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"3e77b200-0ec2-45fa-a589-843569da59da":{"name":"x-account-id","in":"header","required":false,"schema":{"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shipTo":{"type":"object","properties":{"name":{"type":"string","description":"The shipper's name.","isRequired":true,"uniqueKey":"shipTo.name","typeLabel":"string"},"address":{"type":"object","default":{"line1":"","city":"","postcode":"","country":"GB"},"required":["line1","country"],"properties":{"line1":{"type":"string","description":"The street address for the location. Do not include the postcode, state, or suburb in this field.","isRequired":true,"uniqueKey":"shipTo.address.line1","typeLabel":"string"},"country":{"type":"string","description":"Country for the recipient.","enum":["AF","AL","DZ","AS","AC","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","EL","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","AN","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"isRequired":true,"uniqueKey":"shipTo.address.country","typeLabel":"enum\u003cstring>"},"line2":{"type":"string","description":"Second line of the street address for the location.","uniqueKey":"shipTo.address.line2","typeLabel":"string"},"city":{"type":"string","description":"City or town of the location. In certain regions the name here is validated against the postcode, so must be valid and match.","uniqueKey":"shipTo.address.city","typeLabel":"string"},"state":{"type":"string","description":"State, province, or territory of the location.","uniqueKey":"shipTo.address.state","typeLabel":"string"},"postcode":{"type":"string","description":"Postcode, postal code, or ZIP code of the location.","uniqueKey":"shipTo.address.postcode","typeLabel":"string"},"isResidential":{"type":"boolean","description":"Whether the address is residential.","uniqueKey":"shipTo.address.isResidential","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"shipTo.address","typeLabel":"object"},"email":{"type":"string","description":"Email address for the shipper.","uniqueKey":"shipTo.email","typeLabel":"string"},"phone":{"type":"string","description":"Phone number for the shipper. A valid local phone number including area code or a fully qualified international number. Drivers can use this to coordinate pickup with the sender.","uniqueKey":"shipTo.phone","typeLabel":"string"},"company":{"type":"string","description":"Business name. This helps the driver successfully collect and deliver the parcel.","uniqueKey":"shipTo.company","typeLabel":"string"},"stateTaxId":{"type":"string","description":"The state tax Id","uniqueKey":"shipTo.stateTaxId","typeLabel":"string"},"countryTaxId":{"type":"string","description":"The country tax Id. EORI number for GB, EIN number for US","uniqueKey":"shipTo.countryTaxId","typeLabel":"string"}},"required":["name","address"],"isRequired":true,"uniqueKey":"shipTo","typeLabel":"object"},"shipFrom":{"type":"object","properties":{"name":{"type":"string","description":"The shipper's name.","isRequired":true,"uniqueKey":"shipFrom.name","typeLabel":"string"},"address":{"type":"object","default":{"line1":"","city":"","postcode":"","country":"GB"},"required":["line1","country"],"properties":{"line1":{"type":"string","description":"The street address for the location. Do not include the postcode, state, or suburb in this field.","isRequired":true,"uniqueKey":"shipFrom.address.line1","typeLabel":"string"},"country":{"type":"string","description":"Country for the recipient.","enum":["AF","AL","DZ","AS","AC","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","EL","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","AN","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"isRequired":true,"uniqueKey":"shipFrom.address.country","typeLabel":"enum\u003cstring>"},"line2":{"type":"string","description":"Second line of the street address for the location.","uniqueKey":"shipFrom.address.line2","typeLabel":"string"},"city":{"type":"string","description":"City or town of the location. In certain regions the name here is validated against the postcode, so must be valid and match.","uniqueKey":"shipFrom.address.city","typeLabel":"string"},"state":{"type":"string","description":"State, province, or territory of the location.","uniqueKey":"shipFrom.address.state","typeLabel":"string"},"postcode":{"type":"string","description":"Postcode, postal code, or ZIP code of the location.","uniqueKey":"shipFrom.address.postcode","typeLabel":"string"},"isResidential":{"type":"boolean","description":"Whether the address is residential.","uniqueKey":"shipFrom.address.isResidential","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"shipFrom.address","typeLabel":"object"},"email":{"type":"string","description":"Email address for the shipper.","uniqueKey":"shipFrom.email","typeLabel":"string"},"phone":{"type":"string","description":"Phone number for the shipper. A valid local phone number including area code or a fully qualified international number. Drivers can use this to coordinate pickup with the sender.","uniqueKey":"shipFrom.phone","typeLabel":"string"},"company":{"type":"string","description":"Business name. This helps the driver successfully collect and deliver the parcel.","uniqueKey":"shipFrom.company","typeLabel":"string"},"stateTaxId":{"type":"string","description":"The state tax Id","uniqueKey":"shipFrom.stateTaxId","typeLabel":"string"},"countryTaxId":{"type":"string","description":"The country tax Id. EORI number for GB, EIN number for US","uniqueKey":"shipFrom.countryTaxId","typeLabel":"string"}},"required":["name","address"],"isRequired":true,"uniqueKey":"shipFrom","typeLabel":"object"},"commodities":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Short name or title of the item.","maxLength":250,"isRequired":true,"uniqueKey":"commodities.items.[INDEX].title","typeLabel":"string"},"quantity":{"type":"number","description":"How many of this item are in the parcel? Must be a whole number.","default":1,"isRequired":true,"uniqueKey":"commodities.items.[INDEX].quantity","typeLabel":"number"},"value":{"type":"object","description":"The monetary value of the item.","required":["amount","currency"],"properties":{"amount":{"type":"number","description":"A decimal value.","example":"15.0","isRequired":true,"uniqueKey":"commodities.items.[INDEX].value.amount","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the amount.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","isRequired":true,"uniqueKey":"commodities.items.[INDEX].value.currency","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"commodities.items.[INDEX].value","typeLabel":"object"},"unitWeight":{"type":"object","description":"The weight of a single item. Note we will get a total weight from the quantity and unit weight.","required":["value","unit"],"properties":{"value":{"type":"number","description":"The decimal value of the item weight.","default":"1.0","minimum":0.001,"isRequired":true,"uniqueKey":"commodities.items.[INDEX].unitWeight.value","typeLabel":"number"},"unit":{"type":"string","description":"The unit of measurement for the weight","enum":["kg","lb"],"default":"kg","isRequired":true,"uniqueKey":"commodities.items.[INDEX].unitWeight.unit","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"commodities.items.[INDEX].unitWeight","typeLabel":"object"},"description":{"type":"string","description":"Detailed description of the contents for customs purposes.","maxLength":250,"uniqueKey":"commodities.items.[INDEX].description","typeLabel":"string"},"hsCode":{"type":"string","description":"A Harmonized System code for this item, appropriate for the destination country. Single HS tarrif code only. Must be a valid HS code format of 6–10 digits.","uniqueKey":"commodities.items.[INDEX].hsCode","typeLabel":"string"},"sku":{"type":"string","description":"The SKU of the item.","maxLength":50,"uniqueKey":"commodities.items.[INDEX].sku","typeLabel":"string"},"countryOfOrigin":{"type":"string","description":"The country where the goods were manufactured.","enum":["AF","AL","DZ","AS","AC","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","EL","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","AN","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"uniqueKey":"commodities.items.[INDEX].countryOfOrigin","typeLabel":"enum\u003cstring>"},"category":{"type":"string","description":"The category of the item.","uniqueKey":"commodities.items.[INDEX].category","typeLabel":"string"},"imageUrl":{"type":"string","description":"The URL of the product image.","uniqueKey":"commodities.items.[INDEX].imageUrl","typeLabel":"string"},"productUrl":{"type":"string","description":"The URL of the product page.","uniqueKey":"commodities.items.[INDEX].productUrl","typeLabel":"string"},"productId":{"type":"string","description":"The product ID of the item.","uniqueKey":"commodities.items.[INDEX].productId","typeLabel":"string"},"variantId":{"type":"string","description":"The variant ID of the item.","uniqueKey":"commodities.items.[INDEX].variantId","typeLabel":"string"},"compliance":{"type":"object","description":"The advanced details of the commodity.","properties":{"isControlGood":{"type":"boolean","description":"Whether the commodity is controlled.","uniqueKey":"commodities.items.[INDEX].compliance.isControlGood","typeLabel":"boolean"},"controlType":{"type":"string","description":"The type of control for the commodity.","example":"HealthRegulated","uniqueKey":"commodities.items.[INDEX].compliance.controlType","typeLabel":"string"},"regulatoryAgency":{"type":"string","description":"The regulatory agencies for the commodity.","example":"FDA","uniqueKey":"commodities.items.[INDEX].compliance.regulatoryAgency","typeLabel":"string"},"regulatoryProgram":{"type":"string","description":"The regulatory program for the commodity.","example":"Food Safety","uniqueKey":"commodities.items.[INDEX].compliance.regulatoryProgram","typeLabel":"string"},"regulatoryCategoryCode":{"type":"string","description":"The regulatory category code for the commodity.","example":"21-CFR-XYZ","uniqueKey":"commodities.items.[INDEX].compliance.regulatoryCategoryCode","typeLabel":"string"},"EIN":{"type":"string","description":"The EIN of the seller.","uniqueKey":"commodities.items.[INDEX].compliance.EIN","typeLabel":"string"},"iossNumber":{"type":"string","description":"The IOSS number of the seller.","uniqueKey":"commodities.items.[INDEX].compliance.iossNumber","typeLabel":"string"},"importLicenseNumber":{"type":"string","description":"The license number of the seller.","uniqueKey":"commodities.items.[INDEX].compliance.importLicenseNumber","typeLabel":"string"},"certificationType":{"type":"string","description":"The certification type for the commodity.","example":"CE","uniqueKey":"commodities.items.[INDEX].compliance.certificationType","typeLabel":"string"},"certificationReference":{"type":"string","description":"The certificate number of the seller.","example":"CE-DECL-12345","uniqueKey":"commodities.items.[INDEX].compliance.certificationReference","typeLabel":"string"}},"uniqueKey":"commodities.items.[INDEX].compliance","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":true,"description":"Metadata about the commodity.","default":{},"uniqueKey":"commodities.items.[INDEX].metadata","typeLabel":"object"}},"required":["title","quantity","value","unitWeight"],"uniqueKey":"commodities.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"commodities","typeLabel":"object[]"},"customs":{"type":"object","properties":{"contentType":{"type":"string","description":"The description of the contents for customs purposes.","enum":["Documents","Gift","Sample","Other","CommercialGoods","ReturnOfGoods"],"isRequired":true,"uniqueKey":"customs.contentType","typeLabel":"enum\u003cstring>"},"incoterms":{"type":"string","description":"The incoterms for the shipment.","enum":["DDP","DDU"],"uniqueKey":"customs.incoterms","typeLabel":"enum\u003cstring>"},"invoiceNumber":{"type":"string","description":"The invoice number for the shipment.","uniqueKey":"customs.invoiceNumber","typeLabel":"string"},"invoiceDate":{"format":"date-time","type":"string","description":"The date of the invoice.","uniqueKey":"customs.invoiceDate","typeLabel":"string\u003cdate-time>"},"orderId":{"type":"string","description":"The order ID of the shipment","uniqueKey":"customs.orderId","typeLabel":"string"},"orderTotalValue":{"type":"object","description":"The total value of the invoice.","required":["amount","currency"],"properties":{"amount":{"type":"number","description":"A decimal value.","example":"15.0","isRequired":true,"uniqueKey":"customs.orderTotalValue.amount","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the amount.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","isRequired":true,"uniqueKey":"customs.orderTotalValue.currency","typeLabel":"enum\u003cstring>"}},"uniqueKey":"customs.orderTotalValue","typeLabel":"object"},"certified":{"type":"boolean","description":"Whether the contents are cerified.","uniqueKey":"customs.certified","typeLabel":"boolean"},"signedBy":{"type":"string","description":"The name of the person who certifies the customs content.","uniqueKey":"customs.signedBy","typeLabel":"string"},"EORI":{"type":"string","description":"The EORI number of the seller.","uniqueKey":"customs.EORI","typeLabel":"string"},"IOSS":{"type":"string","description":"The IOSS number of the seller.","uniqueKey":"customs.IOSS","typeLabel":"string"},"VAT":{"type":"string","description":"The VAT number of the seller.","uniqueKey":"customs.VAT","typeLabel":"string"},"EIN":{"type":"string","description":"The EIN number of the seller.","uniqueKey":"customs.EIN","typeLabel":"string"},"VOECNUMBER":{"type":"string","description":"The Norwegian VAT number of the seller.","uniqueKey":"customs.VOECNUMBER","typeLabel":"string"},"SWISSVAT":{"type":"string","description":"The Swiss VAT number of the seller.","uniqueKey":"customs.SWISSVAT","typeLabel":"string"},"KAR_VAT":{"type":"string","description":"K number of the seller.","uniqueKey":"customs.KAR_VAT","typeLabel":"string"},"CA_GST":{"type":"string","description":"Canadian GST number of the seller.","uniqueKey":"customs.CA_GST","typeLabel":"string"},"AU_GST":{"type":"string","description":"Australian GST number of the seller.","uniqueKey":"customs.AU_GST","typeLabel":"string"},"NZ_GST":{"type":"string","description":"New Zealand GST number of the seller.","uniqueKey":"customs.NZ_GST","typeLabel":"string"},"JPConsumptionTax":{"type":"string","description":"The Swiss VAT number of the seller.","uniqueKey":"customs.JPConsumptionTax","typeLabel":"string"},"GPSRContactInfo":{"type":"string","description":"The contact information for the GPSR.","uniqueKey":"customs.GPSRContactInfo","typeLabel":"string"},"importerOfRecord":{"type":"object","description":"The importer of record.","required":["name","address"],"properties":{"name":{"type":"string","description":"The shipper's name.","isRequired":true,"uniqueKey":"customs.importerOfRecord.name","typeLabel":"string"},"address":{"type":"object","default":{"line1":"","city":"","postcode":"","country":"GB"},"required":["line1","country"],"properties":{"line1":{"type":"string","description":"The street address for the location. Do not include the postcode, state, or suburb in this field.","isRequired":true,"uniqueKey":"customs.importerOfRecord.address.line1","typeLabel":"string"},"country":{"type":"string","description":"Country for the recipient.","enum":["AF","AL","DZ","AS","AC","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","EL","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","AN","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"isRequired":true,"uniqueKey":"customs.importerOfRecord.address.country","typeLabel":"enum\u003cstring>"},"line2":{"type":"string","description":"Second line of the street address for the location.","uniqueKey":"customs.importerOfRecord.address.line2","typeLabel":"string"},"city":{"type":"string","description":"City or town of the location. In certain regions the name here is validated against the postcode, so must be valid and match.","uniqueKey":"customs.importerOfRecord.address.city","typeLabel":"string"},"state":{"type":"string","description":"State, province, or territory of the location.","uniqueKey":"customs.importerOfRecord.address.state","typeLabel":"string"},"postcode":{"type":"string","description":"Postcode, postal code, or ZIP code of the location.","uniqueKey":"customs.importerOfRecord.address.postcode","typeLabel":"string"},"isResidential":{"type":"boolean","description":"Whether the address is residential.","uniqueKey":"customs.importerOfRecord.address.isResidential","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"customs.importerOfRecord.address","typeLabel":"object"},"email":{"type":"string","description":"Email address for the shipper.","uniqueKey":"customs.importerOfRecord.email","typeLabel":"string"},"phone":{"type":"string","description":"Phone number for the shipper. A valid local phone number including area code or a fully qualified international number. Drivers can use this to coordinate pickup with the sender.","uniqueKey":"customs.importerOfRecord.phone","typeLabel":"string"},"company":{"type":"string","description":"Business name. This helps the driver successfully collect and deliver the parcel.","uniqueKey":"customs.importerOfRecord.company","typeLabel":"string"},"stateTaxId":{"type":"string","description":"The state tax Id","uniqueKey":"customs.importerOfRecord.stateTaxId","typeLabel":"string"},"countryTaxId":{"type":"string","description":"The country tax Id. EORI number for GB, EIN number for US","uniqueKey":"customs.importerOfRecord.countryTaxId","typeLabel":"string"}},"uniqueKey":"customs.importerOfRecord","typeLabel":"object"}},"required":["contentType"],"uniqueKey":"customs","typeLabel":"object"},"currency":{"type":"string","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"orderTrackingReference":{"type":"string","uniqueKey":"orderTrackingReference","typeLabel":"string"},"shipmentId":{"type":"string","uniqueKey":"shipmentId","typeLabel":"string"},"trackingNumber":{"type":"string","description":"Tracking number for the shipment. Required for DDU collection creation.","uniqueKey":"trackingNumber","typeLabel":"string"},"externalManifestId":{"type":"string","description":"External manifest ID for partner reference (must be unique per account)","uniqueKey":"externalManifestId","typeLabel":"string"},"freightCharge":{"type":"object","description":"The freight/shipping charge for VAT-on-freight calculations.","required":["amount","currency"],"properties":{"amount":{"type":"number","description":"A decimal value.","example":"15.0","isRequired":true,"uniqueKey":"freightCharge.amount","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the amount.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","isRequired":true,"uniqueKey":"freightCharge.currency","typeLabel":"enum\u003cstring>"}},"uniqueKey":"freightCharge","typeLabel":"object"},"consigneeCharges":{"type":"object","properties":{"amount":{"type":"number","description":"A decimal value.","example":"15.0","isRequired":true,"uniqueKey":"consigneeCharges.amount","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the amount.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","isRequired":true,"uniqueKey":"consigneeCharges.currency","typeLabel":"enum\u003cstring>"}},"required":["amount","currency"],"uniqueKey":"consigneeCharges","typeLabel":"object"},"insuranceValue":{"type":"object","properties":{"amount":{"type":"number","description":"A decimal value.","example":"15.0","isRequired":true,"uniqueKey":"insuranceValue.amount","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the amount.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","isRequired":true,"uniqueKey":"insuranceValue.currency","typeLabel":"enum\u003cstring>"}},"required":["amount","currency"],"uniqueKey":"insuranceValue","typeLabel":"object"},"weight":{"type":"object","description":"Package weight for DDU collection","required":["value","unit"],"properties":{"value":{"type":"number","description":"The decimal value of the item weight.","default":"1.0","minimum":0.001,"isRequired":true,"uniqueKey":"weight.value","typeLabel":"number"},"unit":{"type":"string","description":"The unit of measurement for the weight","enum":["kg","lb"],"default":"kg","isRequired":true,"uniqueKey":"weight.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"weight","typeLabel":"object"},"dimensions":{"type":"object","description":"Package dimensions for DDU collection","required":["length","width","height","unit"],"properties":{"length":{"type":"number","description":"The decimal value of the length of the item","default":"40.0","isRequired":true,"uniqueKey":"dimensions.length","typeLabel":"number"},"width":{"type":"number","description":"The decimal value of the width of the item","default":"30.0","isRequired":true,"uniqueKey":"dimensions.width","typeLabel":"number"},"height":{"type":"number","description":"The decimal value of the height of the item","default":"16.0","isRequired":true,"uniqueKey":"dimensions.height","typeLabel":"number"},"unit":{"type":"string","description":"The unit of measurement for the dimensions","enum":["cm","in"],"default":"cm","isRequired":true,"uniqueKey":"dimensions.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"dimensions","typeLabel":"object"},"description":{"type":"string","description":"Shipment description","uniqueKey":"description","typeLabel":"string"},"customerReference":{"type":"string","description":"Customer/partner reference number","uniqueKey":"customerReference","typeLabel":"string"},"packageType":{"type":"string","description":"Package type","enum":["envelope","tube","parcel"],"uniqueKey":"packageType","typeLabel":"enum\u003cstring>"},"contentType":{"type":"string","description":"Content type","enum":["Documents","Gift","Sample","Other","CommercialGoods","ReturnOfGoods"],"uniqueKey":"contentType","typeLabel":"enum\u003cstring>"},"metadata":{"type":"object","description":"Additional metadata","uniqueKey":"metadata","typeLabel":"object"},"additionalServices":{"type":"object","description":"Additional services for duties calculation","properties":{"postalDuties":{"type":"boolean","description":"Calculate postal duties (lower duty rates for postal shipments)","default":false,"uniqueKey":"additionalServices.postalDuties","typeLabel":"boolean"},"taxesCollection":{"type":"boolean","description":"Create a taxes collection for DDU duty capture. Requires: trackingNumber, incoterms=DDU, phone or email","default":false,"uniqueKey":"additionalServices.taxesCollection","typeLabel":"boolean"}},"uniqueKey":"additionalServices","typeLabel":"object"}},"required":["shipTo","shipFrom","commodities"],"uniqueKey":"","typeLabel":"object"},"examples":{"Basic Calculation":{"title":"Basic Calculation","value":{"shipTo":{"name":"John Doe","email":"john@example.com","address":{"line1":"123 Main St","city":"New York","state":"NY","postcode":"10001","country":"US"}},"shipFrom":{"name":"Acme Corp","email":"shipping@example.com","address":{"line1":"456 High St","city":"London","postcode":"SW1A 1AA","country":"GB"}},"commodities":[{"title":"Designer Handbag","description":"Leather handbag","hsCode":"4202210000","quantity":1,"value":{"amount":500,"currency":"GBP"},"unitWeight":{"value":0.5,"unit":"kg"},"countryOfOrigin":"IT"}],"customs":{"contentType":"CommercialGoods","incoterms":"DDP"}}},"Postal Duties":{"title":"Postal Duties","value":{"shipTo":{"name":"John Doe","email":"john@example.com","address":{"line1":"123 Main St","city":"New York","state":"NY","postcode":"10001","country":"US"}},"shipFrom":{"name":"Acme Corp","email":"shipping@example.com","address":{"line1":"456 High St","city":"London","postcode":"SW1A 1AA","country":"GB"}},"commodities":[{"title":"Designer Handbag","description":"Leather handbag","hsCode":"4202210000","quantity":1,"value":{"amount":500,"currency":"GBP"},"unitWeight":{"value":0.5,"unit":"kg"},"countryOfOrigin":"IT"}],"customs":{"contentType":"CommercialGoods","incoterms":"DDP"},"additionalServices":{"postalDuties":true}}},"DDU with Taxes Collection":{"title":"DDU with Taxes Collection","description":"Creates a taxes collection record and initiates the duty payment flow. Returns dutiesAndTaxes: null (final amount calculated after HS code classification).","value":{"trackingNumber":"TRK123456789","shipTo":{"name":"John Doe","email":"john@example.com","phone":"+14155552671","address":{"line1":"123 Main St","city":"New York","state":"NY","postcode":"10001","country":"US"}},"shipFrom":{"name":"Acme Corp","email":"shipping@example.com","address":{"line1":"456 High St","city":"London","postcode":"SW1A 1AA","country":"GB"}},"commodities":[{"title":"Designer Handbag","description":"Leather handbag","hsCode":"4202210000","quantity":1,"value":{"amount":500,"currency":"GBP"},"unitWeight":{"value":0.5,"unit":"kg"},"countryOfOrigin":"IT"}],"customs":{"contentType":"CommercialGoods","incoterms":"DDU"},"additionalServices":{"taxesCollection":true}}},"UKToCanada":{"title":"UKToCanada","value":{"shipTo":{"name":"Pat Doe","address":{"line1":"778 Douglas Street","city":"Victoria","postcode":"V8W 2B5","state":"BC","country":"CA"}},"shipFrom":{"name":"Manchester Store","address":{"line1":"Mosley Road","city":"Manchester","postcode":"M17 1FQ","country":"GB"}},"commodities":[{"quantity":3,"title":"Uptown Black Croc Fitted Over-Knee Boots","hsCode":"6403511000","value":{"amount":185.13,"currency":"GBP"},"kgWeight":0.7,"unitWeight":{"unit":"kg","value":0.7},"sku":"CL12877213039","countryOfOrigin":"GB"}],"customs":{"contentType":"CommercialGoods","orderTotalValue":{"amount":555.39,"currency":"GBP"}},"orderTrackingReference":"CA-1001"}},"UKToAustralia":{"title":"UKToAustralia","value":{"shipTo":{"name":"Chris Doe","address":{"line1":"1 Martin Place","line2":"Level 5","city":"Sydney","postcode":"2000","state":"NSW","country":"AU"}},"shipFrom":{"name":"London Store","address":{"line1":"Buckingham Palace Road","city":"London","postcode":"SW1A 1AA","country":"GB"}},"commodities":[{"quantity":2,"title":"Premium British Tea Set","hsCode":"6911101000","value":{"amount":129.99,"currency":"GBP"},"kgWeight":0.9,"unitWeight":{"unit":"kg","value":0.9},"sku":"TS-001-AU","countryOfOrigin":"GB"}],"customs":{"contentType":"CommercialGoods","orderTotalValue":{"amount":259.98,"currency":"GBP"}},"orderTrackingReference":"AU-2001"}},"UKToNewZealand":{"title":"UKToNewZealand","value":{"shipTo":{"name":"James Doe","address":{"line1":"123 Lambton Quay","city":"Wellington","postcode":"6011","country":"NZ"}},"shipFrom":{"name":"Edinburgh Store","address":{"line1":"1 Princes Street","city":"Edinburgh","postcode":"EH1 1RF","country":"GB"}},"commodities":[{"quantity":1,"title":"Highland Wool Blanket","hsCode":"6301300010","value":{"amount":99.99,"currency":"GBP"},"kgWeight":1.5,"unitWeight":{"unit":"kg","value":1.5},"sku":"WB-002-NZ","countryOfOrigin":"GB"}],"customs":{"contentType":"CommercialGoods","orderTotalValue":{"amount":99.99,"currency":"GBP"}},"orderTrackingReference":"NZ-3001"}},"UKToSingapore":{"title":"UKToSingapore","value":{"shipTo":{"name":"Casey Doe","address":{"line1":"1 Raffles Place","line2":"#42-01","city":"Singapore","postcode":"018956","country":"SG"}},"shipFrom":{"name":"Oxford Store","address":{"line1":"High Street","city":"Oxford","postcode":"OX1 2JD","country":"GB"}},"commodities":[{"quantity":1,"title":"Designer Luxury Watch","hsCode":"9102210080","value":{"amount":450,"currency":"GBP"},"kgWeight":0.25,"unitWeight":{"unit":"kg","value":0.25},"sku":"DW-003-SG","countryOfOrigin":"CH"}],"customs":{"contentType":"CommercialGoods","orderTotalValue":{"amount":450,"currency":"GBP"}},"orderTrackingReference":"SG-4001"}},"UKToHongKong":{"title":"UKToHongKong","value":{"shipTo":{"name":"Riley Doe","address":{"line1":"8 Finance Street","line2":"Unit 1502","city":"Central","state":"Hong Kong Island","country":"HK"}},"shipFrom":{"name":"Birmingham Store","address":{"line1":"New Street","city":"Birmingham","postcode":"B1 1AA","country":"GB"}},"commodities":[{"quantity":2,"title":"Sterling Silver Necklace","hsCode":"7113112000","value":{"amount":280,"currency":"GBP"},"kgWeight":0.06,"unitWeight":{"unit":"kg","value":0.06},"sku":"SN-004-HK","countryOfOrigin":"GB"}],"customs":{"contentType":"CommercialGoods","orderTotalValue":{"amount":560,"currency":"GBP"}},"orderTrackingReference":"HK-5001"}},"UKToUAE":{"title":"UKToUAE","value":{"shipTo":{"name":"Quinn Doe","address":{"line1":"Sheikh Zayed Road","line2":"Boulevard Plaza Tower 1","city":"Dubai","state":"Dubai","country":"AE"}},"shipFrom":{"name":"Leeds Store","address":{"line1":"City Square","city":"Leeds","postcode":"LS1 1UR","country":"GB"}},"commodities":[{"quantity":1,"title":"Designer Luxury Handbag","hsCode":"4202210090","value":{"amount":750,"currency":"GBP"},"kgWeight":0.8,"unitWeight":{"unit":"kg","value":0.8},"sku":"LH-005-AE","countryOfOrigin":"IT"}],"customs":{"contentType":"CommercialGoods","orderTotalValue":{"amount":750,"currency":"GBP"}},"orderTrackingReference":"AE-6001"}},"UKToSaudiArabia":{"title":"UKToSaudiArabia","value":{"shipTo":{"name":"Drew Doe","address":{"line1":"King Fahd Road","line2":"Al Olaya District","city":"Riyadh","postcode":"12271","state":"Riyadh","country":"SA"}},"shipFrom":{"name":"Glasgow Store","address":{"line1":"George Square","city":"Glasgow","postcode":"G2 1DY","country":"GB"}},"commodities":[{"quantity":3,"title":"Savile Row Business Suits","hsCode":"6203110000","value":{"amount":950,"currency":"GBP"},"kgWeight":0.8,"unitWeight":{"unit":"kg","value":0.8},"sku":"BS-006-SA","countryOfOrigin":"GB"}],"customs":{"contentType":"CommercialGoods","orderTotalValue":{"amount":2850,"currency":"GBP"}},"orderTrackingReference":"SA-7001"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"6fbe661b-90b5-46cb-9a62-c377c0e8cc68":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","isRequired":true,"uniqueKey":"messages.items.[INDEX].code","typeLabel":"number"},"level":{"type":"string","enum":["error","warning","info"],"example":"error","description":"Error level","default":"error","isRequired":true,"uniqueKey":"messages.items.[INDEX].level","typeLabel":"enum\u003cstring>"},"timestamp":{"format":"date-time","type":"string","example":"2024-01-01T00:00:00.00Z","isRequired":true,"uniqueKey":"messages.items.[INDEX].timestamp","typeLabel":"string\u003cdate-time>"},"message":{"type":"string","example":"An error occurred","isRequired":true,"uniqueKey":"messages.items.[INDEX].message","typeLabel":"string"},"details":{"example":["Missing required field"],"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].details.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].details","typeLabel":"string[]"}},"required":["code","level","timestamp","message","details"],"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"},"dutiesAndTaxes":{"type":"object","description":"Duties and taxes calculation result","required":["price","currency","charges"],"properties":{"price":{"type":"number","description":"The total amount of duties and taxes.","example":10.59,"isRequired":true,"uniqueKey":"dutiesAndTaxes.price","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the duties and taxes.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"example":"GBP","isRequired":true,"uniqueKey":"dutiesAndTaxes.currency","typeLabel":"enum\u003cstring>"},"charges":{"description":"Breakdown of duty and tax charges. These items summed equal the total price.","example":[{"name":"Duty","amount":1.2,"currency":"GBP"},{"name":"VAT","amount":0.5,"currency":"GBP"}],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the charge.","isRequired":true,"uniqueKey":"dutiesAndTaxes.charges.items.[INDEX].name","typeLabel":"string"},"amount":{"type":"number","description":"A decimal value.","example":"15.0","uniqueKey":"dutiesAndTaxes.charges.items.[INDEX].amount","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the amount.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","uniqueKey":"dutiesAndTaxes.charges.items.[INDEX].currency","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","description":"The rate of the charge (for VAT and duty charges).","uniqueKey":"dutiesAndTaxes.charges.items.[INDEX].rate","typeLabel":"number"},"code":{"type":"string","description":"The code of the charge.","uniqueKey":"dutiesAndTaxes.charges.items.[INDEX].code","typeLabel":"string"}},"required":["name"],"uniqueKey":"dutiesAndTaxes.charges.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"dutiesAndTaxes.charges","typeLabel":"object[]"},"commodities":{"description":"Classified and dutiable commodities with per-item duty breakdown","type":"array","items":{"type":"object","properties":{"itemNumber":{"type":"number","description":"The item number of the commodity.","isRequired":true,"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].itemNumber","typeLabel":"number"},"title":{"type":"string","description":"Short name or title of the item.","maxLength":250,"isRequired":true,"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].title","typeLabel":"string"},"hsCode":{"type":"string","description":"The HS (Harmonized System) code used for duty calculation.","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].hsCode","typeLabel":"string"},"charges":{"description":"Breakdowns of the components of the price.","example":[{"name":"Duty","amount":1.2,"currency":"GBP","rate":0.1}],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the charge.","isRequired":true,"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].charges.items.[INDEX].name","typeLabel":"string"},"amount":{"type":"number","description":"A decimal value.","example":"15.0","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].charges.items.[INDEX].amount","typeLabel":"number"},"currency":{"type":"string","description":"The currency of the amount.","enum":["GBP","USD","EUR","CAD","AUD","BGN","CZK","DKK","HUF","PLN","RON","SEK","NZD","SAR","AED","HKD","SGD"],"default":"GBP","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].charges.items.[INDEX].currency","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","description":"The rate of the charge (for VAT and duty charges).","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].charges.items.[INDEX].rate","typeLabel":"number"},"code":{"type":"string","description":"The code of the charge.","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].charges.items.[INDEX].code","typeLabel":"string"}},"required":["name"],"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].charges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].charges","typeLabel":"object[]"},"restrictions":{"description":"The restrictions for the commodity.","type":"array","items":{"type":"object","properties":{"importRegion":{"type":"string","description":"The import region","isRequired":true,"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].importRegion","typeLabel":"string"},"flag":{"type":"string","description":"The restriction flag status","isRequired":true,"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].flag","typeLabel":"string"},"importRisk":{"type":"string","description":"The import risk level","isRequired":true,"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].importRisk","typeLabel":"string"},"id":{"type":"string","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].id","typeLabel":"string"},"countryOfOrigin":{"type":"string","description":"The country of origin","enum":["AF","AL","DZ","AS","AC","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","EL","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","AN","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].countryOfOrigin","typeLabel":"enum\u003cstring>"},"hts":{"type":"string","description":"The hts information","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].hts","typeLabel":"string"},"chapter":{"type":"string","description":"The chapter information","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].chapter","typeLabel":"string"},"message":{"type":"string","description":"Detailed restriction message","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].message","typeLabel":"string"},"info":{"type":"string","description":"Additional information","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].info","typeLabel":"string"},"capture":{"type":"string","description":"Capture type","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].capture","typeLabel":"string"},"metadata":{"type":"object","description":"Additional metadata","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].metadata","typeLabel":"object"},"serviceCode":{"type":"string","description":"Service code for route-specific restrictions","example":"TELESHIP-EXPEDITED-PICKUP","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].serviceCode","typeLabel":"string"},"shippingMethod":{"type":"string","description":"Shipping method for route-specific restrictions","example":"RM-RETURN-T24","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].shippingMethod","typeLabel":"string"},"restrictionLevel":{"type":"string","description":"Restriction level for this commodity","enum":["FALSE","TRUE","ACCOUNT","All"],"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].restrictionLevel","typeLabel":"enum\u003cstring>"},"createdAt":{"format":"date-time","type":"string","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"format":"date-time","type":"string","uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"}},"required":["importRegion","flag","importRisk"],"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX].restrictions","typeLabel":"object[]"}},"required":["itemNumber","title"],"uniqueKey":"dutiesAndTaxes.commodities.items.[INDEX]","typeLabel":"object"},"uniqueKey":"dutiesAndTaxes.commodities","typeLabel":"object[]"},"customsDeclaration":{"type":"object","description":"Customs declaration details","uniqueKey":"dutiesAndTaxes.customsDeclaration","typeLabel":"object"}},"uniqueKey":"dutiesAndTaxes","typeLabel":"object"},"collection":{"type":"object","description":"Taxes collection details (when additionalServices.taxesCollection=true)","required":["collectionId","trackingNumber","status","collectionDeadline","paymentUrl"],"properties":{"collectionId":{"type":"string","description":"Unique collection ID","example":"col_abc123","isRequired":true,"uniqueKey":"collection.collectionId","typeLabel":"string"},"trackingNumber":{"type":"string","description":"Tracking number for the shipment","example":"TRK123456789","isRequired":true,"uniqueKey":"collection.trackingNumber","typeLabel":"string"},"status":{"type":"string","description":"Collection status","example":"pending","isRequired":true,"uniqueKey":"collection.status","typeLabel":"string"},"collectionDeadline":{"type":"string","description":"Deadline for duty payment","format":"date-time","example":"2026-01-31T23:59:59Z","isRequired":true,"uniqueKey":"collection.collectionDeadline","typeLabel":"string\u003cdate-time>"},"paymentUrl":{"type":"string","description":"Payment URL for consignee to pay duties","example":"https://duties-taxes.com/col_abc123","isRequired":true,"uniqueKey":"collection.paymentUrl","typeLabel":"string"},"events":{"description":"Collection events/timeline","type":"array","items":{"type":"string","uniqueKey":"collection.events.items.[INDEX]","typeLabel":"string"},"uniqueKey":"collection.events","typeLabel":"string[]"}},"uniqueKey":"collection","typeLabel":"object"}},"required":["messages"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"messages":[{"code":123,"level":"error","timestamp":"2024-01-01T00:00:00.00Z","message":"An error occurred","details":["Missing required field"]}],"dutiesAndTaxes":{"price":10.59,"currency":"GBP","charges":[{"name":"Duty","amount":1.2,"currency":"GBP"},{"name":"VAT","amount":0.5,"currency":"GBP"}],"commodities":[{"itemNumber":123,"title":"\u003cstring>","hsCode":"\u003cstring>","charges":[{"name":"Duty","amount":1.2,"currency":"GBP","rate":0.1}],"restrictions":[{"importRegion":"\u003cstring>","flag":"\u003cstring>","importRisk":"\u003cstring>","id":"\u003cstring>","countryOfOrigin":"AF","hts":"\u003cstring>","chapter":"\u003cstring>","message":"\u003cstring>","info":"\u003cstring>","capture":"\u003cstring>","metadata":{},"serviceCode":"TELESHIP-EXPEDITED-PICKUP","shippingMethod":"RM-RETURN-T24","restrictionLevel":"FALSE","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}]}],"customsDeclaration":{}},"collection":{"collectionId":"col_abc123","trackingNumber":"TRK123456789","status":"pending","collectionDeadline":"2026-01-31T23:59:59Z","paymentUrl":"https://duties-taxes.com/col_abc123","events":["\u003cstring>"]}}}},"exampleType":"generated"}},"exampleType":"generated"},"fcb9bf1f-2596-49e5-b78b-70027dbaa8d3":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","isRequired":true,"uniqueKey":"messages.items.[INDEX].code","typeLabel":"number"},"level":{"type":"string","enum":["error","warning","info"],"example":"error","description":"Error level","default":"error","isRequired":true,"uniqueKey":"messages.items.[INDEX].level","typeLabel":"enum\u003cstring>"},"timestamp":{"format":"date-time","type":"string","example":"2024-01-01T00:00:00.00Z","isRequired":true,"uniqueKey":"messages.items.[INDEX].timestamp","typeLabel":"string\u003cdate-time>"},"message":{"type":"string","example":"An error occurred","isRequired":true,"uniqueKey":"messages.items.[INDEX].message","typeLabel":"string"},"details":{"example":["Missing required field"],"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].details.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].details","typeLabel":"string[]"}},"required":["code","level","timestamp","message","details"],"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"}},"required":["messages"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"messages":[{"code":123,"level":"error","timestamp":"2024-01-01T00:00:00.00Z","message":"An error occurred","details":["Missing required field"]}]}}},"exampleType":"generated"}},"exampleType":"generated"},"c07beea5-9cdf-41f8-8e6e-e4634d97baff":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","isRequired":true,"uniqueKey":"messages.items.[INDEX].code","typeLabel":"number"},"level":{"type":"string","enum":["error","warning","info"],"example":"error","description":"Error level","default":"error","isRequired":true,"uniqueKey":"messages.items.[INDEX].level","typeLabel":"enum\u003cstring>"},"timestamp":{"format":"date-time","type":"string","example":"2024-01-01T00:00:00.00Z","isRequired":true,"uniqueKey":"messages.items.[INDEX].timestamp","typeLabel":"string\u003cdate-time>"},"message":{"type":"string","example":"An error occurred","isRequired":true,"uniqueKey":"messages.items.[INDEX].message","typeLabel":"string"},"details":{"example":["Missing required field"],"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].details.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"messages.items.[INDEX].details","typeLabel":"string[]"}},"required":["code","level","timestamp","message","details"],"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"messages","typeLabel":"object[]"}},"required":["messages"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"messages":[{"code":123,"level":"error","timestamp":"2024-01-01T00:00:00.00Z","message":"An error occurred","details":["Missing required field"]}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"4483b9d3-a3bd-461f-8113-58fe95956365":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[]}}},"servers":{"8e9a3119-56d7-456a-b944-1786c8b36af0":{"url":"https://api.teleship.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","bearerFormat":"JWT","type":"http","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"teleship","siteName":"Teleship Developer Hub","title":"Calculate duties and taxes - Teleship Developer Hub","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-06T08:12:26.043Z","originalFileLocation":"api-reference/trade-engine/calculate-duties-and-taxes.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Calculate import duties, taxes, and customs fees for international shipments. How it works: - Provide shipment and commodity details (origin, destination, HS codes, values) - Receive a breakdown of all applicable duties and taxes in the dutiesAndTaxes response Additional Services: - additionalServices.postalDuties: Calculate lower postal duty rates instead of courier rates - additionalServices.taxesCollection: Create a DDU taxes collection (see below) DDU Taxes Collection (when additionalServices.taxesCollection: true): - Requires: incoterms: DDU, trackingNumber, and shipTo.phone OR shipTo.email - Creates a taxes collection record with status pending_classification - Triggers background HS code classification and duty recalculation - Returns dutiesAndTaxes: null (final amount calculated after classification) - Returns collection object with collectionId, status, paymentUrl, and collectionDeadline - Notification channel: Both SMS and email when both provided, otherwise whichever is available - Partner receives webhook when classification completes and collection is ready for payment Why use this? Show landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Teleship Developer Hub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Calculate duties and taxes - Teleship Developer Hub\">\u003cmeta data-mint-head property=\"og:description\" content=\"Calculate import duties, taxes, and customs fees for international shipments. How it works: - Provide shipment and commodity details (origin, destination, HS codes, values) - Receive a breakdown of all applicable duties and taxes in the dutiesAndTaxes response Additional Services: - additionalServices.postalDuties: Calculate lower postal duty rates instead of courier rates - additionalServices.taxesCollection: Create a DDU taxes collection (see below) DDU Taxes Collection (when additionalServices.taxesCollection: true): - Requires: incoterms: DDU, trackingNumber, and shipTo.phone OR shipTo.email - Creates a taxes collection record with status pending_classification - Triggers background HS code classification and duty recalculation - Returns dutiesAndTaxes: null (final amount calculated after classification) - Returns collection object with collectionId, status, paymentUrl, and collectionDeadline - Notification channel: Both SMS and email when both provided, otherwise whichever is available - Partner receives webhook when classification completes and collection is ready for payment Why use this? Show landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Teleship Developer Hub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://teleship.mintlify.app/_mintlify/api/og/v2?division=Trade+engine\u0026amp;title=Calculate+duties+and+taxes\u0026amp;description=Calculate+import+duties%2C+taxes%2C+and+customs+fees+for+international+shipments.%0A%0A**How+it+works%3A**%0A-+Provide+shipment+and+commodity+details+%28origin%2C+destination%2C+\u0026amp;theme=15d994c334089c5d8dc0d05b\u0026amp;signature=e4167530afc0af263a7f5145eea95eaa6ef646bee9ea474496298b48b3991e44\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Calculate duties and taxes - Teleship Developer Hub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Calculate import duties, taxes, and customs fees for international shipments. How it works: - Provide shipment and commodity details (origin, destination, HS codes, values) - Receive a breakdown of all applicable duties and taxes in the dutiesAndTaxes response Additional Services: - additionalServices.postalDuties: Calculate lower postal duty rates instead of courier rates - additionalServices.taxesCollection: Create a DDU taxes collection (see below) DDU Taxes Collection (when additionalServices.taxesCollection: true): - Requires: incoterms: DDU, trackingNumber, and shipTo.phone OR shipTo.email - Creates a taxes collection record with status pending_classification - Triggers background HS code classification and duty recalculation - Returns dutiesAndTaxes: null (final amount calculated after classification) - Returns collection object with collectionId, status, paymentUrl, and collectionDeadline - Notification channel: Both SMS and email when both provided, otherwise whichever is available - Partner receives webhook when classification completes and collection is ready for payment Why use this? Show landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://teleship.mintlify.app/_mintlify/api/og/v2?division=Trade+engine\u0026amp;title=Calculate+duties+and+taxes\u0026amp;description=Calculate+import+duties%2C+taxes%2C+and+customs+fees+for+international+shipments.%0A%0A**How+it+works%3A**%0A-+Provide+shipment+and+commodity+details+%28origin%2C+destination%2C+\u0026amp;theme=15d994c334089c5d8dc0d05b\u0026amp;signature=e4167530afc0af263a7f5145eea95eaa6ef646bee9ea474496298b48b3991e44\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/teleship/HVxbiRIF3fulOF4k/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Teleship Developer Hub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3ECC5F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/trade-engine/calculate-duties-and-taxes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.teleship.com/#organization\",\"name\":\"Teleship Developer Hub\",\"url\":\"https://developers.teleship.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/teleship/xJxPL0DYWRieARJx/logo/light.svg?fit=max\u0026auto=format\u0026n=xJxPL0DYWRieARJx\u0026q=85\u0026s=9f57a70ccd14e9396feffe27a690b353\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.teleship.com#website\",\"name\":\"Teleship Developer Hub\",\"url\":\"https://developers.teleship.com\",\"publisher\":{\"@id\":\"https://developers.teleship.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes#webpage\",\"url\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes\",\"name\":\"Calculate duties and taxes\",\"description\":\"Calculate import duties, taxes, and customs fees for international shipments. How it works: - Provide shipment and commodity details (origin, destination, HS codes, values) - Receive a breakdown of all applicable duties and taxes in the dutiesAndTaxes response Additional Services: - additionalServices.postalDuties: Calculate lower postal duty rates instead of courier rates - additionalServices.taxesCollection: Create a DDU taxes collection (see below) DDU Taxes Collection (when additionalServices.taxesCollection: true): - Requires: incoterms: DDU, trackingNumber, and shipTo.phone OR shipTo.email - Creates a taxes collection record with status pending_classification - Triggers background HS code classification and duty recalculation - Returns dutiesAndTaxes: null (final amount calculated after classification) - Returns collection object with collectionId, status, paymentUrl, and collectionDeadline - Notification channel: Both SMS and email when both provided, otherwise whichever is available - Partner receives webhook when classification completes and collection is ready for payment Why use this? Show landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\",\"dateModified\":\"2026-05-06T08:12:26.043Z\",\"isPartOf\":{\"@id\":\"https://developers.teleship.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trade engine\",\"item\":\"https://developers.teleship.com/api-reference/trade-engine/classify-commodities\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calculate duties and taxes\",\"item\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes#apireference\",\"headline\":\"Calculate duties and taxes\",\"name\":\"Calculate duties and taxes\",\"description\":\"Calculate import duties, taxes, and customs fees for international shipments. How it works: - Provide shipment and commodity details (origin, destination, HS codes, values) - Receive a breakdown of all applicable duties and taxes in the dutiesAndTaxes response Additional Services: - additionalServices.postalDuties: Calculate lower postal duty rates instead of courier rates - additionalServices.taxesCollection: Create a DDU taxes collection (see below) DDU Taxes Collection (when additionalServices.taxesCollection: true): - Requires: incoterms: DDU, trackingNumber, and shipTo.phone OR shipTo.email - Creates a taxes collection record with status pending_classification - Triggers background HS code classification and duty recalculation - Returns dutiesAndTaxes: null (final amount calculated after classification) - Returns collection object with collectionId, status, paymentUrl, and collectionDeadline - Notification channel: Both SMS and email when both provided, otherwise whichever is available - Partner receives webhook when classification completes and collection is ready for payment Why use this? Show landed cost estimates to customers, avoid surprise fees, ensure customs compliance, and collect duties from consignees for DDU shipments.\",\"url\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes\",\"mainEntityOfPage\":{\"@id\":\"https://developers.teleship.com/api-reference/trade-engine/calculate-duties-and-taxes#webpage\"},\"dateModified\":\"2026-05-06T08:12:26.043Z\",\"publisher\":{\"@id\":\"https://developers.teleship.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.teleship.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Teleship Developer Hub\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Teleship Developer Hub","nav":{"global":null,"tabs":[{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Teleship API","sidebarTitle":"Home","icon":"house","href":""}]},{"group":"Authentication","pages":[{"title":"Authorize App","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /oauth/authorize","href":"/api-reference/authentication/authorize-app"},{"title":"Get access token","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /oauth/token","href":"/api-reference/authentication/get-access-token"},{"title":"Refresh access token","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /oauth/refresh","href":"/api-reference/authentication/refresh-access-token"}]},{"group":"Shipping services","pages":[{"title":"Get all services","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/services","href":"/api-reference/shipping-services/get-all-services"},{"title":"Get shipping quotes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/rates/quotes","href":"/api-reference/shipping-services/get-shipping-quotes"},{"title":"Create shipping label","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/shipments/labels","href":"/api-reference/shipping-services/create-shipping-label"},{"title":"Retrieve shipping details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/shipments/labels/{shipmentId}","href":"/api-reference/shipping-services/retrieve-shipping-details"},{"title":"Void shipping label","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/shipments/labels/{shipmentId}/void","href":"/api-reference/shipping-services/void-shipping-label"},{"title":"Upload shipping document","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /documents/etds/upload","href":"/api-reference/shipping-services/upload-shipping-document"},{"title":"Sync tracking data","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/tracking/sync-tracking","href":"/api-reference/shipping-services/sync-tracking-data"},{"title":"Get tracking details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/tracking/{trackingNumber}","href":"/api-reference/shipping-services/get-tracking-details"},{"title":"Create a manifest","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/manifests","href":"/api-reference/shipping-services/create-a-manifest"},{"title":"Retrieve a manifest","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/manifests/{manifestId}","href":"/api-reference/shipping-services/retrieve-a-manifest"},{"title":"Schedule pickup","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/pickups","href":"/api-reference/shipping-services/schedule-pickup"},{"title":"Cancel pickup","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/pickups/{pickupId}/cancel","href":"/api-reference/shipping-services/cancel-pickup"},{"title":"Get all webhooks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/webhooks","href":"/api-reference/shipping-services/get-all-webhooks"},{"title":"Register webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/webhooks","href":"/api-reference/shipping-services/register-webhook-endpoint"},{"title":"Test webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/webhooks/test","href":"/api-reference/shipping-services/test-webhook-endpoint"},{"title":"Delete webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api/webhooks/{id}","href":"/api-reference/shipping-services/delete-webhook"}]},{"group":"Trade engine","pages":[{"title":"Classify commodities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/trade-engine/classifications","href":"/api-reference/trade-engine/classify-commodities"},{"title":"Get HTS restrictions for products","description":"Retrieve HTS/HS code restrictions for multiple products without performing classification.\n\n**What you get:**\n- Import restrictions and compliance requirements for each product\n- Region-specific filtering (US, EU27, ROW)\n- Review state tracking (if productId/variantId provided)\n- Progressive HTS code matching for maximum coverage\n\n**Use case:**\nIdentify import restrictions, licensing requirements, and compliance obligations for products with existing HS codes.\n\n**Key Features:**\n- Destination country filtering: Filter restrictions by destination and additional regions\n- Review state: Track which restrictions have been reviewed by merchants\n- Flexible lookup: Match products by productId, variantId, or hsCode\n- Progressive matching: Matches HS codes at multiple specificity levels (e.g., 8471.30.01 → 8471.30 → 8471)\n\n**Note:** Unlike the classifications endpoint, this does NOT perform HS code classification. Use this when you already have HS codes and only need restrictions.\n","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/trade-engine/hts-compliance","href":"/api-reference/trade-engine/get-hts-restrictions-for-products"},{"title":"Calculate duties and taxes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/trade-engine/duties-taxes","href":"/api-reference/trade-engine/calculate-duties-and-taxes"},{"title":"List duties/taxes API usage audit logs for the authenticated account","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/trade-engine/duties-usage-logs","href":"/api-reference/trade-engine/list-dutiestaxes-api-usage-audit-logs-for-the-authenticated-account"},{"title":"Get a single duties/taxes API usage audit log for the authenticated account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/trade-engine/duties-usage-logs/{id}","href":"/api-reference/trade-engine/get-a-single-dutiestaxes-api-usage-audit-log-for-the-authenticated-account"},{"title":"Get duties/taxes API usage statistics for the authenticated account","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/trade-engine/duties-usage-stats","href":"/api-reference/trade-engine/get-dutiestaxes-api-usage-statistics-for-the-authenticated-account"}]},{"group":"Taxes collections","pages":[{"title":"List taxes collections","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/taxes-collections","href":"/api-reference/taxes-collections/list-taxes-collections"},{"title":"Export taxes collections as CSV","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/taxes-collections/export","href":"/api-reference/taxes-collections/export-taxes-collections-as-csv"},{"title":"Get a taxes collection by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api/taxes-collections/{id}","href":"/api-reference/taxes-collections/get-a-taxes-collection-by-id"},{"title":"Process duty payment for a collection","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /api/taxes-collections/{id}/payment","href":"/api-reference/taxes-collections/process-duty-payment-for-a-collection"}]}]}]},"basePath":"","title":"Calculate duties and taxes - Teleship Developer Hub","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}