curl --request POST \ --url http://xalantis.com/api/deals \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "name": "Partenariat 2024", "amount": 15000, "contact_email": "sophie.martin@example.com", "contact_first_name": "Sophie", "contact_last_name": "Martin" }'
{ "data": { "uuid": "8a7b9c1d-2e3f-4g5h-6i7j-8k9l0m1n2o3p", "name": "Partenariat 2024", "amount": 15000, "currency": "EUR", "status": "open", "probability": 10, "pipeline": { "id": 1, "name": "Vente Standard" }, "stage": { "id": 15, "name": "Nouveau lead", "color": "#3b82f6" }, "contact": { "uuid": "1b2c3d4e-5f6g-7h8i-9j0k-1l2m3n4o5p6q", "full_name": "Sophie Martin", "email": "sophie.martin@example.com" }, "created_at": "2024-03-20T10:00:00.000000Z" } }
contact_email