Applications

An application is a request for a guarantee. It tracks the requirements that must be completed before the guarantee is issued.

POST   /applications
GET    /applications
GET    /applications/{application_id}
PATCH  /applications/{application_id}
POST   /applications/{application_id}/cancel
POST   /applications/{application_id}/fee/confirm

The application object

FieldTypeDescription
idstring
objectstringAlways application.
livemodeboolean
external_referencestring
statusenumincomplete: at least one requirement is due or blocked. in_review: all requirements are supplied and the application is being reviewed. approved: the guarantee is issued. declined: no guarantee will be issued. cancelled: cancelled by you. expired: not completed before expires_at.
applicant_typeenumType of applicant. One of student, graduate. Default student.
localestring
tenantobjectThe tenant's name and email.
tenant.first_namestring
tenant.last_namestring
tenant.emailstring
feeobject
fee.collectionenumOne of partner, tsg.
fee.amountobject
fee.amount.amountintegerThe amount in the currency's smallest unit. 50000 is £500.00.
fee.amount.currencystringISO 4217 code. Fees are always GBP.
fee.statusenumOne of unpaid, paid, refunded, partially_refunded.
fee.paid_atdate-time
requirementsarray of objectThe application's requirements.
requirements[].codeenumIdentifier of the requirement. One of tenant.details, tenant.identity, tenant.proof_of_study, tenant.right_to_rent, tenant.signature, cosigner.details, cosigner.identity, cosigner.signature, tenancy.details, fee.payment, landlord.confirmation, landlord.signature.
requirements[].partyenumParty responsible for the requirement. One of partner, tenant, cosigner, landlord, tsg.
requirements[].statusenumdue: waiting for party. in_review: supplied and being checked. blocked: cannot start until another requirement is satisfied. satisfied: done.
requirements[].completable_viaarray of enumapi: supply it with an update. session: the tenant completes it in the embedded component. email_link: we email the party a link.
requirements[].fieldsarray of stringFor *.details requirements, the missing or invalid field paths.
requirements[].reasonstring or nullA machine-readable reason when a supplied item was not accepted, for example document_unreadable, document_expired, name_mismatch.
decline_reasonenumOne of identity_not_verified, tenancy_not_eligible, tenant_not_eligible, suspected_fraud, other.
guaranteestring or nullThe guarantee ID once approved.
metadataobject
expires_atdate-time
created_atdate-time
updated_atdate-time

Create an application

POST/applications

Creates an application. Any information you don't provide is added to requirements.

Request body

