Guarantees#

A Guarantee object represents a rent guarantee covering a specific tenant and property. If the tenant defaults, the landlord can file a claim to recover the guaranteed amount.

The Guarantee object#

AttributeTypeDescription
idstringUnique identifier with grt_ prefix
objectstringAlways "guarantee"
statusenumpending, active, claimed, expired, cancelled
policystringGuarantee Policy ID
tenantstringCustomer/tenant ID
coverage_amountintegerMaximum guaranteed amount per period
total_coverageintegerTotal lifetime coverage
currencystringISO 4217 currency code
start_datetimestampCoverage start date
end_datetimestampCoverage end date
claims_filedintegerNumber of claims filed
claims_paidintegerTotal amount paid in claims
metadatahashKey-value pairs
createdtimestampTime at which the object was created
{
  "id": "grt_def456",
  "object": "guarantee",
  "status": "active",
  "policy": "gpol_abc123",
  "tenant": "cus_123456789",
  "coverage_amount": 120000,
  "total_coverage": 1440000,
  "currency": "eur",
  "start_date": 1706140800,
  "end_date": 1737676800,
  "claims_filed": 0,
  "claims_paid": 0,
  "metadata": {
    "property_id": "prop_456",
    "lease_id": "lease_789"
  },
  "created": 1706140800
}

Create a Guarantee#

POST /v1/guarantees

ParameterTypeRequiredDescription
policystringYesGuarantee Policy ID
tenantstringYesCustomer ID
coverage_amountintegerYesMonthly coverage amount
currencystringYesISO 4217 currency code
start_datetimestampYesCoverage start date
end_datetimestampYesCoverage end date
metadatahashNoKey-value pairs
curl https://api.casapay.com/v1/guarantees \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc" \
  -H "Content-Type: application/json" \
  -d '{
    "policy": "gpol_abc123",
    "tenant": "cus_123456789",
    "coverage_amount": 120000,
    "currency": "eur",
    "start_date": 1706140800,
    "end_date": 1737676800
  }'

Retrieve, Update, List, Cancel#

GET /v1/guarantees/:id

POST /v1/guarantees/:id

GET /v1/guarantees

POST /v1/guarantees/:id/cancel