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 17:27] flackapi [2019/09/25 18:23] – [Quote - Missing structures] flack
Line 1323: Line 1323:
 ==== Quote - Missing structures ==== ==== Quote - Missing structures ====
  
-You can get the missing structures and the reason of their exclusion.+You can get the missing structures along with the reason of their exclusion.
  
 <code> <code>
-http https://mcule.com/api/v1/iquotes/15677/missing/ "Authorization: Token <your_token>" --print HBhb+http https://mcule.com/api/v1/iquotes/<quote_id>/missing/ "Authorization: Token <your_token>" --print HBhb
 </code> </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