Skip to main content

Receive Vendor Dispatch Back

POST 

/api/repairs/vendor-dispatches/:dispatch/receive

Receive Vendor Dispatch Back.

Required scope: repairs:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Records the units that came back from the vendor (all or some). When some units are still out, the dispatch becomes partially_received, the message confirms how many were received (e.g. "1 unit received back from the vendor.") and missing_line_ids lists the units still with the vendor.

Request fields:

  • lines (required): array, min:1
  • lines.*.line_id (required): integer, distinct
  • lines.*.result (required): Enum:in:"repaired","unrepairable"
  • lines.*.fee (optional): numeric, min:0, max:1000000
  • lines.*.notes (optional): string, max:2000
  • received_at (optional): date

Permission: repairs.vendor. Authentication: Bearer token with the repairs:read / write scope.

Request​

Responses​

OK

Response Headers
    Content-Type