Skip to content
Public API
Esc
↑↓navigate↵open⌘Jpreview

Create and send a quote

The full send quote operation, not a draft — the quote is rendered and emailed to the customer. userId must be a real user id: the API authenticates an App, so the caller supplies the acting user.

POST/ticket/{ticketId}/quote
Authorization
AuthorizationAPI key · headerrequired

The Incoming Secret value (<secretId>.<random>), with or without a Bearer prefix.

Path parameters
ticketIdstringrequired
Request body
application/json
customerIdintegerrequired

Id of the customer receiving the quote.

userIdintegerrequired

Id of the user the quote is sent on behalf of.

pdfTemplateNamestringrequired

Name of the PDF template used to render the quote document.

languageCodestringrequired

Language of the quote document, e.g. "en".

currencyCodestringrequired

Currency of the quote prices, e.g. "USD".

dueDateNamestringrequired

Name of the payment due date option configured in the app.

deliveryMethodNamestringrequired

Name of the delivery method; must exist for the shipping destination.

shippingAddressIdinteger

Id of an existing shipping address. Alternative to shippingAddress.

shippingAddressobject

A new shipping address to create and use for delivery pricing.

emailTostring[]

Extra recipient emails; the customer email is always included.

ccstring[]

CC recipient emails.

bccstring[]

BCC recipient emails.

messagestring

Free-text message included in the quote email.

contactDetailsstring

Contact details shown on the quote.

discountnumber

Discount amount applied to the quote.

discountTypestring

How the discount is interpreted, e.g. percentage or absolute.

vatRateIdinteger

Id of the VAT rate applied to the quote.

deliveryVatRateIdinteger

Id of the VAT rate applied to delivery.

isAutoUsVatDeliveryboolean

Automatically resolve US VAT for delivery.

isAutoUsVatServiceboolean

Automatically resolve US VAT for manual services.

manualRequestsobject[]

Manually priced line items added to the quote.

Show properties
Array of object
quantityintegerrequired

Quantity of the manual line item.

pricePerUnitnumberrequired

Price per unit of the manual line item.

descriptionstring

Line item description shown on the quote.

Responses
200

Created. Returns only the id — fetch the full Ticket quote with the corresponding GET.

idinteger | stringrequired

Id of the created Ticket quote.

Show properties
One of:
integer
integer
string
string
401

Authentication failed. All causes return this identical response.

codeinteger
messagestring
typestring
default

Downstream errors pass through verbatim; x-error-source names the failing service.

codeinteger
messagestring
typestring
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://next.amfg.ai/engine-service/public-api/v1/ticket/string/quote' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "customerId": 0,
  "userId": 0,
  "pdfTemplateName": "string",
  "languageCode": "string",
  "currencyCode": "string",
  "dueDateName": "string",
  "deliveryMethodName": "string",
  "shippingAddressId": 0,
  "shippingAddress": {},
  "emailTo": [
    "string"
  ],
  "cc": [
    "string"
  ],
  "bcc": [
    "string"
  ],
  "message": "string",
  "contactDetails": "string",
  "discount": 0,
  "discountType": "string",
  "vatRateId": 0,
  "deliveryVatRateId": 0,
  "isAutoUsVatDelivery": true,
  "isAutoUsVatService": true,
  "manualRequests": [
    {
      "quantity": 0,
      "pricePerUnit": 0,
      "description": "string"
    }
  ]
}'
Response
{
  "id": 0
}