Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
FaxStore IconFaxStore

Weblutions Documentation / FaxStore / Quotes API

Updated

Quotes API

By Josh M. 2 mins 44

The Quotes API for FaxStore allows issuing and retrieving quotes for users. It streamlines the process of managing and delivering price estimates directly to your customers.

Table of Contents


Get All Quotes

GET/api/quotes
Returns all quotes created in an array.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Responses
200OKjson
View response body
[
  {
    "id": 39,
    "uid": "183355725132050432",
    "title": "Quote Item Title",
    "description": "This is a quote description",
    "price": "10.00",
    "agree": "",
    "createdAt": "1699940740527"
  },
  ...
]
404Not Foundplaintext
View response body
Quotes not found.

Get Single Quote

GET/api/quotes/:id
Returns an object of the specified quote.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Path parameters
NameTypeRequiredDescription
idStringrequiredThe ID of a quote to fetch.
Responses
200OKjson
View response body
{
    "id": 39,
    "uid": "183355725132050432",
    "title": "Quote Item Title",
    "description": "This is a quote description",
    "price": "10.00",
    "agree": "",
    "createdAt": "1699940740527"
}
404Not Foundplaintext
View response body
Quote not found.

Create Quote

POST/api/quote
Creates a quote with the provided data and returns it. Note agree field can't be entered via the API as it is for user agreement in a quote.
Authorization
NameTypeRequiredDescription
authorizationStringrequired
Request body
NameTypeRequiredDescription
titleStringrequiredThe title of the quote.
descriptionStringoptionalThe body content for the quote.
priceStringoptionalThe proposed price of the quote.
Responses
200OKjson
View response body
{
    "id": 39,
    "uid": "183355725132050432",
    "title": "Quote Item Title",
    "description": "This is a quote description",
    "price": "10.00",
    "agree": "",
    "createdAt": "1699940740527"
}
404Not Foundplaintext
View response body
Quote not found.

Document History

Loading version history...