Get Repair Request
GET/api/portal/repairs/:repair
Return one repair request of the active Location with its units, each unit's stage and outcome, and its shipments with carrier tracking.
Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.
Each repair carries: id, repair_number, status_url (the public page where the end customer can follow the repair, or null), status and status_label, sales_order_id / sales_order_number (null when the claim was not raised against an order), requested_at, received_at (when the merchant received the items), returned_at, sla_due_at (the date the merchant aims to finish by, or null), line_count, and lines — one per unit with id, line_number, sku (null for a free-text item), name, quantity, stage / stage_label (pending_receipt, triage, diagnosing, awaiting_approval, awaiting_parts, in_repair, at_vendor, quality_check, resolved) and outcome / outcome_label (null until resolved; repaired, parts_sent, replaced, refurbished_to_stock, unrepairable_credited, unrepairable_returned, no_fault_found, declined_by_customer, not_covered_returned, scrapped). Costs and the merchant's internal notes are never included.
shipments lists each leg: direction (customer_to_brand — the buyer sending items in; brand_to_customer — the merchant sending them back), status (draft, label_created, in_transit, delivered, exception, void), carrier, tracking_number, shipped_at, delivered_at.
Returns 404 if the repair is not on the active Location.
Authentication: portal Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.