API v2 · 1.0.0
Tarifflo API reference
Generated from the OpenAPI 3.1.0 document. Every path is relative to https://api.tarifflo.com/api/v2.
Security schemes
ApiKey: API key in the header X-API-KeyBearer: HTTP bearerA `tflo_` API key as a bearer token.
Operations
- post/sort-sessions
- get/sort-sessions/{sortSessionId}
- delete/sort-sessions/{sortSessionId}
- post/sort-sessions/{sortSessionId}/files
- post/sort-sessions/{sortSessionId}/files/confirm
- post/sort-sessions/{sortSessionId}/start
- get/products/{productId}/classification
- post/sort-sessions/{sortSessionId}/products
- get/sort-sessions/{sortSessionId}/questions
- post/sort-sessions/{sortSessionId}/answers
- post/origin
- get/origin/{jobId}
Uploads
/sort-sessionsCreate an upload on a configuration
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
configurationIdstringnamestringmin length 1max length 100pattern: ^[a-zA-Z0-9-_ ]+$
Responses
200Successful response
application/json
idstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}Where the upload stands
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Responses
200Successful response
application/json
idstringrequirednamestringrequiredconfigurationIdstringrequiredlanestringrequiredOne ofentryclassificationrunsobject[]required5 fields per item
scopestringrequiredOne ofuploadentryrefIdstringrequiredrunIdstringrequiredstatusstringrequiredOne ofrunningblockedcompletefailedcancelledstagesobject[]required8 fields per item
keystringrequiredstatusstringrequiredOne ofpendingrunningfinalizingcomplete_with_openawaiting_gateheldcompletefailedblockedskippedtotalnumberrequiredcompletednumberrequiredfailednumberrequiredparkednumberrequiredawaitingInputnumberrequiredcreditsNeedednumber | nullrequired
countsobject | nullrequired2 options
Any of
1.objectproductsnumberrequiredclassifiednumberrequiredwithOriginnumberrequiredpricednumberrequiredcomparednumberrequiredunpriceablenumberrequiredpendingApprovalnumberrequired
2.nullreportobject | object | object | nullrequired2 options
Any of
1.object | object | objectOne of
1.objectstate"ready"requiredrunIdstringrequiredreportIdstringrequiredfileNamestringrequiredurlstringrequiredexpiresInMinutesnumberrequired
2.objectstate"building"requiredrunIdstringrequired
3.objectstate"unavailable"requiredreasonstringrequired
2.null
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}Delete an upload and everything under it
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Responses
200Successful response
application/json
deletedtruerequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}/filesAdd files to an upload: one signed PUT URL per file
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Request body · required
application/json
entrySessionIdstring | nullfilesobject[]requiredmin items 1max items 2006 fields per item
filenamestringrequiredmin length 1mimeTypestringrequiredmin length 1sizeintegerrequired≥ 0≤ 104857600pathstring[]max items 50default: []contentHashstringdeclaredDoctype"product_sheet"
Responses
200Successful response
application/json
resultsobject[]required6 fields per item
packetIdstringrequiredsignedUrlstring | nullrequiredfilenamestringrequiredpathstring[]requiredreusedbooleanrequiredentryAttachmentstring | nullrequired
mintednumberrequiredreusednumberrequiredattributednumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}/files/confirmConfirm the files whose PUT landed
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Request body · required
application/json
packetIdsstring[]requiredmin items 1max items 200
Responses
200Successful response
application/json
confirmednumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}/startStart, or re-drive, the upload's run
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Responses
200Successful response
application/json
queuedCountnumberrequiredrunIdstring | nullrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/products/{productId}/classificationA product's rate facts and its printed-code comparison
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
productIdstringrequired
Responses
200Successful response
application/json
factsobjectrequired3 fields
entryDatestring | nullrequiredshipmentValuenumber | nullrequiredsharesobjectrequired4 fields
steelnumberaluminumnumbercoppernumberusContentnumber
comparisonobject | nullrequired2 options
Any of
1.objectproduct_idstringrequireddestinationstringrequiredoriginstring | nullrequiredoriginal_codestringrequiredproposed_codestringrequiredoriginal_ratenumber | nullrequiredproposed_ratenumber | nullrequireddelta_ptsnumber | nullrequiredcustoms_valuenumber | nullrequiredsavingsnumber | nullrequiredrisk_scorenumberrequiredriskstringrequiredrisk_reasonsstring[]required
2.nullcomponentsobject[]required13 fields per item
product_idstringrequireddestinationstringrequiredoriginstring | nullrequiredoriginal_codestringrequiredproposed_codestringrequiredoriginal_ratenumber | nullrequiredproposed_ratenumber | nullrequireddelta_ptsnumber | nullrequiredcustoms_valuenumber | nullrequiredsavingsnumber | nullrequiredrisk_scorenumberrequiredriskstringrequiredrisk_reasonsstring[]required
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}/productsA page of the upload's products, filtered and sorted
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Request body · required
application/json
startRowintegerrequired≥ 0≤ 9007199254740991endRowintegerrequired≥ 1≤ 9007199254740991statusstringOne ofPENDINGPROCESSINGAWAITING_INPUTPENDING_APPROVALAPPROVEDREJECTEDCOMPLETEDUPLOADEDFAILEDsearchstringmin length 1max length 100sortobject2 fields
columnstringrequiredOne ofnamedescriptionoriginhtsstatusupdatedAtdirectionstringrequiredOne ofascdesc
Responses
200Successful response
application/json
rowsobject[]required11 fields per item
idstringrequirednamestringrequireddescriptionstringrequiredstatusstringrequiredOne ofPENDINGPROCESSINGAWAITING_INPUTPENDING_APPROVALAPPROVEDREJECTEDCOMPLETEDUPLOADEDFAILEDcodestring | nullrequiredoriginstring | nullrequiredoriginalCodestring | nullrequiredoriginalRatestring | nullrequiredratestring | nullrequiredeccnstring | nullrequiredupdatedAtstringrequired
totalnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}/questionsThe open questions as a sheet to fill in
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Query parameters
timeZonestringmax length 64
Responses
200Successful response
application/json
Any of
urlstringrequiredfileNamestringrequiredquestionsnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/sort-sessions/{sortSessionId}/answersThe questions sheet, filled in
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Request body · required
application/json
fileBase64stringrequiredmin length 1max length 30000000
Responses
200Successful response
application/json
answeredRowsnumberrequiredunmatchedRowsnumberrequiredanswerednumberrequiredresumedJobsnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Configuration
/sort-sessions/{sortSessionId}/pipeline-configurationsList the configurations a sort session can pick
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequired
Responses
200Successful response
application/json
configurationsobject[]required12 fields per item
idstringrequirednamestringrequireddescriptionstringrequiredisDefaultbooleanrequiredlockedbooleanrequiredisTemporarybooleanrequiredgeneralobjectrequired6 fields
requiredContentmap<string, boolean>requiredKeysfiled_baselineproduct_descriptionhts_codeline_valuequantitycountry_of_originentry_datetransport_eventimporter_identityunidentifiedDocumentsstringrequiredOne ofskipaskfilerIdstring | nullrequiredreuseByHashmap<string, boolean>requiredKeysbeads_factsincludeLiquidatedbooleanrequiredfilingobjectrequired2 fields
savingsThresholdUsdnumberrequired≥ 0dutyDecreasesOnlybooleanrequired
jobsmap<string, object>requiredKeys 15 values
sort_documentsagent_sortclassify_productsweb_searcheccncoospipgaadcvddutyreviewreportvalidateapproved_codesstage_filing1 field per value
onbooleanrequired
validationRulesmap<string, boolean>requiredKeys 42 values
civ_ior_namedciv_us_consignee_for_foreign_iorciv_description_sufficientciv_country_of_originciv_quantityciv_set_components_reconcileciv_unit_and_total_valueciv_total_reconcilesciv_currencyciv_incoterms_or_chargesciv_value_adjustmentsciv_manufacturer_identifiedciv_documents_belonges_parties_match_cives_coo_matches_cives_country_of_export_matches_transportes_export_date_after_ladinges_hts_matches_cives_part_number_correctes_all_civ_hts_presentes_spi_supportedes_values_match_cives_quantities_match_cives_currency_and_exchange_ratees_adjustments_match_incotermses_assists_declaredes_commissions_declaredes_first_sale_supportedes_mid_is_actual_manufactureres_relationship_recordedes_article_set_reproducedes_set_origin_dominancees_set_component_quantitieses_ch99_consistentes_232_claim_matches_descriptiones_232_claim_contradictedes_fees_mpf_hmfes_lines_completees_port_of_lading_matches_transportes_gross_weight_matches_packinges_ior_number_matches_profilees_pga_evidence_presentunsetValidationRulesstring[]requiredread-onlybillingobjectrequired1 field
actionstringrequiredOne ofentry_preparedper_beadnone
lanestringrequiredOne ofentryclassification
temporaryobject | nullrequired2 options
Any of
1.objectidstringrequirednamestringrequireddescriptionstringrequiredisDefaultbooleanrequiredlockedbooleanrequiredisTemporarybooleanrequiredgeneralobjectrequired6 fields
requiredContentmap<string, boolean>requiredKeysfiled_baselineproduct_descriptionhts_codeline_valuequantitycountry_of_originentry_datetransport_eventimporter_identityunidentifiedDocumentsstringrequiredOne ofskipaskfilerIdstring | nullrequiredreuseByHashmap<string, boolean>requiredKeysbeads_factsincludeLiquidatedbooleanrequiredfilingobjectrequired2 fields
savingsThresholdUsdnumberrequired≥ 0dutyDecreasesOnlybooleanrequired
jobsmap<string, object>requiredKeys 15 values
sort_documentsagent_sortclassify_productsweb_searcheccncoospipgaadcvddutyreviewreportvalidateapproved_codesstage_filing1 field per value
onbooleanrequired
validationRulesmap<string, boolean>requiredKeys 42 values
civ_ior_namedciv_us_consignee_for_foreign_iorciv_description_sufficientciv_country_of_originciv_quantityciv_set_components_reconcileciv_unit_and_total_valueciv_total_reconcilesciv_currencyciv_incoterms_or_chargesciv_value_adjustmentsciv_manufacturer_identifiedciv_documents_belonges_parties_match_cives_coo_matches_cives_country_of_export_matches_transportes_export_date_after_ladinges_hts_matches_cives_part_number_correctes_all_civ_hts_presentes_spi_supportedes_values_match_cives_quantities_match_cives_currency_and_exchange_ratees_adjustments_match_incotermses_assists_declaredes_commissions_declaredes_first_sale_supportedes_mid_is_actual_manufactureres_relationship_recordedes_article_set_reproducedes_set_origin_dominancees_set_component_quantitieses_ch99_consistentes_232_claim_matches_descriptiones_232_claim_contradictedes_fees_mpf_hmfes_lines_completees_port_of_lading_matches_transportes_gross_weight_matches_packinges_ior_number_matches_profilees_pga_evidence_presentunsetValidationRulesstring[]requiredread-onlybillingobjectrequired1 field
actionstringrequiredOne ofentry_preparedper_beadnone
lanestringrequiredOne ofentryclassification
2.nullselectedIdstring | nullrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/pipeline-configurationsList the organization's pipeline configurations
Requires the API key scope `filing`.
ApiKeyorBearerResponses
200Successful response
application/json
idstringrequirednamestringrequireddescriptionstringrequiredisDefaultbooleanrequiredlockedbooleanrequiredisTemporarybooleanrequiredgeneralobjectrequired6 fields
requiredContentmap<string, boolean>requiredKeysfiled_baselineproduct_descriptionhts_codeline_valuequantitycountry_of_originentry_datetransport_eventimporter_identityunidentifiedDocumentsstringrequiredOne ofskipaskfilerIdstring | nullrequiredreuseByHashmap<string, boolean>requiredKeysbeads_factsincludeLiquidatedbooleanrequiredfilingobjectrequired2 fields
savingsThresholdUsdnumberrequired≥ 0dutyDecreasesOnlybooleanrequired
jobsmap<string, object>requiredKeys 15 values
sort_documentsagent_sortclassify_productsweb_searcheccncoospipgaadcvddutyreviewreportvalidateapproved_codesstage_filing1 field per value
onbooleanrequired
validationRulesmap<string, boolean>requiredKeys 42 values
civ_ior_namedciv_us_consignee_for_foreign_iorciv_description_sufficientciv_country_of_originciv_quantityciv_set_components_reconcileciv_unit_and_total_valueciv_total_reconcilesciv_currencyciv_incoterms_or_chargesciv_value_adjustmentsciv_manufacturer_identifiedciv_documents_belonges_parties_match_cives_coo_matches_cives_country_of_export_matches_transportes_export_date_after_ladinges_hts_matches_cives_part_number_correctes_all_civ_hts_presentes_spi_supportedes_values_match_cives_quantities_match_cives_currency_and_exchange_ratees_adjustments_match_incotermses_assists_declaredes_commissions_declaredes_first_sale_supportedes_mid_is_actual_manufactureres_relationship_recordedes_article_set_reproducedes_set_origin_dominancees_set_component_quantitieses_ch99_consistentes_232_claim_matches_descriptiones_232_claim_contradictedes_fees_mpf_hmfes_lines_completees_port_of_lading_matches_transportes_gross_weight_matches_packinges_ior_number_matches_profilees_pga_evidence_presentunsetValidationRulesstring[]requiredread-onlybillingobjectrequired1 field
actionstringrequiredOne ofentry_preparedper_beadnone
lanestringrequiredOne ofentryclassification
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Rate report
/sort-sessions/{sortSessionId}/rate-reportBuild or fetch the upload's rate report at each product's origin on file
Requires the API key scope `tariff_rates`.
ApiKeyorBearerPath parameters
sortSessionIdstringrequiredmin length 1
Request body · required
application/json
restartboolean
Responses
200Successful response
application/json
One of
state"ready"requiredrunIdstringrequiredreportIdstringrequiredfileNamestringrequiredurlstringrequiredexpiresInMinutesnumberrequired
state"building"requiredrunIdstringrequired
state"unavailable"requiredreasonstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Entries
/entriesFile an entry summary
Validates, writes and submits a whole entry summary. CBP's answer arrives as an `entry.disposition` webhook. A repeat of an Idempotency-Key answers the first result with `Idempotent-Replayed: true`. Requires the API key scope `entries:write`.
ApiKeyorBearerHeaders
Idempotency-Keystringrequiredmin length 1max length 255
Request body · required
application/json
The entry summary to file; its shape is documented at https://tarifflo.com/docs/v2.
webhookUrlstringWhere the `entry.disposition` webhook goes; defaults to the key environment's URL.
Responses
201Filed and submitted to CBP
application/json
efidstringrequiredentryNumbernumbershortJobIdstringrequiredstatus"AWAITING_CBP"required
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
409The first request with this Idempotency-Key is still filing
application/json
errorobjectrequired7 fields
codestringrequiredexample: CONFLICTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
412No webhook URL for the key's environment
application/json
errorobjectrequired7 fields
codestringrequiredexample: PRECONDITION_FAILEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
422The entry is not valid
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNPROCESSABLE_CONTENTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
502Submitting to CBP failed
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_GATEWAYmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}Delete an entry
Requires the API key scope `entries:write`.
ApiKeyorBearerPath parameters
efidstringrequired
Responses
200Successful response
application/json
idstringrequiredmessagestringrequiredOne ofSuccessfully deletedRequest to delete sent to CBP
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/responsesGet CBP's entry summary response for an entry
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Responses
200Successful response
application/json
dispositionobject | nullrequired2 options
Any of
1.objectgroupReferenceobjectrequired3 fields
dataTypestringrequiredcontentstringpositionnumber
responseobjectrequired8 fields
dispositionTypestringseverityCodestringconditionCodestringrequireddescriptionstringrequiredfilerCodestringentryNumbernumberentryVersionnumberreferenceNumberstring
2.nullconditionsobject[]required2 fields per item
referencePathobject[]required3 fields per item
dataTypestringrequiredcontentstringpositionnumber
responsesobject[]required8 fields per item
dispositionTypestringseverityCodestringconditionCodestringrequireddescriptionstringrequiredfilerCodestringentryNumbernumberentryVersionnumberreferenceNumberstring
hasInternalErrorbooleanrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/cargo-releaseGet CBP's cargo release response for an entry
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Responses
200Successful response
application/json
Any of
dispositionobjectrequired3 fields
messageTypeCodestringrequiredstatusstringrequiredOne ofDRAFTAWAITING CBPAPPROVEDDENIEDWARNINGINFOINTERNAL ERRORdescriptionstringrequired
conditionGroupsobject[]required2 fields per item
referencePathobject[]required3 fields per item
dataTypestringrequiredcontentstringpositionnumber
responsesobject[]required6 fields per item
messageTypeCodestringrequiredmessageIdentifierCodestringrequirednarrativeMessagestringrequiredactionDatestringactionTimestringreleaseDatestring
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/isfGet CBP's ISF response for an entry
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Responses
200Successful response
application/json
Any of
dispositionobjectrequired4 fields
messageTypeCodestringrequiredstatusstringrequiredOne ofDRAFTAWAITING CBPAPPROVEDDENIEDWARNINGINTERNAL ERRORdescriptionstringrequiredisfTransactionNumberstring
conditionGroupsobject[]required2 fields per item
referencePathobject[]required3 fields per item
dataTypestringrequiredcontentstringpositionnumber
responsesobject[]required3 fields per item
messageTypeCodestringrequiredmessageIdentifierCodestringrequirednarrativeMessagestringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/batch-errorsList CBP batch rejects against an entry
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Responses
200Successful response
application/json
idstringrequiredshortJobIdstringrequiredappIdCodestringconditionsobject[]required7 fields per item
idstringrequiredseverityCodestringrequiredconditionCodestringrequirednarrativeTextstringrequiredreferenceTypestringreferenceOccurrencenumberreferenceTextstring
receivedAtstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/notificationsList CBP status notifications for an entry
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Responses
200Successful response
application/json
idstringrequiredentryNumberstringrequiredfilerCodestringrequiredreceivedAtstringrequireddispositionTypeCodestringrequirednotificationReasonCodestringrequireddateOfActionstringlineItemIdentifierstringrequiredremarksTextstringrequiredcbpUserstringrequiredtelephoneNumberstringrequiredtelephoneExtensionNumberstringrequiredactionIdentificationNumberstringrequiredquotaLinesobject[]required8 fields per item
idstringrequiredlineItemIdentifierstringrequiredstatusCodestringrequiredstatusDescriptionstringrequiredrequestedQuantitynumberrequestedUomstringrequiredreservedQuantitynumberreservedUomstringrequired
pgaStatusesobject[]required10 fields per item
idstringrequiredagencyCodestringrequiredprogramCodestringrequiredentryLevelStatusCodestringrequiredentryLevelStatusMessagestringrequiredlineLevelStatusCodestringrequiredstatusReasonCodestringrequiredlineRangestringactionAtstringcommentsstring[]required
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/importerSet or clear an entry's importer
Requires the API key scope `entries:write`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Request body · required
application/json
importerIdstring | nullrequired
Responses
200Successful response
application/json
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{versionId}/versionsList every version of an entry
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
versionIdstringrequiredmin length 1
Responses
200Successful response
application/json
idstringrequiredversionIdstringrequiredheaderIdstringorganizationIdstringrequiredentryNumbernumbersubmittedAtstringimporterNamestringtotalValuenumbertotalDutynumberproductsnumberstatusstringrequiredOne of 18 values
DRAFTAWAITING CBPAPPROVEDDENIEDWARNINGPGA WARNINGINFOINTERNAL ERRORUNKNOWNCBP CONTROLLEDDOCUMENTS REQUESTEDDOCUMENTS RECEIVEDINACTIVATEDCANCELLEDPSC REVERTEDTIB DENIEDPGA UPDATELIQUIDATEDnumActionItemsnumberrequiredtypestringbrokerReferenceNumberstringinternalNamestringcbpSourcedbooleanisLatestboolean
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/copiesCreate a new entry from an existing one
Requires the API key scope `entries:write`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Responses
200Successful response
application/json
shippingobjectrequired1 field
idstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/entries/{efid}/draftsOpen a new draft version of an entry
Requires the API key scope `entries:write`.
ApiKeyorBearerPath parameters
efidstringrequiredmin length 1
Responses
200Successful response
application/json
efidstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Audit
/audit/uploadsGet an audit upload URL
A presigned PUT URL for one document. PUT the bytes, then start a run with the returned `fileId`. Requires the API key scope `audit`.
ApiKeyorBearerRequest body · required
application/json
filenamestringrequiredPDF, Excel, Word, CSV or an image; the type is checked again from the bytes.
min length 1max length 500mimeTypestringrequiredmin length 1max length 200
Responses
200Successful response
application/json
fileIdstringrequiredPass it in `fileIds` when starting the run.
uploadUrlstringrequiredPUT the file's bytes here, with the declared `mimeType` as Content-Type.
expiresInSecondsnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/audit/uploads/bulkGet many audit upload URLs
Presigned PUT URLs for up to 50 documents; one unsupported file type refuses the whole call. Requires the API key scope `audit`.
ApiKeyorBearerRequest body · required
application/json
filesobject[]requiredmin items 1max items 502 fields per item
filenamestringrequiredPDF, Excel, Word, CSV or an image; the type is checked again from the bytes.
min length 1max length 500mimeTypestringrequiredmin length 1max length 200
Responses
200Successful response
application/json
uploadsobject[]required3 fields per item
fileIdstringrequiredPass it in `fileIds` when starting the run.
uploadUrlstringrequiredPUT the file's bytes here, with the declared `mimeType` as Content-Type.
expiresInSecondsnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/audit/runsStart a pre-audit run
Files the uploaded documents under a fresh audit request and runs the pre-audit (ingest, classification, rate and savings). Answers 202 with the run id; the result is delivered as a `pre_audit.completed` webhook to the key environment's URL (or `Tarifflo-Webhook-Url`) and pollable at GET /audit/runs/{jobId}. `config: "post"` (PSC) is not available yet. Requires the API key scope `audit`.
ApiKeyorBearerHeaders
Idempotency-KeystringRepeats of the same request with the same key answer the first result (72 hours) with `Idempotent-Replayed: true`.
max length 255
Request body · required
application/json
configstringrequiredOne ofprepostfileIdsstring[]requiredmin items 1max items 50clientNamestringThe audit client to file under (default "API Intake").
min length 1max length 200requestNamestringmin length 1max length 200destinationCountriesstring[]Markets to rate for (default US).
dryRunbooleanPrice the request at the organization's card and reserve nothing; answers 200 with the estimate.
Responses
202Queued (or, for `dryRun`, priced with 200)
application/json
Any of
jobIdstringrequiredThe run id: poll GET /audit/runs/{jobId}.
creditsobjectWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"queued"requiredconfig"pre"requiredfilesQueuednumberrequiredmessagestringrequired
dryRuntruerequiredestimatedCreditsnumberrequiredlinesobject[]required3 fields per item
actionstringrequiredOne of 16 values
rate_lookupadcvd_screenpga_applicabilitycode_classifiedexport_controlorigin_determinationentry_filedentry_prepareddocument_ocrdocument_extractdocument_sortproduct_enrichentry_reviewrationale_documentaudit_parsedata_exportunitsnumberrequiredcreditsnumberrequired
balancenumberrequiredunitstringrequiredOne oftokencreditnotestring
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
402Not enough credits
application/json
errorobjectrequired7 fields
codestringrequiredexample: PAYMENT_REQUIREDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
409The first request with this Idempotency-Key is still filing
application/json
errorobjectrequired7 fields
codestringrequiredexample: CONFLICTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
501`config: "post"` is not available yet
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_IMPLEMENTEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/audit/runs/{jobId}Get a pre-audit run
The run's status; once complete, `data` is the `pre_audit.completed` webhook's `data`. Requires the API key scope `audit`.
ApiKeyorBearerPath parameters
jobIdstringrequired
Responses
200Successful response
application/json
Any of
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"failed"requirederrorobjectrequired2 fields
code"RUN_FAILED"requiredmessagestringrequired
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
statusstringrequiredOne ofqueuedprocessingblockedstagesCompletenumberrequiredstagesTotalnumberrequiredcreditsNeedednumberCredits the run waits for (`blocked` only).
purchaseUrlstringWhere to add credits (`blocked` only).
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"complete"requiredeventstringrequiredThe webhook event that delivered the same `data`.
The run's result, exactly the webhook's `data`.
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Billing
/pricingGet the price list
Credits per unit for every billable action at list price. Public: needs no key.
Responses
200Successful response
application/json
creditCentsnumberrequiredWhat one credit costs, in US cents.
actionsobject[]required5 fields per item
actionstringrequiredOne of 16 values
rate_lookupadcvd_screenpga_applicabilitycode_classifiedexport_controlorigin_determinationentry_filedentry_prepareddocument_ocrdocument_extractdocument_sortproduct_enrichentry_reviewrationale_documentaudit_parsedata_exportunitstringrequiredcreditsnumberrequiredlistCreditsnumberrequiredusdnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/creditsGet the credit balance
The organization's balance, the current cycle's allowance and what each action consumed this cycle. Any valid API key.
ApiKeyorBearerResponses
200Successful response
application/json
unitstringrequiredAlways "credit": every amount here is presented in credits, whatever the ledger counts in.
One oftokencreditbalancenumberrequiredreservednumberrequiredHeld by running work.
usednumberrequiredfloornumberrequiredcurrentCycleobject | nullrequired2 options
Any of
1.objectstartstringrequiredendstring | nullrequiredallowancenumberrequiredconsumednumberrequired
2.nullperActionobject[]required3 fields per item
actionstringrequiredunitsnumberrequiredcreditsnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/usageGet settled usage
Settled usage between `from` and `to` (ISO dates; default the last 30 days, at most a year), grouped by action, key, user or run. Any valid API key.
ApiKeyorBearerQuery parameters
groupBystringOne ofactionkeyuserrunfromstringtostringlimitstring
Responses
200Successful response
application/json
fromstringrequiredtostringrequiredgroupBystringrequiredOne ofactionkeyuserrununitstringrequiredAlways "credit": every amount here is presented in credits, whatever the ledger counts in.
One oftokencreditrowsobject[]required4 fields per item
keystring | nullrequiredunitsnumberrequiredcreditsnumberrequiredlistCreditsnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Classification
/classifications/batchClassify many products
Bulk HTS classification of `items` (inline) or `inputKey` (an uploaded JSONL file). Answers 202 with the batch id; the results are delivered to the key environment's webhook URL (or `Tarifflo-Webhook-Url`) and pollable at GET /classifications/batch/{batchId}. Requires the API key scope `classifications`.
ApiKeyorBearerHeaders
Idempotency-KeystringRepeats of the same request with the same key answer the first result (72 hours) with `Idempotent-Replayed: true`.
max length 255
Request body · required
application/json
itemsobject[]Up to 10000 rows inline; `id` is echoed back on each result.
max items 100002 fields per item
idstringtextstringrequiredmin length 1
inputKeystringA JSONL file of {id?,text} rows, from POST /classifications/batch/upload-url.
dryRunbooleanPrice the request at the organization's card and reserve nothing; answers 200 with the estimate.
Responses
202Queued (or, for `dryRun`, priced with 200)
application/json
Any of
jobIdstringrequiredThe batch id: poll GET /classifications/batch/{batchId}.
creditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"queued"requireditemsQueuednumberrequiredmessagestringrequired
dryRuntruerequiredestimatedCreditsnumberrequiredlinesobject[]required3 fields per item
actionstringrequiredOne of 16 values
rate_lookupadcvd_screenpga_applicabilitycode_classifiedexport_controlorigin_determinationentry_filedentry_prepareddocument_ocrdocument_extractdocument_sortproduct_enrichentry_reviewrationale_documentaudit_parsedata_exportunitsnumberrequiredcreditsnumberrequired
balancenumberrequiredunitstringrequiredOne oftokencreditnotestring
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
402Not enough credits
application/json
errorobjectrequired7 fields
codestringrequiredexample: PAYMENT_REQUIREDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
409The first request with this Idempotency-Key is still filing
application/json
errorobjectrequired7 fields
codestringrequiredexample: CONFLICTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
413The file or the row count is over the limit
application/json
errorobjectrequired7 fields
codestringrequiredexample: PAYLOAD_TOO_LARGEmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/classifications/batch/upload-urlGet a batch upload URL
A presigned PUT URL (valid 900 seconds) for a JSONL file of {id?,text} rows. PUT the file, then start the batch with the returned `inputKey`. Requires the API key scope `classifications`.
ApiKeyorBearerRequest body · required
application/json
filenamestringrequiredmin length 1max length 256
Responses
200Successful response
application/json
uploadUrlstringrequiredinputKeystringrequiredexpiresInSecondsnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/classifications/batch/{batchId}Get a classification batch
The batch's status and one page (1000 rows, `page` from 0) of its results once it completes. Requires the API key scope `classifications`.
ApiKeyorBearerPath parameters
batchIdstringrequired
Query parameters
pagestring
Responses
200Successful response
application/json
batchIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
statusstringrequiredstatestringrequiredSUBMITTED, RUNNING, COMPLETED or FAILED; results appear once COMPLETED.
expectedCountnumberrequiredshardsSettlednumberrequiredexpectedShardsnumberrequiredpagenumberrequiredpageSizenumberrequiredresultsobject[]required5 fields per item
idstringrequiredhts10string | nullrequiredconfidencenumber | nullrequiredchosenModelstring | nullrequiredThe top alternatives the classifier weighed.
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Export control
/export-controlDetermine export-control codes
ECCN (or a foreign jurisdiction's control code) for up to 50 products. Answers 202 with the run id; the result is delivered as an `export_control.completed` webhook to the key environment's URL (or `Tarifflo-Webhook-Url`) and pollable at GET /export-control/{jobId}. Requires the API key scope `eccn`.
ApiKeyorBearerHeaders
Idempotency-KeystringRepeats of the same request with the same key answer the first result (72 hours) with `Idempotent-Replayed: true`.
max length 255
Request body · required
application/json
productsobject[]requiredmin items 1max items 505 fields per item
idstringYour correlation id, echoed back on the result line.
max length 200namestringmax length 500descriptionstringrequiredmin length 3max length 5000originstringrequiredCountry of origin, ISO-3166 alpha-2.
pattern: ^[A-Z]{2}$contextstringAnything else the determination should weigh.
max length 5000
dryRunbooleanPrice the request at the organization's card and reserve nothing; answers 200 with the estimate.
Responses
202Queued (or, for `dryRun`, priced with 200)
application/json
Any of
jobIdstringrequiredThe run id: poll GET /export-control/{jobId}.
creditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"queued"requiredproductsQueuednumberrequiredmessagestringrequired
dryRuntruerequiredestimatedCreditsnumberrequiredlinesobject[]required3 fields per item
actionstringrequiredOne of 16 values
rate_lookupadcvd_screenpga_applicabilitycode_classifiedexport_controlorigin_determinationentry_filedentry_prepareddocument_ocrdocument_extractdocument_sortproduct_enrichentry_reviewrationale_documentaudit_parsedata_exportunitsnumberrequiredcreditsnumberrequired
balancenumberrequiredunitstringrequiredOne oftokencreditnotestring
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
402Not enough credits
application/json
errorobjectrequired7 fields
codestringrequiredexample: PAYMENT_REQUIREDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
409The first request with this Idempotency-Key is still filing
application/json
errorobjectrequired7 fields
codestringrequiredexample: CONFLICTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/export-control/{jobId}Get an export-control run
The run's status; once complete, `data` is the `export_control.completed` webhook's `data`. Requires the API key scope `eccn`.
ApiKeyorBearerPath parameters
jobIdstringrequired
Responses
200Successful response
application/json
Any of
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"failed"requirederrorobjectrequired2 fields
code"RUN_FAILED"requiredmessagestringrequired
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
statusstringrequiredOne ofqueuedprocessingblockedstagesCompletenumberrequiredstagesTotalnumberrequiredcreditsNeedednumberCredits the run waits for (`blocked` only).
purchaseUrlstringWhere to add credits (`blocked` only).
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"complete"requiredeventstringrequiredThe webhook event that delivered the same `data`.
The run's result, exactly the webhook's `data`.
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Origin
/originDetermine country of origin
Rules-of-origin determinations (non-preferential, marking, FTA-preferential) for up to 5 goods from their bill of materials. Answers 202 with the run id; a run takes minutes. The result is delivered as an `origin.completed` webhook to the key environment's URL (or `Tarifflo-Webhook-Url`) and pollable at GET /origin/{jobId}. Requires the API key scope `origin`.
ApiKeyorBearerHeaders
Idempotency-KeystringRepeats of the same request with the same key answer the first result (72 hours) with `Idempotent-Replayed: true`.
max length 255
Request body · required
application/json
jobsobject[]requiredmin items 1max items 510 fields per item
idstringYour correlation id, echoed back on the result line.
max length 200import_intostringThe importing country (default US).
pattern: ^[A-Za-z]{2}$finished_goodobjectrequired4 fields
descriptionstringrequiredmin length 3max length 5000htsstringmax length 20value_usdnumberex_works_price_usdnumber
country_of_finished_productionstringrequiredpattern: ^[A-Za-z]{2}$claimed_country_of_originstringpattern: ^[A-Za-z]{2}$processingstringWhat is done in the country of finished production.
max length 10000bomobject[]requiredmin items 1max items 2004 fields per item
itemstringrequiredmax length 500htsstringmax length 20originstringrequiredpattern: ^[A-Za-z]{2}$value_usdnumber
automotivemap<string, __schema1>fungible_inventorymap<string, __schema1>qualitystring"ship" (default, the full ensemble) or "screen" (one draft, about half the cost).
One ofshipscreen
dryRunbooleanPrice the request at the organization's card and reserve nothing; answers 200 with the estimate.
Responses
202Queued (or, for `dryRun`, priced with 200)
application/json
Any of
jobIdstringrequiredThe run id: poll GET /origin/{jobId}.
creditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"queued"requiredjobsQueuednumberrequiredmessagestringrequired
dryRuntruerequiredestimatedCreditsnumberrequiredlinesobject[]required3 fields per item
actionstringrequiredOne of 16 values
rate_lookupadcvd_screenpga_applicabilitycode_classifiedexport_controlorigin_determinationentry_filedentry_prepareddocument_ocrdocument_extractdocument_sortproduct_enrichentry_reviewrationale_documentaudit_parsedata_exportunitsnumberrequiredcreditsnumberrequired
balancenumberrequiredunitstringrequiredOne oftokencreditnotestring
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
402Not enough credits
application/json
errorobjectrequired7 fields
codestringrequiredexample: PAYMENT_REQUIREDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
409The first request with this Idempotency-Key is still filing
application/json
errorobjectrequired7 fields
codestringrequiredexample: CONFLICTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/origin/{jobId}Get an origin run
The run's status; once complete, `data` is the `origin.completed` webhook's `data`. Requires the API key scope `origin`.
ApiKeyorBearerPath parameters
jobIdstringrequired
Responses
200Successful response
application/json
Any of
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"failed"requirederrorobjectrequired2 fields
code"RUN_FAILED"requiredmessagestringrequired
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
statusstringrequiredOne ofqueuedprocessingblockedstagesCompletenumberrequiredstagesTotalnumberrequiredcreditsNeedednumberCredits the run waits for (`blocked` only).
purchaseUrlstringWhere to add credits (`blocked` only).
jobIdstringrequiredcreditsobjectrequiredWhat the job has reserved, used and refunded so far, in credits.
4 fields
actionstring | nullrequiredreservednumberrequiredusednumberrequiredrefundednumberrequired
status"complete"requiredeventstringrequiredThe webhook event that delivered the same `data`.
The run's result, exactly the webhook's `data`.
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
CBP queries
/cbp-queries/adcvd-ratesQuery CBP AD/CVD cases
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
midstringhtsCodestringcaseNumberstringcountryCodestringcompanyCaseStatusstringcustomDatestringcertificationScenariostring
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/cbp-queries/manufacturerQuery CBP for a manufacturer (MID)
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
manufacturerIdstringdocumentIdstringdedupeKeystring
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/cbp-queries/census-warningsQuery CBP census warnings for entries
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
blockHeaderParamsobjectrequired3 fields
processingPortCodestringprocessingFilerCodestringappIdCodestringrequiredOne of 35 values
AEEQSECQREDENEHAHBADAHCWCJCBECFTFZGEKITPSFWPQP$IMACAAAMOQAPESUTERMFQFI
requestedFromDatestringrequestedToDatestringentryNumbersstring[]required
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/cbp-queries/currency-conversionQuery CBP currency conversion
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
blockHeaderParamsobjectrequired1 field
appIdCodestringrequiredOne of 35 values
AEEQSECQREDENEHAHBADAHCWCJCBECFTFZGEKITPSFWPQP$IMACAAAMOQAPESUTERMFQFI
countryCodestringrequiredmin length 2max length 2currencyCodestringrequiredmin length 3max length 3exchangeRateDatestringrequiredforeignAmountnumberrequired> 0
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/cbp-queries/quota-ratesQuery CBP quota status
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
queriesobject[]requiredmin items 1max items 993 fields per item
queryIdstringrequiredmin length 1secondTariffNumberstringcountryCodestringrequiredmin length 1
certificationScenariostring
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/cbp-queries/entry-summaryQuery CBP entry summaries
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
queryTypestringrequiredOne ofJ1J2includeDetailbooleanentriesobject[]2 fields per item
filerCodestringrequiredmin length 3max length 3entryNumberstringrequiredmin length 1max length 8
criteriaQueryTypeCodestringOne ofAIIDOCRCNPSCLIQNLQEESrequestedFromDateTimestringpattern: ^\d{2}\d{2}\d{2}\d{2}\d{2}\d{2}(AM|PM)$requestedToDateTimestringpattern: ^\d{2}\d{2}\d{2}\d{2}\d{2}\d{2}(AM|PM)$entrySummariesFlag"Y"ftaReconSummariesFlag"Y"otherReconSummariesFlag"Y"drawbackSummariesFlag"Y"dutyDeferralSummariesFlag"Y"collectionBillInfoCodestringOne of123456certificationScenariostring
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/cbp-queries/importer-bondQuery CBP importer and bond records
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
importerOfRecordstringrequiredmin length 1importerProfileIdstring
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/cbp-queries/midAsk CBP to generate a manufacturer ID
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
legalNamestringrequiredaddressstringrequiredcityNamestringrequiredcountryCodestringrequiredpostalCodestringrequireddocumentIdstring
Responses
200Successful response
application/json
shortJobIdstringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Parties
/importer-profilesList the organization's importer profiles
Requires the API key scope `filing`.
ApiKeyorBearerResponses
200Successful response
application/json
idstringrequiredimporterNamestringimporterOfRecordstringstatusstringrequiredOne ofDRAFTAWAITING CBPAPPROVEDDENIEDCBP INACTIVECBP VOIDED
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/filers/{id}Get one of the organization's filers
Requires the API key scope `filing`.
ApiKeyorBearerPath parameters
idstringrequired
Responses
200Successful response
application/json
namestringfilerCodestringportCodestringstartingEntryNumbernumbercheckDigitOffsetnumbernationalPermitbooleanisBrokerbooleanbrokerLicenseNumberstringqualifyingBrokerNamestringdisPocNamestringdisPocEmailstringdisPocPhonestringidstring
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/filersList the organization's filers
Requires the API key scope `filing`.
ApiKeyorBearerResponses
200Successful response
application/json
idstringrequirednamestringfilerCodestringportCodestringisBrokerbooleanstatusstringrequiredOne ofINCOMPLETECOMPLETED
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/trade-parties/manufacturersList the organization's manufacturers
Requires the API key scope `filing`.
ApiKeyorBearerResponses
200Successful response
application/json
idstringrequiredlegalNamestringcountryCodestringrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
404Not found
application/json
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
/trade-parties/searchPage through the organization's trade parties
Requires the API key scope `filing`.
ApiKeyorBearerRequest body · required
application/json
startRownumberrequiredendRownumberrequiredsearchTextstring
Responses
200Successful response
application/json
rowDataobject[]required6 fields per item
idstringrequiredlegalNamestringrequiredphonestringrequiredaddressstringrequirederrorstringindividualContactsobject[]4 fields per item
namestringphonestringemailstringrolestring
rowCountnumberrequired
400Invalid input data
application/json
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
401Authorization not provided
application/json
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
403Insufficient access
application/json
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
500Internal server error
application/json
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
Schemas
Shared schemas the operations above refer to by name.
__schema0
__schema1
error.BAD_REQUEST
errorobjectrequired7 fields
codestringrequiredexample: BAD_REQUESTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.UNAUTHORIZED
errorobjectrequired7 fields
codestringrequiredexample: UNAUTHORIZEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.FORBIDDEN
errorobjectrequired7 fields
codestringrequiredexample: FORBIDDENmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.INTERNAL_SERVER_ERROR
errorobjectrequired7 fields
codestringrequiredexample: INTERNAL_SERVER_ERRORmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.NOT_FOUND
errorobjectrequired7 fields
codestringrequiredexample: NOT_FOUNDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.CONFLICT
errorobjectrequired7 fields
codestringrequiredexample: CONFLICTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.PRECONDITION_FAILED
errorobjectrequired7 fields
codestringrequiredexample: PRECONDITION_FAILEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.UNPROCESSABLE_CONTENT
errorobjectrequired7 fields
codestringrequiredexample: UNPROCESSABLE_CONTENTmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.BAD_GATEWAY
errorobjectrequired7 fields
codestringrequiredexample: BAD_GATEWAYmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.PAYMENT_REQUIRED
errorobjectrequired7 fields
codestringrequiredexample: PAYMENT_REQUIREDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.NOT_IMPLEMENTED
errorobjectrequired7 fields
codestringrequiredexample: NOT_IMPLEMENTEDmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)
error.PAYLOAD_TOO_LARGE
errorobjectrequired7 fields
codestringrequiredexample: PAYLOAD_TOO_LARGEmessagestringrequiredissuesobject[]Input validation issues (400 only)
3 fields per item
codestringmessagestringrequiredpathany[]
errorsobject[]Entry validation errors, by path in the request's `entry`
2 fields per item
pathstringrequiredexample: lineItems[3].tariffRows[0].htsNumbermessagestringrequired
efidstringThe entry the request wrote before it failed
fieldstringThe field CBP now requires or rejects (`cbp_requirement` only)
effectiveDatestringWhen that CBP rule takes effect (`cbp_requirement` only)