Become a client

Examples of Single Quote

See below for examples of 'Create' quote and 'Get' quote.

Table - Examples of Create Quote + Get Quote for Single Quotes

CREATE QUOTE

Request
                            POST quotes HTTP/1.1 Accept: application/json
Content-Type: application/json
{"customerId": "1234-1234-1234","itemsToQuote": [{
"amount": 15000,"tradeCurrency": "AUD",
"settlementCurrency": "USD"}]}
                          
Response
                            HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
  {"createdOn":"2015-09-24 18:38:50Z","expirationIntervalInSec":100,
  "quoteId":"15320","quotedItems":[
  {"decimalsDirect":4,"decimalsIndirect":4,
  "isDirectRate":true,"rate":1.3345,
  "rateInverted":0.7493,"settlementAmount":20018,
  "settlementCurrency":"USD","tradeAmount":15000,
  "tradeCurrency":"AUD"}]}

                          
Request (same currency)
                            POST quotes HTTP/1.1 Content-Type: application/json
  {"customerId": "5678-5678-5678","itemsToQuote":
  [{"amount": 15000,"tradeCurrency": "USD",
  "settlementCurrency": "USD"}]}
                          
Response (same currency)
                            HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
{"createdOn":"2015-09-24 18:48:18Z","expirationIntervalInSec":12000,
"quoteId":"251169","quotedItems":[
{"decimalsDirect":4,"decimalsIndirect":4,
"isDirectRate":true,"rate":1,
"rateInverted":1,"settlementAmount":15000,
"settlementCurrency":"USD","tradeAmount":15000,
"tradeCurrency":"USD"}]}                        
                          

GET QUOTE

Request
                            GET quotes/bfd8d72f-7f52-457a-b65a-432b777d7e43
HTTP/1.1 Accept: application/json
                          
Response
                            HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
{ "createdOn":"2015-09-24 19:06:22Z",
 "customerId":"5678-5678-5678",
 "expirationIntervalInSec":12000,
 "id":"bfd8d72f-7f52-457a-b65a-432b777d7e43",
 "lastUpdatedOn":"2015-09-24 19:06:22Z",
 "status":"Created"} 

                          
Response (after a quote was used to create an order)
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
{ "createdOn":"2015-09-24 19:06:22Z",
 "customerId":"5678-5678-5678",
 "expirationIntervalInSec":12000,
"id":"bfd8d72f-7f52-457a-b65a-432b777d7e43",
"lastUpdatedOn":"2015-09-24 19:08:19Z",
"status":"Committed}