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

Get a ticket model

productionTimes holds the machining times computed by the last price calculation: part totals plus a per-service breakdown (cycleTime, programmingTime, setupTime). After PUT /ticket-model/{id} with new production parameters, call this endpoint to read the recalculated times.

GET/ticket-model/{id}
Authorization
AuthorizationAPI key · headerrequired

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

Path parameters
idstringrequired
Responses
200

OK. A missing id returns 200 with an empty body — check for an id in the response.

idinteger

Ticket model id (read-only, autoassigned)

appIdstring

App id (read-only, autoassigned)

ticketModelSidstring

Autogenerated user-friendly id of the ticket model (read-only, autoassigned)

ticketSidstring

Ticket SID (create-only)

projectSidstring

Project SID (create-only)

catalogueModelSidstring

Catalogue model SID (read-only, autoassigned)

catalogueModelCustomIdstring

Catalogue model custom id (read-only, autoassigned)

modelEndpointobject

Object with url and headers pointing to the model file (create-only; not returned in list/retrieve)

catalogueModelConfigurationIdstring

Catalogue model configuration id; when set, production parameters are inherited from the configuration (create-only)

ticketIdstring

Target ticket id (create-only)

ticketCustomIdstring

Ticket custom id (read-only, autoassigned)

ticketStatestring

Ticket state: draft, confirmed, template or waiting_for_payment (read-only)

shippingDeadlinestring

Shipping deadline (ISO date)

quantitynumber

Quantity of parts

statusNamestring

Status name

partnerIntegrationNamestring

Partner integration name (read-only)

sourceModelNamestring

Source model file name (read-only, autoassigned)

sourceModelHeightnumber

Source model height (read-only, autoassigned)

sourceModelWidthnumber

Source model width (read-only, autoassigned)

sourceModelDepthnumber

Source model depth (read-only, autoassigned)

sourceModelVolumenumber

Source model volume (read-only, autoassigned)

sourceModelSurfacenumber

Source model surface area (read-only, autoassigned)

finalModelNamestring

Final model file name (read-only, autoassigned)

finalModelHeightnumber

Final model height (read-only, autoassigned)

finalModelWidthnumber

Final model width (read-only, autoassigned)

finalModelDepthnumber

Final model depth (read-only, autoassigned)

finalModelVolumenumber

Final model volume (read-only, autoassigned)

finalModelSurfacenumber

Final model surface area (read-only, autoassigned)

serviceJobsobject

Map of service jobId to quantity (read-only, autoassigned)

productionParametersobject

Production parameter values by name, e.g. Technology, Machine, Material, Resolution, Post Processing Services (array of strings), Curing (object), Water Jetting (object), Colour

productionParameterIdsobject

Production parameter ids by name: Technology, Machine, Material, Resolution, Post Processing Services (array of ids), Colour

productionTimesobject

Machining times computed by the last price calculation: part totals plus a per-service breakdown.

Show properties
cycleTimenumber

Total cycle (processing) time of the part, summed over its services.

programmingTimenumber

Total programming time of the part, summed over its services.

setupTimenumber

Total setup time of the part, summed over its services.

servicesobject[]

Per-service breakdown.

Show properties
Array of object
idinteger

Id of the post-processing service.

namestring

Name of the post-processing service.

cycleTimenumber

Cycle (processing) time of this service.

programmingTimenumber

Programming time of this service.

setupTimenumber

Setup time of this service.

thumbnailUrlstring

Thumbnail download URL (read-only, autoassigned)

productionCenterstring

Internal production center (partner integration) name (create-only; not returned in list/retrieve)

quoteProductionNotestring

Quote production note (create-only; not returned in list/retrieve)

customPartIdstring

Custom part id specified by user

additionalFilesany[]

Additional files attached to the part (read-only)

productionNotestring

Production note (create-only; not returned in list/retrieve)

pricenumber

Part price; recalculated on create/update

currencyCodestring

Currency code (read-only)

createdAtstring

Creation timestamp (ISO date, read-only, autoassigned)

modelParametersobject

Geometry parameters (x, y, z, width, height, depth, volume, surface, shellsCount, intersections, openEdges, sharpEdges, shrinkWrapVolume, minimisedBoundingBoxVolume, thumbnailEndpoint {url, fileName, header}); a non-empty object bypasses CAD analysis, feature detection and similarity analysis (create-only)

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
Request
curl -X GET 'https://next.amfg.ai/engine-service/public-api/v1/ticket-model/string' \
  -H 'Authorization: YOUR_API_KEY'
Response
{
  "id": 4846,
  "ticketModelSid": "X-88-ORDER-95307-2",
  "ticketId": "1726",
  "ticketState": "confirmed",
  "quantity": 1,
  "statusName": "Quoted",
  "shippingDeadline": "2026-08-03T14:41:07.000Z",
  "price": "1264.17",
  "currencyCode": "USD",
  "productionLeadTime": 48,
  "servicesLeadTime": 2,
  "sourceModelName": "dino.stl",
  "finalModelVolume": 211380.962,
  "productionTimes": {
    "cycleTime": 12.5,
    "programmingTime": 30,
    "setupTime": 15,
    "services": [
      {
        "id": 100049,
        "name": "Milling",
        "cycleTime": 12.5,
        "programmingTime": 30,
        "setupTime": 15
      }
    ]
  }
}