Developers
Add boat protection to your checkout in an afternoon.
One REST API, one script tag, or one MCP endpoint. You sell the plan at your price; the engine handles registration, certificates, claims and remittance with the administrator.
Step 1
Get a sandbox key
Email info@toyprotectionplan.com. Sandbox keys start with tp_test_ and never reach the administrator.
Step 2
Quote, then sell
POST a quote with province, horsepower and condition. Sell it with the customer and boat details. You get a contract number back right away.
Step 3
We do the paperwork
Registration with the administrator, the certificate, signatures, claims follow-up and the monthly remittance. You get webhooks as it moves.
Quote → contract → certificate
Quotes come back with every plan the boat qualifies for, tax included, and any product your price book adds for free. For Boatopia that's the 60-day powertrain guarantee on every used boat.
Captured the signature at your desk? Send customerSignedAt and customerSignedName and the contract goes straight to registration. Otherwise you get a signingUrl to text the buyer.
- GET
/api/v1/catalogPlans, benefits, rules and MSRP tables - POST
/api/v1/quotesPrice a boat under your price book - POST
/api/v1/contractsSell a plan (idempotent) - GET
/api/v1/contracts/{number}Contract with its timeline - GET
/api/v1/contracts/{number}/certificateCertificate PDF - POST
/api/v1/contracts/{number}/cancelVoid or cancel - GET
/api/v1/claims/{ref}Claim status on your contracts - POST
/api/v1/webhooks/testFire a signed test event
curl https://toyprotectionplan.com/api/v1/quotes \
-H "Authorization: Bearer $TP_KEY" \
-H "Content-Type: application/json" \
-d '{ "province": "ON", "condition": "used", "hp": 150, "modelYear": 2021, "termMonths": 24 }'curl https://toyprotectionplan.com/api/v1/contracts \
-H "Authorization: Bearer $TP_KEY" \
-H "Idempotency-Key: deal-48213" \
-H "Content-Type: application/json" \
-d '{
"quoteId": "QTE-7KQ2MZ",
"tier": "titanium",
"customer": { "firstName": "Dana", "lastName": "Roy", "email": "dana@example.com",
"phone": "705-555-0142", "address": "12 Lakeshore Rd", "city": "Orillia",
"province": "ON", "postalCode": "L3V 1A1" },
"vessel": { "year": 2021, "make": "Lund", "model": "1875 Impact", "hullSerial": "LUN18421K021",
"engineMake": "Mercury", "engineSerial": "2B771234", "hp": 150 },
"externalReference": "STOCK-2291"
}'curl https://toyprotectionplan.com/api/v1/contracts/LBMPPW-26000123/certificate \
-H "Authorization: Bearer $TP_KEY" -o certificate.pdfNo backend? Paste the widget.
The full quote and checkout runs in an iframe that sizes itself to fit. Prefill it from your listing page and listen fortp:quote andtp:purchase events.
<div data-toyprotection-quote></div>
<script src="https://toyprotectionplan.com/widget.js"
data-partner="your-slug"
data-condition="used"
data-hp="150"
data-year="2021"
data-province="ON" async></script>
<script>
document.querySelector("[data-toyprotection-quote]")
.addEventListener("tp:purchase", (e) => {
console.log("Sold", e.detail.contractNumber);
});
</script>Webhooks you can trust.
contract.created, contract.signed, contract.activated, contract.cancelled and claim.updated, signed with HMAC-SHA256. Activation fires when the administrator confirms registration, not before.
import { createHmac, timingSafeEqual } from "node:crypto";
// Header: X-ToyProtection-Signature: t=1731090000,v1=5f2b…
export function verify(rawBody: string, header: string, secret: string) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
const expected = createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
return timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 ?? ""));
}Built for AI agents, too.
Our MCP server lets an assistant price a boat, explain what's covered, check a used boat's eligibility and walk an owner through a claim. It hands purchases back to a person with a prefilled link. No auth, read-only.
Also: /llms.txt, /.well-known/mcp.json, OpenAPI.
{
"mcpServers": {
"toyprotection": { "type": "http", "url": "https://toyprotectionplan.com/api/mcp" }
}
}