Docs menu
Get started
API reference
Classification
Landed cost
Products
Compliance
Reference
Origin
Bulk
Catalogue
- GETList products
- POSTCreate a product
- GETGet a product
- PATCHUpdate a product
- POSTArchive a product
- GETA product’s history
- GETA product’s codes
- POSTAdd a code
- POSTSuggest codes
- POSTApprove a code
- POSTReject a code
- POSTClassify many products
- GETYour imports
- POSTImport a CSV file
- GETAn import
- GETExport as CSV
- POSTSync records from a source
- GETApproved codes to write back
- GETCatalogue vocabularies
- GETSource kinds
- GETDefault target markets
- POSTSet default target markets
API reference
Classify many products
POST https://api.border.bot/v1/catalog/classify
Requires an API key (Authorization: Bearer bb_live_…).
A bulk run classifying products (by id or by a filter) for markets, its answers kept as suggestions. Follow it with GET /bulk/status; its items are charged like POST /classify as they run.
API key scope: classify.
Request body (JSON)#
| Name | Type | Required | Description |
|---|---|---|---|
productIds |
string (uuid)[] | no | |
filter |
object | no | |
markets |
string[] | yes | |
onlyMissing |
boolean | no | |
mode |
string | no |
Responses#
200: The bulk run. (BulkRunResponse)400: Invalid input (invalid_input). (Error)401: Missing, invalid, revoked or expired API key (unauthorized). (Error)403: The API key doesn’t have theclassifyscope (forbidden,details.reason: "missing_scope"). (Error)429: Three bulk runs are already going (rate_limited). (Error)500: Unexpected error (internal). (Error)
Example#
curl -X POST 'https://api.border.bot/v1/catalog/classify' \
-H 'Authorization: Bearer bb_live_...' \
-H 'Content-Type: application/json' \
-d '{"filter":{"missingCodeFor":"US"},"markets":["US"]}'