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 revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
api [2019/09/08 11:47]
flack [Quote Request API]
api [2019/09/08 16:54]
flack [Quote API]
Line 646: Line 646:
   * **purity**: Required minimum purity (%). (default: null)   * **purity**: Required minimum purity (%). (default: null)
   * **item_filters**:​ Per query item filters. Currently it supports only supplier filtering. See example below.   * **item_filters**:​ Per query item filters. Currently it supports only supplier filtering. See example below.
 +
 +The **amount** or target concentration-volume pair (**target_volume** and **target_cc**) need to be specified.
  
 **item_filters** example: **item_filters** example:
Line 655: Line 657:
   "​MCULE-6824753328":​ {"​suppliers":​ [3, 48]}   "​MCULE-6824753328":​ {"​suppliers":​ [3, 48]}
 } }
-</​code>​ +</​code> ​
-The **amount** or target concentration-volume pair (**target_volume** and **target_cc**) need to be specified. +
- +
  
 Advanced optional fields: Advanced optional fields:
Line 1318: Line 1318:
   * **updated**:​ The update datetime the quote.   * **updated**:​ The update datetime the quote.
   * **valid_until**:​ The datetime until the quote is valid.   * **valid_until**:​ The datetime until the quote is valid.
-   +   
 +==== Download quote as PDF  ==== 
 + 
 +You can download a quote as a PDF file. Please note that the PDF file generation can take some time, the more item it contains the more time it will take to generate the file. 
 + 
 +The HTTP response contains a //​Content-Disposition attachment; filename="<​filename>"//​ header indicating that it should be downloaded. 
 + 
 +<​code>​ 
 +http https://​mcule.com/​api/​v1/​iquotes/​15677/​download-pdf/​ "​Authorization:​ Token <​your_token>"​ --download 
 +</​code>​ 
 + 
 +==== Download quote as Excel (.xlsx) file  ==== 
 + 
 +You can download a quote as an Excel file. Please note that the file generation can take some time, the more item it contains the more time it will take to generate the file. 
 + 
 +The HTTP response contains a //​Content-Disposition attachment; filename="<​filename>"//​ header indicating that it should be downloaded. 
 + 
 +<​code>​ 
 +http https://​mcule.com/​api/​v1/​iquotes/​15677/​download-excel/​ "​Authorization:​ Token <​your_token>"​ --download 
 +</​code>​
api.txt · Last modified: 2019/09/25 20:24 by flack