Issue Repair Loaner
POST/api/repairs/:repair/loaners
Lends a loaner to the customer: creates a zero-value sales order to ship it and an RMA expecting it back. The due date is the repair's completion (or SLA due date) plus the given days.
repairs:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Fields:
product_id(integer, required) — a product flagged as loaner-eligible.serial_number_id(integer, optional) — a serial number of that product.due_days_after_completion(integer, optional, 0–365) — defaults to the tenant's loaner due-days setting.warehouse_id(integer, optional) — ships from and returns to this warehouse; defaults to the repair's warehouse.
Refused when the repair is closed or rejected.
Authentication: Bearer token with the repairs:write scope.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 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 — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
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.