Get quote by session ID with raw data
Use this request to retrieve a quote and the raw data.
This request retrieves the JSON response, details about the requst and details about responses from providers like Hurricane and Shippo.
For example, you may want more information about a quote so you use this request.
Tip:
If you do not want the raw data, you
To retrieve a quote and its raw data by using a Session ID , use the following
URL:
{api_url}/quotes/{sessionID}where:{api_url}is the API URL. This is usually for sandbox or production.{sessionID}is the ID for the session where the quote resides. This can be retrieved from thesession_Idfield that was returned when the quote was created.
For example, you would use the following URL to do so in the production
environment
https://api.epalglobal.co/quotes/{sessionId}Details
| Detail | |
|---|---|
| Operation | GET |
| Endpoint | |
| Fields | Query parameters and response fields |
Query Parameter
| Query Parameter | Details | Description |
|---|---|---|
sessionID |
|
The ID of the quote's session. Use this to specify the quote
that you want to retrieve. You can find it in the
sessionID field in the original quote's
response. |
Response Parameters
The response contains the following fields which belong to the quote
array:
| Response Parameter | Details | Description |
|---|---|---|
createdAt |
|
The timestamp for when the quote was created. |
customsProvider |
|
The customs provider that was used to help provide the quote. |
id |
|
The unique ID used to identify the quote. |
quoteData |
|
The information contained in the quote for things like tax calculations, shipping rates and compliance information. |
requestSource |
|
The origin of the request. For example, from an API call or from WooCommerce. |
sessionId |
|
The Session ID fo the quote. |
shippingProvider |
|
The name of the shipping providcr used to help generate the quote. |
taxProvider |
|
The name of the tax provider. Specify "hurricane". |
totalAmount |
|
The total amount from the quote. This includes tax and shipping. |
transactionValue |
|
The breakdown of the transaction's value. |
updatedAt |
|
The timestamp for the last update. |
user |
|
The user who created the quote. |
It also contains the following additional fields:
| Field | Detail | Description |
|---|---|---|
requestData |
|
The JSON from the request. |
responseData |
|
The JSON from the response. |
hurricaneResponse |
|
The JSON from Hurricane's response. |
Example Response
The following is an example response:
{
"id": 0,
"sessionId": "string",
"user": {},
"taxProvider": "hurricane",
"shippingProvider": "sendcloud",
"customsProvider": "hurricane",
"requestSource": "api_call",
"totalAmount": 0,
"transactionValue": {},
"quoteData": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"requestData": {},
"responseData": {},
"hurricaneResponse": {}
}