FieldTypeDescription
external_referencerequiredstringYour identifier for the application. Must be unique.
quote_idstringID of a quote to apply. If omitted, the fee is calculated from the application.
applicant_typeenumType of applicant. One of student, graduate. Default student.
localeenumLanguage of the tenant's sessions and emails. One of en, zh-CN. Default en.
tenantrequiredobject
tenant.first_namerequiredstringGiven name in Latin characters, as on the identity document.
tenant.last_namerequiredstringFamily name in Latin characters.
tenant.name_localstringThe full name in its original script, for example 张雨曦. Used to check Chinese identity cards.
tenant.emailrequiredemail
tenant.phonestringE.164 format.
tenant.date_of_birthdate
tenant.nationalityrequiredstringISO 3166-1 alpha-2 code.
tenant.country_of_residencestringISO 3166-1 alpha-2 code.
tenant.addressobjectHome address outside the rented property.
tenant.address.line1requiredstring
tenant.address.line2string
tenant.address.cityrequiredstring
tenant.address.statestringState
tenant.address.postal_codestring
tenant.address.countryrequiredstringISO 3166-1 alpha-2 code.
tenant.right_to_rent_share_codestringGOV.UK Right to Rent share code.
studyobjectRequired when applicant_type is student.
study.university_idstringFrom the universities list. Send either this or university_name.
study.university_namestringFor an institution not in the universities list.
study.coursestring
study.levelrequiredenumOne of foundation, undergraduate, postgraduate, other.
study.first_yearbooleanWhether this tenancy covers the tenant's first year at the university.
propertyrequiredobject
property.namestringThe room or unit as you list it, for example Gold Studio Plus.
property.line1requiredstring
property.line2string
property.cityrequiredstring
property.postcoderequiredstring
property.countryrequiredstringCurrently GB.
property.accommodation_typeenumpbsa is purpose-built student accommodation run by a private operator. One of pbsa, university_halls, private, other.
tenancyrequiredobject
tenancy.agreement_typeenumType of tenancy agreement. One of licence, assured_periodic, common_law, other.
tenancy.rentrequiredobject
tenancy.rent.amountrequiredintegerThe tenant's own share of the rent for one period, in pence.
tenancy.rent.currencyrequiredstringAlways GBP.
tenancy.rent.periodrequiredenumWhat amount covers. total is the whole rent for the tenancy from start date to end date. One of week, month, total.
tenancy.start_daterequireddate
tenancy.end_datedateRequired unless agreement_type is assured_periodic.
tenancy.tenant_countintegerDefault 1.
tenancy.total_rentobjectThe rent for the whole property, when tenant_count is more than 1.
tenancy.total_rent.amountrequiredintegerThe tenant's own share of the rent for one period, in pence.
tenancy.total_rent.currencyrequiredstringAlways GBP.
tenancy.total_rent.periodrequiredenumWhat amount covers. total is the whole rent for the tenancy from start date to end date. One of week, month, total.
tenancy.payment_scheduleenumHow the tenant pays rent to the accommodation provider. One of monthly, instalments.
tenancy.landlordobjectThe landlord's contact details.
tenancy.landlord.namerequiredstring
tenancy.landlord.emailemail
tenancy.landlord.phonestring
tenancy.landlord.addressobject
cosignerobjectThe cosigner's details.
cosigner.first_namerequiredstring
cosigner.last_namerequiredstring
cosigner.name_localstring
cosigner.relationshiprequiredenumOne of parent, guardian, relative, spouse, friend, other.
cosigner.emailrequiredemailMust differ from the tenant's. The signing link is sent here.
cosigner.phonestringE.164 format.
cosigner.date_of_birthdate
cosigner.nationalitystring
cosigner.country_of_residencestring
cosigner.addressobject
cosigner.address.line1requiredstring
cosigner.address.line2string
cosigner.address.cityrequiredstring
cosigner.address.statestringState
cosigner.address.postal_codestring
cosigner.address.countryrequiredstringISO 3166-1 alpha-2 code.
cosigner.localeenumThe language of the cosigner's emails. Defaults to the application's locale. One of en, zh-CN.
documentsobject
documents.tenant_identityobjectImages of an identity document. Supported for Chinese resident identity cards only.
documents.tenant_identity.typerequiredenumOne of cn_resident_id.
documents.tenant_identity.frontrequiredstringA file ID. The side with the photograph.
documents.tenant_identity.backrequiredstringA file ID. The side with the national emblem.
documents.cosigner_identityobjectImages of an identity document. Supported for Chinese resident identity cards only.
documents.cosigner_identity.typerequiredenumOne of cn_resident_id.
documents.cosigner_identity.frontrequiredstringA file ID. The side with the photograph.
documents.cosigner_identity.backrequiredstringA file ID. The side with the national emblem.
documents.proof_of_studystringA file ID. Offer or enrolment letter.
documents.visastringA file ID.
documents.tenancy_agreementstringA file ID.
feeobject
fee.collectionrequiredenumpartner: you charge the tenant and confirm the fee through the API. tsg: the tenant pays in a session. Defaults to the mode configured for your account.
consentsrequiredobject
consents.data_sharingrequiredobjectThe tenant's consent to share their details with The Student Guarantor.
consents.data_sharing.accepted_atrequireddate-time
consents.data_sharing.ip_addressstring
consents.data_sharing.wording_versionstringYour identifier for the consent wording shown.
metadataobjectSet of up to 20 key-value pairs that you can attach to the object.

Example request

