跳至主要內容
Sparehawk

主要導覽

分類

工業自動化0
工具機與 CNC0
焊接與切割0
電氣設備0
氣動設備0
液壓設備0
壓縮機與真空設備0
運動控制與傳動0
馬達0
感測器與視覺系統0
製程儀表0
食品與飲料加工0
包裝與印刷0
醫療與實驗室0
水處理與污水處理0
機器人0
農林業0
營建與礦業機械0
物料搬運設備0
船舶與軌道運輸0
商用車輛0
空調與冷凍0
能源與再生能源0
電子與零組件0
所有分類
語言繁體中文

Sparehawk Supplier API

The supplier-facing REST API (Wave 9 item 5): push offers, read RFQs routed to you, and submit quotes — from your own systems, without anyone logging into the cabinet by hand. Authenticate with an API key created under Cabinet > Developer > API keys.

版本 1.0.0 下載 OpenAPI 規格(JSON)

Offers

Bulk upsert and patch your catalogue.

post/v1/supplier-api/offers/bulk

Bulk upsert offers

Upserts up to 1000 offers per call, matched by MPN + condition. An MPN not yet in the catalogue becomes a needs_review part stub rather than an error. Supports an Idempotency-Key header: the same key replays the first response instead of running the mutation again.

參數

  • Idempotency-Key (header) — A key you generate per attempt. A retry with the same key replays the cached response.

回應

  • 201 — Per-line results — a line can succeed even if another in the same call failed.
  • 400 — Validation error (e.g. more than 1000 offers in one call).
  • 401 — Missing or invalid API key.
  • 403 — The key is missing the offers:write scope.
  • 429 — This key has exceeded its rate limit.
patch/v1/supplier-api/offers/{id}

Patch one offer's stock/price/lead time

參數

  • id (path, required)

回應

  • 200 — Updated.
  • 401 — Missing or invalid API key.
  • 403 — The key is missing the offers:write scope.
  • 404 — No such offer for this supplier.

RFQs

RFQs routed to your supplier account.

get/v1/supplier-api/rfqs

List RFQs routed to you

回應

  • 200 — Up to the 100 most recent, newest first.
  • 401 — Missing or invalid API key.
  • 403 — The key is missing the rfqs:read scope.
get/v1/supplier-api/rfqs/{id}

Fetch one RFQ's detail, including its lines

參數

  • id (path, required)

回應

  • 200 — Found.
  • 401 — Missing or invalid API key.
  • 403 — The key is missing the rfqs:read scope.
  • 404 — Not routed to this supplier.

Quotes

Submit a quote against a routed RFQ.

post/v1/supplier-api/quotes

Submit a quote against a routed RFQ

回應

  • 201 — Created.
  • 401 — Missing or invalid API key.
  • 403 — The key is missing the quotes:write scope.
  • 404 — The RFQ (or one of its lines) is not routed to this supplier.