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
| Field | Type | Description |
|---|---|---|
id | string | |
object | string | Always guarantee. |
livemode | boolean | |
reference | string | The guarantee reference, in the form TSG-YYYY-XXXXXXXX. |
status | enum | active: in force. ended: the cover period has finished or the guarantee was ended early. cancelled: ended before the tenancy started. |
application_id | string | |
external_reference | string | |
tenant | object | |
tenant.first_name | string | |
tenant.last_name | string | |
property | object | |
property.line1 | string | |
property.line2 | string | |
property.city | string | |
property.postcode | string | |
property.country | string | |
cover | object | |
cover.start_date | date | |
cover.end_date | date | |
cover.monthly_rent_share | object | |
cover.monthly_rent_share.amount | integer | The amount in the currency's smallest unit. 50000 is £500.00. |
cover.monthly_rent_share.currency | string | ISO 4217 code. Fees are always GBP. |
refund | object or null | Present after a guarantee is ended early or cancelled. |
refund.amount | object | |
refund.amount.amount | integer | The amount in the currency's smallest unit. 50000 is £500.00. |
refund.amount.currency | string | ISO 4217 code. Fees are always GBP. |
refund.status | enum | One of pending, credited, paid. |
verify_url | uri | Public verification page for the guarantee. |
metadata | object | |
issued_at | date-time | |
ended_at | date-time |
List guarantees
Returns a list of guarantees.
Parameters
| Name | In | Description |
|---|---|---|
status | query | One of active, ended, cancelled. |
external_reference | query |
Returns
Returns a list of guarantee objects.
Retrieve a guarantee
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
Retrieves the Rent Guarantee Certificate as a PDF.
Returns
Returns the PDF with a content type of application/pdf.
Download the signed agreement
Retrieves the signed guarantee agreement as a PDF.
Returns
Returns the PDF with a content type of application/pdf.
End a guarantee early
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
| Field | Type | Description |
|---|---|---|
end_daterequired | date | The last day of the tenancy. |
reasonrequired | enum | One of booking_cancelled, tenancy_ended_early, tenant_request, other. |
note | string |
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.