Get user quotes (Pagination/Summary)
Use this request to retrieve quotes with summary information and pagination capabilities.
To retrieve the quotes for your use, use a
GET method and the following
URL:{epal_api_url}/quotesFor
example:
https://api.epalglobal.com/quotesDetails
| Detail | |
|---|---|
| Operation | GET |
| Endpoint | /quotes |
| Fields | Response only |
Response Parameters
| Response Parameter | Details | Description |
|---|---|---|
limit |
|
The maximum number of pages in the response. |
page |
|
The number of pages. |
quotes |
|
Groups information about the quote. For more information about these fields, see the table below. |
summary |
|
Groups summary information about the quotes. |
summary.AvgQuoteValue |
|
The average value of the quote. |
summary.totalQuotes |
|
The total number of quotes. |
summary.totalValue |
|
The total value of the quotes. |
total |
|
The total number of quotes. |
totalPages |
|
The total number of pages. |
The following table displays the fields that are available in the
quotes 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. |
Example Response
The following is an example of a successfule
response:
{
"quotes": [
{
"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"
}
],
"total": 0,
"page": 0,
"limit": 0,
"totalPages": 0,
"summary": {
"totalQuotes": 0,
"totalValue": "string",
"avgQuoteValue": "string"
}
}