{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/merge/refs/heads/main/json-schema/crm-api-opportunity-schema.json", "title": "Opportunity", "description": "A sales opportunity or deal from a connected CRM system.", "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "remote_id": { "type": "string" }, "name": { "type": "string", "description": "Opportunity name." }, "description": { "type": "string" }, "amount": { "type": "integer", "description": "Deal value in cents." }, "owner": { "type": "string", "format": "uuid" }, "account": { "type": "string", "format": "uuid" }, "stage": { "type": "string", "format": "uuid" }, "status": { "type": "string", "enum": ["OPEN", "WON", "LOST"] }, "close_date": { "type": "string", "format": "date-time" }, "last_activity_at": { "type": "string", "format": "date-time" }, "remote_was_deleted": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "modified_at": { "type": "string", "format": "date-time" } } }