Create SLA Policy
POST/api/repairs/sla-policies
Create SLA Policy.
repairs:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Request fields:
name(required): string, max:120total_days(required): integer, min:1, max:3650business_days(optional): booleanstart_on(optional): Enum:in:"received","submitted"stage_targets(optional): arraystage_targets.*(optional): integer, min:1, max:3650pause_on(optional): arraypause_on.*(optional): string, distinct, In:in:"awaiting_customer","awaiting_item","awaiting_parts","awaiting_approval","at_vendor"due_soon_hours(optional): integer, min:0, max:8760coverage(optional): Enum:in:"in_warranty","out_of_warranty","goodwill","unknown"sales_channel_id(optional): integer, exists:sales_channels,idcustomer_group(optional): In:in:"wholesale","dtc"priority(optional): integer, min:0, max:100000is_active(optional): boolean
Permission: repairs.manage_settings.
Authentication: Bearer token with the repairs:read / write scope.
Request
Responses
- 200
- 401
- 403
- 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.
Unprocessable Content
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.