Skip to content
Kevin edited this page Aug 13, 2024 · 3 revisions

API Possibility

URL : api/company/2

{
   "data":{
      "code":"TEST",
      "label":"TEST"
   }
}

URL : /api/order/2

{
   "data":{
      "id":2,
      "uuid":"89de5907-15c8-466a-8e3-aae223b71b51",
      "code":"INT-0",
      "label":"INT-0",
      "customer_reference":null,
      "companies_id":null,
      "companies_contacts_id":null,
      "companies_addresses_id":null,
      "accounting_payment_conditions_id":null,
      "accounting_payment_methods_id":null,
      "accounting_deliveries_id":null,
      "validity_date":"2023-11-18",
      "statu":3,
      "comment":null,
      "created_at":"2023-11-17T20:45:59.000000Z",
      "updated_at":"2024-03-05T20:55:23.000000Z",
      "order_lines":[
         {
            "id":2,
            "orders_id":2,
            "ordre":1,
            "code":"PLATINE",
            "product_id":"3",
            "label":"Platine",
            "qty":1,
            "delivered_qty":0,
            "delivered_remaining_qty":0,
            "invoiced_qty":0,
            "invoiced_remaining_qty":1,
            "methods_units_id":1,
            "selling_price":"10.000",
            "discount":"0.000",
            "accounting_vats_id":1,
            "internal_delay":"2023-11-18",
            "delivery_date":"2023-11-18",
            "tasks_status":2,
            "delivery_status":3,
            "invoice_status":1,
            "created_at":"2023-11-17T20:46:15.000000Z",
            "updated_at":"2023-11-29T21:48:00.000000Z"
         },
         {
            "id":3,
            "orders_id":2,
            "ordre":1,
            "code":"PLATINE",
            "product_id":"4",
            "label":"Platine",
            "qty":1,
            "delivered_qty":1,
            "delivered_remaining_qty":0,
            "invoiced_qty":0,
            "invoiced_remaining_qty":1,
            "methods_units_id":1,
            "selling_price":"10.000",
            "discount":"0.000",
            "accounting_vats_id":1,
            "internal_delay":"2023-12-07",
            "delivery_date":"2023-12-07",
            "tasks_status":3,
            "delivery_status":3,
            "invoice_status":1,
            "created_at":"2023-11-29T21:49:44.000000Z",
            "updated_at":"2024-02-28T21:28:27.000000Z"
         }
      ]
   }
}

URL : /api/quote/1

{
   "data":{
      "id":1,
      "uuid":"60fd647a-d371-428b-a14d-3bd12b739aa8",
      "code":"QT-0",
      "label":"QT-0",
      "customer_reference":null,
      "companies_id":{
         "code":"PLATINE",
         "label":"MATERIAL"
      },
      "companies_contacts_id":{
         "civility":"Miss",
         "first_name":"NIGLAUT",
         "name":"K\u00e9vin Niglaut",
         "number":"+33679214987",
         "mobile":null,
         "mail":"kevin.niglaut@wanadoo.fr"
      },
      "companies_addresses_id":{
         "adress":"2 Rue Henriette Deloras",
         "zipcode":"38100",
         "city":"Grenoble",
         "country":"France",
         "number":"+33679214987",
         "mail":"kevin.niglaut@wanadoo.fr"
      },
      "accounting_payment_conditions_id":{
         "label":"45 jours"
      },
      "accounting_payment_methods_id":{
         "label":"Billet"
      },
      "accounting_deliveries_id":{
         "label":"Messagerie"
      },
      "validity_date":"2024-02-15",
      "statu":1,
      "comment":null,
      "created_at":"2024-02-27T20:37:02.000000Z",
      "updated_at":"2024-04-03T19:32:01.000000Z",
      "quote_lines":[
         {
            "id":2,
            "quotes_id":1,
            "ordre":3,
            "code":"",
            "product_id":null,
            "label":"MATERIAL",
            "qty":1,
            "methods_units_id":4,
            "selling_price":"10.000",
            "discount":"0.000",
            "accounting_vats_id":1,
            "delivery_date":"2024-02-15",
            "statu":1,
            "created_at":"2024-02-27T20:46:49.000000Z",
            "updated_at":"2024-02-27T21:50:29.000000Z"
         },
         {
            "id":1,
            "quotes_id":1,
            "ordre":10,
            "code":"PLATINE",
            "product_id":"3",
            "label":"Platine",
            "qty":10,
            "methods_units_id":1,
            "selling_price":"10.000",
            "discount":"0.000",
            "accounting_vats_id":1,
            "delivery_date":"2024-02-15",
            "statu":1,
            "created_at":"2024-02-27T20:41:00.000000Z",
            "updated_at":"2024-02-27T21:50:29.000000Z"
         },
         {
            "id":3,
            "quotes_id":1,
            "ordre":10,
            "code":"3e750b4e-22dc-4728-b5a2-4a0a1fc6a354",
            "product_id":"4",
            "label":"Platine#duplicate",
            "qty":10,
            "methods_units_id":1,
            "selling_price":"10.000",
            "discount":"0.000",
            "accounting_vats_id":1,
            "delivery_date":"2024-02-15",
            "statu":1,
            "created_at":"2024-02-27T20:48:05.000000Z",
            "updated_at":"2024-02-27T21:50:29.000000Z"
         }
      ]
   }
}

URL : /api/gantt/order/4

{
  "data": [
    {
      "id": "order_line_4",
      "label": "#TEST",
      "resource": "Order Line",
      "start_date": {
        "date": "2024-08-11 13:58:27.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "end_date": {
        "date": "2024-08-24 00:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "duration": null,
      "progress": 14.2857142857143,
      "dependencies": null
    },
    {
      "id": 19,
      "label": "#19 - Study",
      "resource": null,
      "start_date": {
        "date": "2024-07-29 05:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "end_date": {
        "date": "2024-07-29 06:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "duration": 1,
      "progress": 125,
      "dependencies": "order_line_4"
    },
    {
      "id": 20,
      "label": "#20 - laser",
      "resource": null,
      "start_date": {
        "date": "2024-07-29 06:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "end_date": {
        "date": "2024-08-14 11:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "duration": 101,
      "progress": 0,
      "dependencies": 19
    },
    {
      "id": 21,
      "label": "#21 - Bend",
      "resource": null,
      "start_date": {
        "date": "2024-08-14 11:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "end_date": {
        "date": "2024-08-23 17:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
      },
      "duration": 61,
      "progress": 0,
      "dependencies": 20
    }
  ]
}
Clone this wiki locally