Get Resolution Defaults
GET/api/repairs/:repair/lines/:line/resolution-defaults
Returns the suggested resolution for a unit, based on its warranty coverage and whether the product is discontinued: the suggested outcome, credit type and amount, the replacement product, whether an ownership disposition is required, and the coverage reasons.
repairs:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Response fields:
suggested_outcome(string|null) — an outcome value, e.g.unrepairable_creditedfor a discontinued product.suggested_credit_type(string|null) —refund,store_creditordiscount_offer.suggested_credit_amount(number|null) — the unit's value from the original order, already converted intocredit_currency.credit_currency(string|null) — the currencysuggested_credit_amountis denominated in: the store's currency forstore_credit(its wallet is always kept there), the original order's own currency forrefund, null fordiscount_offer(percentage-based, no amount). Submitcredit_amountback in this same currency.product_discontinued(boolean).replacement_product_id(integer) andcomponent_product_id(integer|null).performed_service(string|null) — derived from the suggested outcome.requires_ownership_disposition(boolean) — true when a customer-owned unit is on hand, so replacing it needs anownership_disposition.unit_received(boolean) — the unit is on hand or at a vendor.reasons(string[]) — coverage reasons.credit_options(object) — per-credit-type amount + currency, keyedstore_credit,refund,discount_offer(each{amount: number|null, currency: string|null}). Lets the caller show/submit the right figure for whichever credit type is chosen, not just the suggested one;discount_offeris always{amount: null, currency: null}since it is percentage-based.
Authentication: Bearer token with the repairs:read scope.
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.