Guarantees

A guarantee is created when an application is approved.

GET    /guarantees
GET    /guarantees/{guarantee_id}
GET    /guarantees/{guarantee_id}/certificate
GET    /guarantees/{guarantee_id}/agreement
POST   /guarantees/{guarantee_id}/end

The guarantee object

FieldTypeDescription
idstring
objectstringAlways guarantee.
livemodeboolean
referencestringThe guarantee reference, in the form TSG-YYYY-XXXXXXXX.
statusenumactive: in force. ended: the cover period has finished or the guarantee was ended early. cancelled: ended before the tenancy started.
application_idstring
external_referencestring
tenantobject
tenant.first_namestring
tenant.last_namestring
propertyobject
property.line1string
property.line2string
property.citystring
property.postcodestring
property.countrystring
coverobject
cover.start_datedate
cover.end_datedate
cover.monthly_rent_shareobject
cover.monthly_rent_share.amountintegerThe amount in the currency's smallest unit. 50000 is £500.00.
cover.monthly_rent_share.currencystringISO 4217 code. Fees are always GBP.
refundobject or nullPresent after a guarantee is ended early or cancelled.
refund.amountobject
refund.amount.amountintegerThe amount in the currency's smallest unit. 50000 is £500.00.
refund.amount.currencystringISO 4217 code. Fees are always GBP.
refund.statusenumOne of pending, credited, paid.
verify_urluriPublic verification page for the guarantee.
metadataobject
issued_atdate-time
ended_atdate-time

List guarantees

GET/guarantees

Returns a list of guarantees.

Parameters

NameInDescription
statusqueryOne of active, ended, cancelled.
external_referencequery

Returns

Returns a list of guarantee objects.

Retrieve a guarantee

GET/guarantees/{guarantee_id}

Retrieves a guarantee.

Returns

Returns the guarantee object.

Example response

{
  "id": "gua_6Yh2JmK9pL4nB7vC",
  "object": "guarantee",
  "livemode": false,
  "reference": "TSG-2026-7KQ4M9XZ",
  "status": "active",
  "application_id": "app_3Nf7QwR1tY8uLk5H",
  "external_reference": "BK-2026-223515",
  "tenant": {
    "first_name": "Yuxi",
    "last_name": "Zhang"
  },
  "property": {
    "line1": "Flat 218, Tower Building",
    "line2": "12 Example Street",
    "city": "London",
    "postcode": "E1 6LT",
    "country": "GB"
  },
  "cover": {
    "start_date": "2026-10-24",
    "end_date": "2027-07-10",
    "monthly_rent_share": {
      "amount": 140800,
      "currency": "GBP"
    }
  },
  "verify_url": "https://app.thestudentguarantor.com/g/TSG-2026-7KQ4M9XZ",
  "issued_at": "2026-11-19T09:31:27Z"
}

Download the certificate

GET/guarantees/{guarantee_id}/certificate

Retrieves the Rent Guarantee Certificate as a PDF.

Returns

Returns the PDF with a content type of application/pdf.

Download the signed agreement

GET/guarantees/{guarantee_id}/agreement

Retrieves the signed guarantee agreement as a PDF.

Returns

Returns the PDF with a content type of application/pdf.

End a guarantee early

POST/guarantees/{guarantee_id}/end

Ends a guarantee before its cover.end_date. The refund is calculated and returned in refund with a status of pending until it's processed. Repeating the request with the same parameters returns the same guarantee.

Request body

FieldTypeDescription
end_daterequireddateThe last day of the tenancy.
reasonrequiredenumOne of booking_cancelled, tenancy_ended_early, tenant_request, other.
notestring

Example request

curl https://api.thestudentguarantor.com/v1/guarantees/gua_6Yh2JmK9pL4nB7vC/end \
  -X POST \
  -H "Authorization: Bearer $TSG_SECRET_KEY" \
  -H "Idempotency-Key: 6f1c2a9e-8f0b-4c59-9d0e-2b7a54d0c1aa" \
  -H "Content-Type: application/json" \
  -d '{
  "end_date": "2027-03-31",
  "reason": "tenancy_ended_early"
}'

Returns

Returns the guarantee object. If end_date is in the future, status stays active and cover.end_date is updated. Any refund is in refund.