Create New Deal

POST https://app.alaaqat.com/api/deals

Before requesting check the type of properties.

Relationship between Deal and Contact

contact_ids is an array used to link contacts in deals.

Header

Accept: application/json

Body

This endpoint accepts custom properties in the body, read properties.

syntax is property_internal_name: value

{
  "deal_name": "test",
  "amount": 50,
  "deal_stage": "appointment_scheduled",
  "contact_ids": [
    "66036296905a0cb19b08bd75",
    "65cb6719ae87531d6c045873"
  ]
}

Response

The return type will always be Deal.

{
    "data": {
        "properties": {
            "deal_name": "test",
            "amount": 50,
            "deal_stage": "appointment_scheduled",
            "updated_at": "2024-05-28T00:59:07.325000Z",
            "created_at": "2024-05-28T00:59:07.325000Z",
            "_id": "66552c5bf8309b0cae098994"
        }
    },
    "message": "Entity was created Successfully"
}