Leases
Initiate amendment electronic signature
Initiate the electronic signature workflow for an amendment.
Prerequisites:
- Amendment must be in DRAFT or PENDING_SIGNATURE status
- No active signature process already in progress
Flow:
- Generates the amendment PDF (Typst template)
- Uploads the PDF to secure storage
- Creates a DocumentSignature record with document_type: AMENDMENT
- Creates SignatureRequest for each signer (owner + tenants)
- Publishes signature events (Scaleway Topics)
- Transitions amendment to PENDING_SIGNATURE
Returns the signature process details including PDF URL and signer list.
post/leases/{lease_id}/amendments/{amendment_id}/initiate-signature
Request
- Base URL: https://api.faireplace.com/api
- URL: https://api.faireplace.com/api/leases/{lease_id}/amendments/{amendment_id}/initiate-signature
- Auth: HTTP bearer
Path parameters
lease_idstring uuid required
Lease ID
amendment_idstring uuid required
Amendment ID
Request body
Example request
{
"initiator_id": "550e8400-e29b-41d4-a716-446655440000",
"initiator_signer_type": "proprietaire"
}Response
Signature process initiated successfully
Example response
{
"document_signature_id": "550e8400-e29b-41d4-a716-446655440000",
"event_id": "signature_550e8400-e29b-41d4-a716-446655440001_1704985200",
"pdf_url": "https://api.faireplace.com/api/media/serve/550e8400-e29b-41d4-a716-446655440002",
"media_id": "550e8400-e29b-41d4-a716-446655440002",
"signature_requests": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"signer_type": "proprietaire",
"signer_email": "jean.dupont@example.com",
"status": "PENDING",
"expires_at": "2024-01-20T10:00:00Z"
}
],
"status": "READY"
}Changes
No recorded changes to this operation across all 1 revision of this API.