User Tools

Site Tools


api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
api [2019/09/25 16:52] – [Quote Request API] flackapi [2019/09/25 18:24] – [Quote API] flack
Line 1105: Line 1105:
         }         }
     ],      ], 
-    "missing_mcule_ids": [],  
     "name": "",      "name": "", 
     "order_data": null,      "order_data": null, 
Line 1281: Line 1280:
     * **product**: The ID of the quoted product (should be neglected).     * **product**: The ID of the quoted product (should be neglected).
     * **product_compound_mcule_id**: The compound level structures' mcule ID of the quoted product.     * **product_compound_mcule_id**: The compound level structures' mcule ID of the quoted product.
 +    * **product_delivery_time**: Delivery time (working days)
     * **product_price**: Product price (USD)     * **product_price**: Product price (USD)
     * **product_purity**: Minimum purity (%)     * **product_purity**: Minimum purity (%)
     * **structure_origin_mcule_id**: The mcule ID of the query molecule.     * **structure_origin_mcule_id**: The mcule ID of the query molecule.
     * **quote**: The ID of the quote this product level quote data belongs to.     * **quote**: The ID of the quote this product level quote data belongs to.
-  * **missing_mcule_ids**: list of missing mcule IDs from the query 
   * **name**: The name of the quote. Quotes created via the API don't have names.   * **name**: The name of the quote. Quotes created via the API don't have names.
   * **order_data**: Order data. (Should be neglected).   * **order_data**: Order data. (Should be neglected).
Line 1320: Line 1319:
   * **valid_until**: The datetime until the quote is valid.   * **valid_until**: The datetime until the quote is valid.
      
 +==== Quote - Missing structures ====
 +
 +You can get the missing structures along with the reason of their exclusion.
 +
 +<code>
 +http https://mcule.com/api/v1/iquotes/<quote_id>/missing/ "Authorization: Token <your_token>"
 +</code>
 +
 +And it will return a similar response to this:
 +<code>
 +{
 +    "results": [
 +        {
 +            "data": {
 +                "MCULE-6224850672": "No instant quotable products"
 +            }, 
 +            "id": 4, 
 +            "quote": 125, 
 +            "structure": 167312, 
 +            "structure_mcule_id": "MCULE-6224850672"
 +        }, 
 +        {
 +            "data": {
 +                "MCULE-7173925849": "No instant quotable products"
 +            }, 
 +            "id": 5, 
 +            "quote": 125, 
 +            "structure": 135326, 
 +            "structure_mcule_id": "MCULE-7173925849"
 +        }, 
 +        {
 +            "data": {
 +                "P-282184": "Purity filtering", 
 +                "P-307415": "Purity filtering"
 +            }, 
 +            "id": 6, 
 +            "quote": 125, 
 +            "structure": 201510, 
 +            "structure_mcule_id": "MCULE-9519333144"
 +        }
 +    ]
 +}
 +</code>
 +
 ==== Download quote as PDF  ==== ==== Download quote as PDF  ====
  
api.txt · Last modified: 2024/05/10 08:12 by bkovats