跳至主要内容
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.