Skip to main content

When fired

Emitted after a Zest admin approves the SPV request and the underlying SPV is fully materialised — i.e. an Opportunity, Vehicle, SP, and SPC have been created and committed.

Envelope fields

eventId
string
required
Unique per delivery.
eventType
string
required
Always "spv_request.completed".
occurredAt
string (ISO 8601 UTC)
required
Timestamp of the approval.
data
object
required
See payload schema below.

data schema

spvRequestSlug
string
required
Stable Zest-side identifier of the SPV request.
templateId
string
required
Contract template id used.
templateVersion
string
required
Contract template version.
tenantSlug
string
required
Tenant slug.
attributes
object
required
The originally-submitted, validated attributes map.
status
string
required
Always "approved" for this event.
materialisedRefs
object
required
Slugs of the materialised entities. Keys: opportunitySlug, vehicleSlug, spSlug, spcSlug.
approvedAt
string (ISO 8601 UTC)
required
Timestamp the admin approved the request.

Example