Manage service contracts in RepairShopr - create, retrieve, update, delete
I manage service contracts between your business and customers. Contracts define service agreements, SLA terms, and can be linked to tickets and assets. I support full CRUD operations.
Use this when:
Required API base URL:
VITE_REPAIRSHOPR_SUBDOMAINVITE_REPAIRSHOPR_API_KEYPermissions:
List Contracts (GET /contracts) Optional:
page (integer) - Page number (50 results per page)Create Contract (POST /contracts) Required:
customer_id (integer) - Customer this contract belongs toOptional:
name (string) - Contract name/titlecontract_amount (string) - Contract value (e.g., "30k")start_date (string) - Start date (ISO 8601)end_date (string) - End date (ISO 8601)description (string) - Contract descriptionprimary_contact (string) - Primary contact personstatus (string) - Status (e.g., "Opportunity", "Active", "Expired")likelihood (integer) - Likelihood percentage (0-100)apply_to_all (boolean) - Apply to all customer assetssla_id (integer) - Associated SLA IDGet Single Contract (GET /contracts/{id})
id (integer, required) - Contract IDUpdate Contract (PUT /contracts/{id})
id (integer, required) - Contract ID
Optional body similar to create (all fields updatable)Delete Contract (DELETE /contracts/{id})
id (integer, required) - Contract IDExample call:
const result = await skill({ name: "repairshopr-contract" }, {
customer_id: 123,
name: "Annual Maintenance Agreement",
contract_amount: "$3,600",
start_date: "2024-01-01T00:00:00Z",
end_date: "2024-12-31T23:59:59Z",
status: "Active",
description: "Covers unlimited repairs for up to 10 devices"
})
Response includes:
id, customer_id, name, contract_amount, start_date, end_date, status, sla_id, etc.customer_id is required and must existstatus values are flexible but typically include: Opportunity, Active, Expired, Canceledapply_to_all links contract to all customer assets on creationrepairshopr-customer-search - To get customer IDrepairshopr-sla (if available) - For SLA configurationsrepairshopr-asset - For asset-contract relationships