Sandbox
Endpoints available only in the sandbox.
POST /test/applications/{application_id}/simulate
Simulate an outcome
POST/test/applications/{application_id}/simulate
Completes requirements or the review on a sandbox application.
Request body
| Field | Type | Description |
|---|---|---|
actionrequired | enum | tenant_completes_session satisfies every requirement whose party is tenant. cosigner_signs, landlord_confirms and landlord_signs satisfy the matching requirement. documents_accepted and documents_rejected settle requirements that are in_review. approve and decline settle an application that is in_review. |
Example request
curl https://api.thestudentguarantor.com/v1/test/applications/app_3Nf7QwR1tY8uLk5H/simulate \
-X POST \
-H "Authorization: Bearer $TSG_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "tenant_completes_session"
}'
Returns
Returns the application object. Returns 404 in production.