curl https://api.thestudentguarantor.com/v1/applications \
  -X POST \
  -H "Authorization: Bearer $TSG_SECRET_KEY" \
  -H "Idempotency-Key: 6f1c2a9e-8f0b-4c59-9d0e-2b7a54d0c1aa" \
  -H "Content-Type: application/json" \
  -d '{
  "external_reference": "BK-2026-223515",
  "quote_id": "quo_8Kc2VnQ4hT7xWm3B",
  "applicant_type": "student",
  "locale": "zh-CN",
  "tenant": {
    "first_name": "Yuxi",
    "last_name": "Zhang",
    "name_local": "张雨曦",
    "email": "yuxi.zhang@example.com",
    "phone": "+8613800139527",
    "date_of_birth": "2003-04-17",
    "nationality": "CN",
    "country_of_residence": "CN",
    "address": {
      "line1": "88 Century Avenue",
      "city": "Shanghai",
      "postal_code": "200120",
      "country": "CN"
    }
  },
  "study": {
    "university_id": "uni_ucl",
    "course": "MSc Data Science",
    "level": "postgraduate",
    "first_year": true
  },
  "property": {
    "name": "Gold Studio Plus",
    "line1": "Flat 218, Tower Building",
    "line2": "12 Example Street",
    "city": "London",
    "postcode": "E1 6LT",
    "country": "GB",
    "accommodation_type": "pbsa"
  },
  "tenancy": {
    "agreement_type": "licence",
    "rent": {
      "amount": 32500,
      "currency": "GBP",
      "period": "week"
    },
    "start_date": "2026-10-24",
    "end_date": "2027-07-10",
    "tenant_count": 1,
    "landlord": {
      "name": "Example Student Living Ltd",
      "email": "lettings@example-living.co.uk"
    }
  },
  "cosigner": {
    "first_name": "Wei",
    "last_name": "Zhang",
    "relationship": "parent",
    "email": "wei.zhang@example.com",
    "phone": "+8613900001234",
    "date_of_birth": "1974-09-02",
    "nationality": "CN",
    "country_of_residence": "CN",
    "address": {
      "line1": "88 Century Avenue",
      "city": "Shanghai",
      "postal_code": "200120",
      "country": "CN"
    },
    "locale": "zh-CN"
  },
  "documents": {
    "tenant_identity": {
      "type": "cn_resident_id",
      "front": "file_5pXr9LmA2dQe7NzK",
      "back": "file_Q2w8ErT6yU1iOp3L"
    },
    "proof_of_study": "file_Z7xC4vB9nM2aSd5F"
  },
  "fee": {
    "collection": "partner"
  },
  "consents": {
    "data_sharing": {
      "accepted_at": "2026-11-19T09:12:55Z",
      "ip_address": "203.0.113.24"
    }
  },
  "metadata": {
    "house_id": "13888",
    "unit_id": "223515"
  }
}'

Returns

Returns the application object.

Example response

{
  "id": "app_3Nf7QwR1tY8uLk5H",
  "object": "application",
  "livemode": false,
  "external_reference": "BK-2026-223515",
  "status": "incomplete",
  "applicant_type": "student",
  "locale": "zh-CN",
  "tenant": {
    "first_name": "Yuxi",
    "last_name": "Zhang",
    "email": "yuxi.zhang@example.com"
  },
  "fee": {
    "collection": "partner",
    "amount": {
      "amount": 50000,
      "currency": "GBP"
    },
    "status": "unpaid"
  },
  "requirements": [
    {
      "code": "tenant.identity",
      "party": "partner",
      "status": "blocked",
      "completable_via": [
        "api",
        "session"
      ]
    },
    {
      "code": "tenant.proof_of_study",
      "party": "tsg",
      "status": "in_review",
      "completable_via": [
        "api",
        "session"
      ]
    },
    {
      "code": "cosigner.identity",
      "party": "partner",
      "status": "due",
      "completable_via": [
        "api",
        "session"
      ]
    },
    {
      "code": "fee.payment",
      "party": "partner",
      "status": "due",
      "completable_via": [
        "api"
      ]
    },
    {
      "code": "tenant.signature",
      "party": "tenant",
      "status": "due",
      "completable_via": [
        "session"
      ]
    },
    {
      "code": "cosigner.signature",
      "party": "cosigner",
      "status": "blocked",
      "completable_via": [
        "email_link"
      ]
    },
    {
      "code": "landlord.confirmation",
      "party": "landlord",
      "status": "due",
      "completable_via": [
        "email_link"
      ]
    },
    {
      "code": "landlord.signature",
      "party": "landlord",
      "status": "blocked",
      "completable_via": [
        "email_link"
      ]
    }
  ],
  "guarantee": null,
  "created_at": "2026-11-19T09:16:03Z",
  "updated_at": "2026-11-19T09:16:03Z"
}

List applications

GET/applications

