border.bot
Docs menu

API reference

API reference

Approve a code

POST https://api.border.bot/v1/catalog/products/{id}/classifications/{classificationId}/approve

Requires an API key (Authorization: Bearer bb_live_…).

Approves a suggestion: it becomes the code quotes use for its schedule, and the code it replaces is superseded (kept, with the dates it applied). Free.

API key scope: catalog.

Parameters#

Name Type Required Description
id string (uuid) yes The product’s id.
classificationId string (uuid) yes The classification’s id.

Request body (JSON)#

Name Type Required Description
note string | null no

Responses#

  • 200: The approved code. (CatalogClassificationResponse)
  • 400: Invalid input (invalid_input). (Error)
  • 401: Missing, invalid, revoked or expired API key (unauthorized). (Error)
  • 403: The API key doesn’t have the catalog scope (forbidden, details.reason: "missing_scope"). (Error)
  • 429: Rate limited (rate_limited). Retry after Retry-After seconds; RateLimit says which limit was hit (r=0, t seconds until its window ends) and RateLimit-Policy its quota. (Error)
  • 500: Unexpected error (internal). (Error)

Example#

bash
curl -X POST 'https://api.border.bot/v1/catalog/products/{id}/classifications/{classificationId}/approve' \
  -H 'Authorization: Bearer bb_live_...' \
  -H 'Content-Type: application/json' \
  -d '{}'