Quotes API
Quotes with a validity and a cap, answered by a link on the customer's phone.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/quotes
List quotes
Quotes in one state, least recently changed first. The default is the quotes waiting on an answer. Needs quotes:read.
Scope quotes:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
state | query | string | No | Which quotes. Default `sent`. |
limit | query | integer | No | How many. Default 50. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/quotes
Make a quote
A draft with priced lines, a tax line, a validity and an optional not-to-exceed cap. Needs quotes:write.
Scope quotes:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/quotes/{id}
Get a quote
One quote with its state. Needs quotes:read.
Scope quotes:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/quotes/{id}/send
Send a quote for an answer
Sends the customer a link on the phone given. They open it, see what they accept, enter a code sent to the same phone and say yes or no. A yes is bound to these exact terms; terms changed after sending void it. Needs quotes:write.
Scope quotes:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/quotes/{id}/revision
Revise a quote
Makes the next version with other lines and a new validity. The old one is superseded and keeps its terms on record. Needs quotes:write.
Scope quotes:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/quotes/{id}/decline
Decline a quote
Records that the customer said no. Needs quotes:write.
Scope quotes:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/quotes/{id}/acceptance
Record an acceptance
Staff record an acceptance made another way: a reply in the chat, a certified signature or a signed paper. The proof must be strong enough for the amount, by the country's rules. Needs quotes:write.
Scope quotes:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |