Skip to content

Add Bank Shield at mortgage closing

Quote Bank Shield for the home behind a new mortgage, bind it by invoice, and hear about the policy and any claim by webhook. Bank Shield is the borrower's policy, with your bank as loss payee, and it is carried by a licensed insurer.

Before you start

  • Your bank has a Bank Shield programme with P3 (rate, cap, term and who pays).
  • A test key with protection:quote, protection:bind and webhooks:manage (binding needs the Enterprise plan).
  • A webhook endpoint for policy.bound and claim.decided, added in P3 or with POST /v1/webhooks.

Quote at closing

Send the loan: P3 adds it to your collateral book, values the home with P3 Value and prices it under your programme. A loan whose borrower shared their passport can send passport_code instead of the home's details.

curl https://api.pthree.vip/v1/protection/quotes \
  -H "Authorization: Bearer $P3_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: quote-GHB-2026-0101" \
  -d '{
    "product": "bank_shield",
    "payer": "bank",
    "loan": {
      "reference": "GHB-2026-0101",
      "borrower_name": "Mariam Saeed",
      "area": "dubai-marina",
      "type": "apartment",
      "beds": 2,
      "size_sqm": 112,
      "outstanding_minor": 152000000,
      "currency": "AED",
      "originated_on": "2026-10-15"
    }
  }'

Show the terms

Show the borrower the floor, the maximum payout and the fee from the quote, and name the insurer from insurer.name. Protection pays the gap between the floor and the index-adjusted value; it is never a guarantee of any price.

Bind by invoice

With your bank paying, binding makes the policy active at once and adds the premium to your month's invoice. Use an Idempotency-Key so a retry never binds twice.

curl https://api.pthree.vip/v1/protection/policies \
  -H "Authorization: Bearer $P3_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: bind-GHB-2026-0101" \
  -d '{ "quote_id": "01a1…" }'

Listen for events

policy.bound confirms the policy; claim.decided and claim.paid follow a sale. Verify each delivery's signature with your endpoint's secret before you trust it.

# P3 signs each delivery: P3-Signature: t=<unix seconds>,v1=<hex>
# v1 = HMAC-SHA256(secret, "<t>.<raw body>")
echo -n "$T.$BODY" | openssl dgst -sha256 -hmac "$P3_WEBHOOK_SECRET"

When the borrower pays

Quote with payer borrower: the quote carries a checkout_url where the borrower accepts and pays in P3. Binding answers payment_required until then, and policy.bound tells you when it is done.

Go live

P3 compliance approves your organisation to bind through the API once the programme agreement is signed. Then use a live key; the requests are the same.

We use necessary cookies to run this site. With your permission we also use analytics to see which pages help, and marketing cookies to measure campaigns. Read the cookie notice