Adding

New deal

POST https://do.workzeal.com/deal/insert

Request Body

Name
Type
Description

deal*

JSON

JSON

All available parameters of the new object
  • name - * Name

  • company_id - * Client ID

  • type_id - * Type ID of a new deal

  • status_id - * Status ID of a new deal

  • user_id - * User ID who is responsible for a new deal

  • sum - Sum of a new deal

  • date_start - * Date for start

  • date_finish - * Date for end

  • note - Note

  • Goods - List of items inside a new deal

Object


{
   "name":"test-deal-API",
   "company_id":1,
   "type_id":1,
   "status_id":5,
   "user_id":37,
   "sum":100,
   "date_start":"2022-01-21",
   "date_finish":"2022-01-22",
   "note":"test-Note",
   
    "Goods" : [{
           "goods_id" : 0,
           "discription" : "test-good-API",
           "code" : "0000001",
           "price" : 2000,
           "discount" : 0,
           "qnt" : 1,
           "note" : "test-note-API"
         }]
}

Required parameters name company_id type_id (Deal type code, can be found in the references ) user_id (Deal status code, can be found in the in the references) date_start date_finish

Example

ReferencesUsers