User Tools

Site Tools


ultimate-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
ultimate-api [2020/07/20 13:41] flackultimate-api [2020/07/20 13:44] – [Quote Request API] flack
Line 630: Line 630:
  
  
-===== Quote Request API =====+====== Quote Request API ======
  
 == Endpoint: == == Endpoint: ==
Line 637: Line 637:
 == Example API request: == == Example API request: ==
 <code> <code>
-echo '{"customer_name": "John Doe", "delivery_country": "US", "compounds": ["RAQLVHPPDXCQDS-UHFFFAOYSA-N +echo '{"compounds": ["RAQLVHPPDXCQDS-UHFFFAOYSA-N", "QWPFQODIGUYSLE-UHFFFAOYSA-N"], "amount": 1, "customer_name": "John Doe", "delivery_country": "US"}' | http https://ultimateapp.mcule.com/api/v1/iquote-queries/ "Authorization: Token <your_token>" --print HBhb
-QWPFQODIGUYSLE-UHFFFAOYSA-N"], "amount": 1}' | http https://ultimateapp.mcule.com/api/v1/iquote-queries/ "Authorization: Token <your_token>" --print HBhb+
 </code> </code>
  
Line 645: Line 644:
      * list of InChIKeys (which you get from search results for example). For example: <code>{"compounds": ["VKCCTPSYCYARFI-UHFFFAOYSA-N", "DVPXLZBGJCHMEO-UHFFFAOYSA-N"]}</code>      * list of InChIKeys (which you get from search results for example). For example: <code>{"compounds": ["VKCCTPSYCYARFI-UHFFFAOYSA-N", "DVPXLZBGJCHMEO-UHFFFAOYSA-N"]}</code>
      * list of InChIKey, amount pairs. This is useful if you want to request quote for different amounts. For example: <code>{"compounds": [{"inchi_key": "VKCCTPSYCYARFI-UHFFFAOYSA-N", "amount": 1}, {"inchi_key": "DVPXLZBGJCHMEO-UHFFFAOYSA-N", "amount": 5}]}</code>      * list of InChIKey, amount pairs. This is useful if you want to request quote for different amounts. For example: <code>{"compounds": [{"inchi_key": "VKCCTPSYCYARFI-UHFFFAOYSA-N", "amount": 1}, {"inchi_key": "DVPXLZBGJCHMEO-UHFFFAOYSA-N", "amount": 5}]}</code>
-  * **customer_name**: The customer's first name. It does not need to be specified if the user's name is who is requesting the call is specified+  * **customer_name**: The customer's first name. It is optional if the user's name is who is requesting the call is specified.
-  * **customer_last_name**: The customer's last name. It does not need to be specified if the user's last name is specified on the Edit profile page on mcule.com.+
   * **delivery_country**: ISO 3166-1 alpha-2 code of the delivery country.   * **delivery_country**: ISO 3166-1 alpha-2 code of the delivery country.
  
Line 652: Line 650:
 Optional fields: Optional fields:
   * **customer_email**: The customer's email address. By default it will be filled with the email address associated with the user making the API request.   * **customer_email**: The customer's email address. By default it will be filled with the email address associated with the user making the API request.
-  * **amount**: Amount per molecule (mg). (default: 1) 
   * **currency**: Valid values are "USD", "EUR", "GBP". The default is "USD".   * **currency**: Valid values are "USD", "EUR", "GBP". The default is "USD".
  
ultimate-api.txt · Last modified: 2021/05/25 14:27 by flack