Returns a list of applications.

Parameters

NameInDescription
external_referencequeryReturn only the application with this reference.
statusqueryOne of incomplete, in_review, approved, declined, cancelled, expired.
created_afterqueryOnly applications created at or after this time.

Returns

Returns a list of application objects.

Retrieve an application

GET/applications/{application_id}

Retrieves an application.

Returns

Returns the application object.

Update an application

PATCH/applications/{application_id}

Updates an application by setting the values of the parameters passed. Parameters not provided are left unchanged.

You can update an application while its status is incomplete or in_review. tenancy, property, tenant and cosigner can't be updated after any party has signed, and tenancy and property can't be updated after the landlord has confirmed the tenancy details. To change them, cancel the application and create a new one. Updating a priced detail recalculates the fee, and isn't allowed after the fee is paid.

Request body

Nested objects take the same fields as in create.

Any subset of the fields accepted at creation, except external_reference, quote_id and consents.

FieldTypeDescription
localeenumOne of en, zh-CN.
tenantobject
studyobjectRequired when applicant_type is student.
propertyobject
tenancyobject
cosignerobjectThe cosigner's details.
documentsobject
metadataobject

Example request

curl https://api.thestudentguarantor.com/v1/applications/app_3Nf7QwR1tY8uLk5H \
  -X PATCH \
  -H "Authorization: Bearer $TSG_SECRET_KEY" \
  -H "Idempotency-Key: 6f1c2a9e-8f0b-4c59-9d0e-2b7a54d0c1aa" \
  -H "Content-Type: application/json" \
  -d '{
  "documents": {
    "cosigner_identity": {
      "type": "cn_resident_id",
      "front": "file_A1s2D3f4G5h6J7k8",
      "back": "file_L9k8J7h6G5f4D3s2"
    }
  }
}'

Returns

Returns the application object. Returns an error if the application is approved, declined, cancelled or expired, or if the update isn't allowed in its current state.

Cancel an application

POST/applications/{application_id}/cancel

Cancels an application. You can cancel an application while its status is incomplete or in_review. Cancelling invalidates its sessions.

Request body

FieldTypeDescription
reasonenumOne of booking_cancelled, tenant_request, duplicate, other.
notestring

Example request

curl https://api.thestudentguarantor.com/v1/applications/app_3Nf7QwR1tY8uLk5H/cancel \
  -X POST \
  -H "Authorization: Bearer $TSG_SECRET_KEY" \
  -H "Idempotency-Key: 6f1c2a9e-8f0b-4c59-9d0e-2b7a54d0c1aa" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "booking_cancelled"
}'

Returns

Returns the application object with a status of cancelled. Returns an error if the application is already approved.

Confirm a fee you collected

POST/applications/{application_id}/fee/confirm

Confirms that you've collected the fee from the tenant. Satisfies the fee.payment requirement. The application's fee.collection must be partner. If the fee is no longer fee.amount, the request is rejected with 409 fee_changed and nothing is recorded.

Request body

FieldTypeDescription
amountrequiredobject
amount.amountrequiredintegerThe amount in the currency's smallest unit. 50000 is £500.00.
amount.currencyrequiredstringISO 4217 code. Fees are always GBP.
paid_atrequireddate-timeWhen the tenant's payment succeeded.
payment_referencerequiredstringYour order or transaction ID, shown on statements.
collectedobjectWhat you charged the tenant, if not in pounds sterling.
collected.amountrequiredintegerThe amount in the currency's smallest unit. 50000 is £500.00.
collected.currencyrequiredstringISO 4217 code. Fees are always GBP.

Example request

curl https://api.thestudentguarantor.com/v1/applications/app_3Nf7QwR1tY8uLk5H/fee/confirm \
  -X POST \
  -H "Authorization: Bearer $TSG_SECRET_KEY" \
  -H "Idempotency-Key: 6f1c2a9e-8f0b-4c59-9d0e-2b7a54d0c1aa" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": {
    "amount": 50000,
    "currency": "GBP"
  },
  "paid_at": "2026-11-19T09:21:44Z",
  "payment_reference": "ORD-99120045",
  "collected": {
    "amount": 462500,
    "currency": "CNY"
  }
}'

Returns

Returns the application object with a fee.status of paid. Returns an error if amount differs from fee.amount.