Getting started

Where the API is, the key, and who it acts as.

GET /api/v1 Where the API is

Answers without a key: the version, where the reference is and how to authenticate. A good first call when setting a client up.

No key needed

Answers 200

A Index. See Index.

Example call

curl \
  "https://manufactiq.co.uk/api/v1"
GET /api/v1/openapi.json The OpenAPI document

Every route, parameter and schema as an OpenAPI 3.0 document, for Postman, Insomnia, a code generator or a browser-based explorer.

No key needed

Answers 200

A OpenAPI. See OpenAPI.

Example call

curl \
  "https://manufactiq.co.uk/api/v1/openapi.json"
GET /api/v1/me Who this key is

The key, the person it acts as, the company and the rate limit. The call to make to check a key works.

Any key

Answers 200

A Me. See Me.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/me"
GET /api/v1/keys The company's API keys

Every key the company has made, live ones first, without the keys themselves - those were shown once. Administrators only.

Any keyAdministrator

Answers 200

A list of ApiKey records under items. See ApiKey.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/keys"
POST /api/v1/keys Make an API key

The key itself is in this answer once and never again: only its hash is kept. Give it to the system that will use it and nothing else.

Write keyAdministrator

Body

FieldTypeWhat it is
name requiredstringWhat the key is for - the system that will hold it.
scope requiredstringread, or write. One of: read, write.
user_id requiredintegerThe active account the key acts as; every call is checked and audited as that person.
expires_ondateThe last day it works; never, if left out.

Example body

{
  "name": "Website order feed",
  "scope": "write",
  "user_id": 3
}

Answers 201

A NewApiKey. See NewApiKey.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Website order feed", "scope": "write", "user_id": 3}' \
  "https://manufactiq.co.uk/api/v1/keys"
POST /api/v1/keys/{key_id}/revoke Revoke an API key

Stops it at once, for good; the row stays so the audit trail still names it. The key making this call may revoke itself.

Write keyAdministrator

Answers 200

A ApiKey. See ApiKey.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/keys/5/revoke"
DELETE /api/v1/keys/{key_id} Delete an API key

Removes the row as well. Revoking is enough to stop a key; delete to tidy up.

Write keyAdministrator

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/keys/5"
GET /api/v1/me/notifications The key's own user's email notifications

Which events email the person the key acts as.

Any key

Answers 200

A Notifications. See Notifications.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/me/notifications"
PATCH /api/v1/me/notifications Change the key's own user's notifications

Send only the switches to change.

Write key

Body

FieldTypeWhat it is
notify_task_assignedbooleanA task is assigned to them.
notify_enquiry_assignedbooleanAn enquiry is assigned to them.
notify_quote_decisionbooleanA quotation of theirs is accepted or rejected.
notify_daily_digestbooleanThe daily digest.
notify_mentionedbooleanA colleague mentions them in a note.

Answers 200

A Notifications. See Notifications.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/me/notifications"

Companies

Customers, prospects, contractors, architects and suppliers, and everything filed against them.

GET /api/v1/companies List companies

The company list, with the same filters as the Companies tab.

Any keyCompanies tab

Query

NameTypeWhat it is
qstringSearch the name, town, postcode, email and phone.
typestringOne company type. One of: prospect, customer, main_contractor, architect, supplier, other.
ownerintegerAn owner's user id.
archivedbooleantrue to include archived companies.
sortstringname (the default), name_desc, type, recent or created. One of: name, name_desc, type, recent, created, location, contact, contacts, open, owner, sector, postcode, phone, email.
x_<field>stringFilter on one of your own fields: x_<field>=value, or x_<field>.from and x_<field>.to for a number, money or date field.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Company records under items, with paging. See Company.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies"
POST /api/v1/companies Add a company

The same checks as the form, and the same duplicate check: a company that looks like one you already have is refused with 409 unless you say to add it anyway.

Write keyCompanies tab

Body

FieldTypeWhat it is
name requiredstringThe company's name.
company_typestringprospect (the default), customer, main_contractor, architect, supplier or other. One of: prospect, customer, main_contractor, architect, supplier, other.
sectorstringWhat they do.
phonestringTelephone.
emailstringGeneral address.
websitestringWebsite.
address_line1stringAddress, first line.
address_line2stringAddress, second line.
citystringTown or city.
countystringCounty.
postcodestringPostcode.
countrystringCountry; United Kingdom if left out.
currencystringThe currency they are usually quoted in (ISO code), or null for yours.
notesstringFree notes, up to 10,000 characters.
owner_user_idintegerThe account owner's user id (see GET /users); the key's own user if left out of a new company.
fieldsobjectThe company's extra fields, by name - see GET /fields.
confirm_duplicatebooleantrue to save even though a similar company exists; without it a likely duplicate is refused with 409 and the matches.

Example body

{
  "name": "Kestrel Archives Ltd",
  "company_type": "customer",
  "sector": "Records storage",
  "phone": "0118 902 4411",
  "email": "hello@kestrel.example",
  "website": "https://kestrel.example",
  "address_line1": "Unit 7, Brunel Way",
  "city": "Reading",
  "county": "Berkshire",
  "postcode": "RG1 8QT",
  "fields": {
    "customer_number": "C-0042"
  }
}

Answers 201

A Company. See Company.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Kestrel Archives Ltd", "company_type": "customer", "sector": "Records storage", "phone": "0118 902 4411", "email": "hello@kestrel.example", "website": "https://kestrel.example", "address_line1": "Unit 7, Brunel Way", "city": "Reading", "county": "Berkshire", "postcode": "RG1 8QT", "fields": {"customer_number": "C-0042"}}' \
  "https://manufactiq.co.uk/api/v1/companies"
GET /api/v1/companies/{company_id} One company

The company, with the headline figures its page shows under summary: open enquiries and their value, enquiries won, quotes, open tasks.

Any keyCompanies tab

Answers 200

A Company. See Company.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12"
PATCH /api/v1/companies/{company_id} Change a company

Send only the fields to change; the rest keep their values.

Write keyCompanies tab

Body

FieldTypeWhat it is
name requiredstringThe company's name.
company_typestringprospect (the default), customer, main_contractor, architect, supplier or other. One of: prospect, customer, main_contractor, architect, supplier, other.
sectorstringWhat they do.
phonestringTelephone.
emailstringGeneral address.
websitestringWebsite.
address_line1stringAddress, first line.
address_line2stringAddress, second line.
citystringTown or city.
countystringCounty.
postcodestringPostcode.
countrystringCountry; United Kingdom if left out.
currencystringThe currency they are usually quoted in (ISO code), or null for yours.
notesstringFree notes, up to 10,000 characters.
owner_user_idintegerThe account owner's user id (see GET /users); the key's own user if left out of a new company.
fieldsobjectThe company's extra fields, by name - see GET /fields.
confirm_duplicatebooleantrue to save even though a similar company exists; without it a likely duplicate is refused with 409 and the matches.

Example body

{
  "name": "Kestrel Archives Ltd",
  "company_type": "customer",
  "sector": "Records storage",
  "phone": "0118 902 4411",
  "email": "hello@kestrel.example",
  "website": "https://kestrel.example",
  "address_line1": "Unit 7, Brunel Way",
  "city": "Reading",
  "county": "Berkshire",
  "postcode": "RG1 8QT",
  "fields": {
    "customer_number": "C-0042"
  }
}

Answers 200

A Company. See Company.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Kestrel Archives Ltd", "company_type": "customer", "sector": "Records storage", "phone": "0118 902 4411", "email": "hello@kestrel.example", "website": "https://kestrel.example", "address_line1": "Unit 7, Brunel Way", "city": "Reading", "county": "Berkshire", "postcode": "RG1 8QT", "fields": {"customer_number": "C-0042"}}' \
  "https://manufactiq.co.uk/api/v1/companies/12"
POST /api/v1/companies/{company_id}/archive Archive a company

The ordinary way to dispose of one: it keeps its history and leaves the lists.

Write keyCompanies tab

Answers 200

A Company. See Company.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/archive"
POST /api/v1/companies/{company_id}/restore Restore an archived company
Write keyCompanies tab

Answers 200

A Company. See Company.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/restore"
DELETE /api/v1/companies/{company_id} Delete a company permanently

Administrators only, and refused with 409 while enquiries, quotations or records on your own tabs still point at it. Contacts are detached; activities, tasks and documents go with it. Archive instead to keep the history.

Write keyAdministratorCompanies tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12"
GET /api/v1/companies/{company_id}/contacts Its contacts

What the company's page shows under its contacts. Needs the contacts tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Contact records under items. See Contact.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/contacts"
GET /api/v1/companies/{company_id}/enquiries Its enquiries

What the company's page shows under its enquiries. Needs the enquiries tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Enquiry records under items. See Enquiry.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/enquiries"
GET /api/v1/companies/{company_id}/quotes Its quotations

What the company's page shows under its quotations. Needs the quotes tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Quote records under items. See Quote.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/quotes"
GET /api/v1/companies/{company_id}/orders Its orders

What the company's page shows under its orders. Needs the orders tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Order records under items. See Order.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/orders"
GET /api/v1/companies/{company_id}/invoices Its invoices

What the company's page shows under its invoices. Needs the invoices tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Invoice records under items. See Invoice.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/invoices"
GET /api/v1/companies/{company_id}/tasks Its open tasks

What the company's page shows under its open tasks. Needs the tasks tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Task records under items. See Task.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/tasks"
GET /api/v1/companies/{company_id}/activities Its activity

What the company's page shows under its activity. Needs the activities tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Activity records under items. See Activity.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/activities"
GET /api/v1/companies/{company_id}/documents Its documents

What the company's page shows under its documents. Needs the documents tab in the key's role.

Any keyCompanies tab

Answers 200

A list of Document records under items. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/documents"
GET /api/v1/companies/{company_id}/emails Its captured emails

What the company's page shows under its captured emails.

Any keyCompanies tab

Answers 200

A list of Email records under items. See Email.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/emails"
GET /api/v1/companies/{company_id}/records Records on your own tabs linked to it

Live records from the company's own tabs - an NCR raised against them, a survey done for them - with the tab each is on.

Any keyCompanies tab

Answers 200

A list of LinkedRecord records under items. See LinkedRecord.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/12/records"
GET /api/v1/companies/duplicates Does this look like a company we have?

What the form asks as you type: the likeliest matches, each with why it matched and whether the match is strong - strong enough that POST /companies would refuse without confirm_duplicate. Nothing is written. At least one of the fields is needed.

Any keyCompanies tab

Query

NameTypeWhat it is
namestringThe name as typed.
emailstringThe general email address.
websitestringThe website.
phonestringThe telephone number.
postcodestringThe postcode.
excludeintegerA company id to leave out: the one being edited.

Answers 200

A list of DuplicateMatch records under items. See DuplicateMatch.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/duplicates"
POST /api/v1/companies/bulk Act on several companies at once

Each company is changed as its own page would change it - audited, with automations following - and one refused does not stop the others: the answer says which were done, which already were, and which were skipped and why. To merge companies, POST /companies/merge.

Write keyCompanies tab

Body

FieldTypeWhat it is
action requiredstringowner, type, archive, restore or delete (delete: administrators only, and a company with enquiries, quotations or records on your own tabs is skipped). One of: owner, type, archive, restore, delete.
ids requiredarrayThe companies to act on, by id: up to 500.
valuestringFor owner: the new owner's user id. For type: prospect, customer, main_contractor, architect, supplier or other.

Example body

{
  "action": "...",
  "ids": [
    12,
    14
  ]
}

Answers 200

A BulkResult. See BulkResult.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "...", "ids": [12, 14]}' \
  "https://manufactiq.co.uk/api/v1/companies/bulk"
GET /api/v1/companies/merge/preview Compare companies before merging them

What POST /companies/merge would do: each company with what is attached to it, each field with every company's value, and whose value is taken unless you choose. Nothing is changed.

Any keyAdministratorCompanies tab

Query

NameTypeWhat it is
ids requiredstringTwo to ten company ids: ids=12&ids=14, or ids=12,14.
keepintegerThe company to keep, for the defaults; the one with most attached if left out.

Answers 200

A MergePreview. See MergePreview.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/companies/merge/preview?ids=1"
POST /api/v1/companies/merge Merge duplicate companies into one

Everything on the others - contacts, enquiries, quotations, orders, invoices, tasks, notes and activities, documents, captured email, records on your own tabs, accounting and import links, saved queues - moves to the company kept, then the others are deleted. All in one transaction; it cannot be undone.

Write keyAdministratorCompanies tab

Body

FieldTypeWhat it is
ids requiredarrayThe two to ten companies to merge, the one kept among them.
keep requiredintegerThe company kept: its number, its page and its history stay.
chooseobjectField key (as GET /companies/merge/preview names them) to the company whose value it takes. A field left out keeps the kept company's value, or takes the first that has one.
keep_all_notesbooleanKeep every company's notes, one after another (the default); false takes the chosen company's notes only.

Example body

{
  "ids": [
    12,
    14
  ],
  "keep": 12,
  "choose": {
    "phone": 14,
    "address": 14
  }
}

Answers 200

A Merged. See Merged.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids": [12, 14], "keep": 12, "choose": {"phone": 14, "address": 14}}' \
  "https://manufactiq.co.uk/api/v1/companies/merge"

Contacts

The people at those companies.

GET /api/v1/contacts List contacts
Any keyContacts tab

Query

NameTypeWhat it is
qstringSearch the name, email, phone and company.
companyintegerA company id.
archivedbooleantrue to include archived contacts.
sortstringname (the default), name_desc, company or recent. One of: name, name_desc, company, recent, job_title, email, phone, mobile, created.
x_<field>stringFilter on one of your own fields, as for companies.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Contact records under items, with paging. See Contact.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/contacts"
POST /api/v1/contacts Add a contact

A contact that looks like one you already have is refused with 409 and the matches, unless confirm_duplicate is true.

Write keyContacts tab

Body

FieldTypeWhat it is
company_idintegerThe company they are at (see GET /companies).
first_name requiredstringFirst name.
last_name requiredstringSurname.
job_titlestringJob title.
emailstringEmail address.
phonestringTelephone.
mobilestringMobile.
is_primarybooleantrue to make them the main contact at their company; the previous main contact stops being it.
notesstringFree notes, up to 10,000 characters.
fieldsobjectThe contact's extra fields, by name - see GET /fields.
confirm_duplicatebooleantrue to save even though a similar contact exists.

Example body

{
  "company_id": 12,
  "first_name": "Priya",
  "last_name": "Shah",
  "job_title": "Project architect",
  "email": "priya.shah@bramley.example",
  "is_primary": true
}

Answers 201

A Contact. See Contact.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 12, "first_name": "Priya", "last_name": "Shah", "job_title": "Project architect", "email": "priya.shah@bramley.example", "is_primary": true}' \
  "https://manufactiq.co.uk/api/v1/contacts"
GET /api/v1/contacts/{contact_id} One contact
Any keyContacts tab

Answers 200

A Contact. See Contact.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/contacts/34"
PATCH /api/v1/contacts/{contact_id} Change a contact

Send only the fields to change.

Write keyContacts tab

Body

FieldTypeWhat it is
company_idintegerThe company they are at (see GET /companies).
first_name requiredstringFirst name.
last_name requiredstringSurname.
job_titlestringJob title.
emailstringEmail address.
phonestringTelephone.
mobilestringMobile.
is_primarybooleantrue to make them the main contact at their company; the previous main contact stops being it.
notesstringFree notes, up to 10,000 characters.
fieldsobjectThe contact's extra fields, by name - see GET /fields.
confirm_duplicatebooleantrue to save even though a similar contact exists.

Example body

{
  "company_id": 12,
  "first_name": "Priya",
  "last_name": "Shah",
  "job_title": "Project architect",
  "email": "priya.shah@bramley.example",
  "is_primary": true
}

Answers 200

A Contact. See Contact.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 12, "first_name": "Priya", "last_name": "Shah", "job_title": "Project architect", "email": "priya.shah@bramley.example", "is_primary": true}' \
  "https://manufactiq.co.uk/api/v1/contacts/34"
POST /api/v1/contacts/{contact_id}/archive Archive a contact
Write keyContacts tab

Answers 200

A Contact. See Contact.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/contacts/34/archive"
POST /api/v1/contacts/{contact_id}/restore Restore an archived contact
Write keyContacts tab

Answers 200

A Contact. See Contact.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/contacts/34/restore"
DELETE /api/v1/contacts/{contact_id} Delete a contact permanently

Administrators only. Their documents go with them.

Write keyAdministratorContacts tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/contacts/34"
GET /api/v1/contacts/duplicates Does this look like a contact we have?

What the form asks as you type: the likeliest matches, each with why it matched and whether the match is strong - strong enough that POST /contacts would refuse without confirm_duplicate. Nothing is written. At least one of the fields is needed.

Any keyContacts tab

Query

NameTypeWhat it is
first_namestringFirst name as typed.
last_namestringSurname as typed.
emailstringEmail address.
phonestringTelephone.
mobilestringMobile.
excludeintegerA contact id to leave out: the one being edited.

Answers 200

A list of DuplicateMatch records under items. See DuplicateMatch.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/contacts/duplicates"
POST /api/v1/contacts/bulk Act on several contacts at once

Each contact is changed as their own page would change them, and one refused does not stop the others. To merge contacts, POST /contacts/merge.

Write keyContacts tab

Body

FieldTypeWhat it is
action requiredstringcompany (move them to another company), archive, restore or delete (delete: administrators only). One of: company, archive, restore, delete.
ids requiredarrayThe contacts to act on, by id: up to 500.
valuestringFor company: the company's id. They arrive as ordinary contacts, never displacing its main one.

Example body

{
  "action": "...",
  "ids": [
    12,
    14
  ]
}

Answers 200

A BulkResult. See BulkResult.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "...", "ids": [12, 14]}' \
  "https://manufactiq.co.uk/api/v1/contacts/bulk"
GET /api/v1/contacts/merge/preview Compare contacts before merging them

What POST /contacts/merge would do, field by field. Nothing is changed.

Any keyAdministratorContacts tab

Query

NameTypeWhat it is
ids requiredstringTwo to ten contact ids: ids=34&ids=35, or ids=34,35.
keepintegerThe contact to keep, for the defaults.

Answers 200

A MergePreview. See MergePreview.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/contacts/merge/preview?ids=1"
POST /api/v1/contacts/merge Merge duplicate contacts into one

Everything on the others - enquiries, quotations, orders, invoices, tasks, notes and activities, documents, captured email, records on your own tabs, import links, saved queues - moves to the contact kept, then the others are deleted. One transaction; it cannot be undone.

Write keyAdministratorContacts tab

Body

FieldTypeWhat it is
ids requiredarrayThe two to ten contacts to merge, the one kept among them.
keep requiredintegerThe contact kept.
chooseobjectField key to the contact whose value it takes, as GET /contacts/merge/preview names them.
keep_all_notesbooleanKeep every contact's notes, one after another (the default).

Example body

{
  "ids": [
    34,
    35
  ],
  "keep": 34,
  "choose": {
    "mobile": 35
  }
}

Answers 200

A Merged. See Merged.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids": [34, 35], "keep": 34, "choose": {"mobile": 35}}' \
  "https://manufactiq.co.uk/api/v1/contacts/merge"

Enquiries

Every opportunity from the first call to won or lost, its lines and its stage, and the website's queue.

GET /api/v1/enquiries List enquiries
Any keyEnquiries tab

Query

NameTypeWhat it is
qstringSearch the reference, title, company, description and the site's name, town and postcode.
stageintegerA stage id.
pipelineintegerA pipeline id.
outcomestringopen, won or lost. One of: open, won, lost.
ownerintegerAn owner's user id.
minebooleantrue for the key's own user's enquiries.
companyintegerA company id.
categorystringA product category.
archivedbooleantrue to include archived enquiries.
sortstringrecent (the default), created, reference, value, value_asc, close, company or stage. One of: recent, created, reference, value, value_asc, estimated, close, company, stage, title, probability, owner, quotes, contact, product, source, site.
x_<field>stringFilter on one of your own fields.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Enquiry records under items, with paging. See Enquiry.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries"
POST /api/v1/enquiries Raise an enquiry

Takes the next reference in the company's format. The owner is emailed and Microsoft Teams told, as from the form.

Write keyEnquiries tab

Body

FieldTypeWhat it is
title requiredstringWhat it is for, in a line.
company_id requiredintegerThe customer (see GET /companies).
contact_idintegerThe contact at that company.
pipeline_idintegerWhich enquiry pipeline it starts on; the default one if left out. On a PATCH, move it with POST .../stage instead.
stage_idintegerThe stage; the pipeline's first open stage if left out.
source_idintegerWhere it came from (see GET /sources).
product_categorystringWhat it is for: one of GET /product-categories; the company's default if left out.
estimated_valuemoneyWhat it is worth, in your currency.
probabilityintegerThe odds, 0 to 100; the stage's own figure if left out.
expected_close_datedateWhen a decision is expected.
site_namestringThe site: the building, or the part of it.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringWhere the work would be.
descriptionstringThe long description, up to 20,000 characters.
owner_user_idintegerWhose it is; the key's own user if left out. A new owner is emailed.
linesarrayWhat is being asked for, as a list of lines (see PUT .../lines). On a POST only; change them afterwards with PUT .../lines.
fieldsobjectThe enquiry's extra fields, by name.

Example body

{
  "title": "Archive racking, 400 linear metres",
  "company_id": 12,
  "estimated_value": "86500.00",
  "probability": 35,
  "expected_close_date": "2026-11-30",
  "site_name": "Records store, lower ground floor",
  "site_address": "Unit 4, Acme Park\nStation Road",
  "site_town": "Reading",
  "site_county": "Berkshire",
  "site_postcode": "RG1 8QT"
}

Answers 201

A Enquiry. See Enquiry.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Archive racking, 400 linear metres", "company_id": 12, "estimated_value": "86500.00", "probability": 35, "expected_close_date": "2026-11-30", "site_name": "Records store, lower ground floor", "site_address": "Unit 4, Acme Park\nStation Road", "site_town": "Reading", "site_county": "Berkshire", "site_postcode": "RG1 8QT"}' \
  "https://manufactiq.co.uk/api/v1/enquiries"
GET /api/v1/enquiries/{enquiry_id} One enquiry

With its lines, the quotations, orders and invoices behind it (those the key's role may see), and the stages of its pipeline with the odds it would take on each.

Any keyEnquiries tab

Answers 200

A Enquiry. See Enquiry.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7"
PATCH /api/v1/enquiries/{enquiry_id} Change an enquiry

Send only the fields to change. A changed stage carries the odds with it unless a probability is sent too; a new owner is emailed.

Write keyEnquiries tab

Body

FieldTypeWhat it is
title requiredstringWhat it is for, in a line.
company_id requiredintegerThe customer (see GET /companies).
contact_idintegerThe contact at that company.
pipeline_idintegerWhich enquiry pipeline it starts on; the default one if left out. On a PATCH, move it with POST .../stage instead.
stage_idintegerThe stage; the pipeline's first open stage if left out.
source_idintegerWhere it came from (see GET /sources).
product_categorystringWhat it is for: one of GET /product-categories; the company's default if left out.
estimated_valuemoneyWhat it is worth, in your currency.
probabilityintegerThe odds, 0 to 100; the stage's own figure if left out.
expected_close_datedateWhen a decision is expected.
site_namestringThe site: the building, or the part of it.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringWhere the work would be.
descriptionstringThe long description, up to 20,000 characters.
owner_user_idintegerWhose it is; the key's own user if left out. A new owner is emailed.
linesarrayWhat is being asked for, as a list of lines (see PUT .../lines). On a POST only; change them afterwards with PUT .../lines.
fieldsobjectThe enquiry's extra fields, by name.

Example body

{
  "title": "Archive racking, 400 linear metres",
  "company_id": 12,
  "estimated_value": "86500.00",
  "probability": 35,
  "expected_close_date": "2026-11-30",
  "site_name": "Records store, lower ground floor",
  "site_address": "Unit 4, Acme Park\nStation Road",
  "site_town": "Reading",
  "site_county": "Berkshire",
  "site_postcode": "RG1 8QT"
}

Answers 200

A Enquiry. See Enquiry.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Archive racking, 400 linear metres", "company_id": 12, "estimated_value": "86500.00", "probability": 35, "expected_close_date": "2026-11-30", "site_name": "Records store, lower ground floor", "site_address": "Unit 4, Acme Park\nStation Road", "site_town": "Reading", "site_county": "Berkshire", "site_postcode": "RG1 8QT"}' \
  "https://manufactiq.co.uk/api/v1/enquiries/7"
POST /api/v1/enquiries/{enquiry_id}/stage Move an enquiry to a stage

What dragging the card does: the odds travel with it, a note is logged, and a won stage wins the chosen quotation and raises the order. The answer carries messages - what the page would have said.

Write keyEnquiries tab

Body

FieldTypeWhat it is
stage_id requiredintegerThe stage to move to - on any of the company's enquiry pipelines.
outcome_reasonstringWhy, where the stage is won or lost.
winning_quote_idintegerWhen moving to a won stage: which quotation won it. Marks that quotation won and raises its order, as the page does.
customer_postringThe customer's order number, for the order raised.
promised_datedateWhat the customer was promised, for the order raised.

Example body

{
  "stage_id": 42
}

Answers 200

A Enquiry. See Enquiry.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage_id": 42}' \
  "https://manufactiq.co.uk/api/v1/enquiries/7/stage"
POST /api/v1/enquiries/{enquiry_id}/pipeline Move an enquiry to another pipeline

It lands at the start of the new route - or, if won or lost, on that route's stage for the outcome.

Write keyEnquiries tab

Body

FieldTypeWhat it is
pipeline_id requiredintegerOne of the company's enquiry pipelines.

Example body

{
  "pipeline_id": 1
}

Answers 200

A Enquiry. See Enquiry.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pipeline_id": 1}' \
  "https://manufactiq.co.uk/api/v1/enquiries/7/pipeline"
GET /api/v1/enquiries/{enquiry_id}/lines What an enquiry asks for
Any keyEnquiries tab

Answers 200

A list of EnquiryLine records under items. See EnquiryLine.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/lines"
PUT /api/v1/enquiries/{enquiry_id}/lines Replace what an enquiry asks for

The whole set, as the page saves it. An unpriced line is allowed; the enquiry's estimated value is re-totalled from the priced ones.

Write keyEnquiries tab

Body

FieldTypeWhat it is
lines requiredarrayThe whole set of lines, each as below; an empty list removes them all.
product_idintegerA product from the price book; its wording, unit, price and cost fill whatever the line leaves blank.
product_revisionstringThe product revision the line is on (A, B, C ...). Send it back unchanged to keep a line on its revision; left out, a line from the price book takes the product's current revision.
finishstringThe finish it is made in, for a company with the finishes add-on: a name from your list of finishes, or another. Left out, a line from the price book takes its product's finish; null for none. Printed with the line on the customer's copy.
descriptionstringWhat is asked for. Needed unless a product supplies it.
quantity requiredquantityHow many.
unitstringeach, bay, m and so on; the product's, or each.
unit_pricemoneyPrice each. Leave out while it is not yet priced.
unit_costmoneyCost each, if known.
notesstringA note on the line.
dim_lengthintegerLength in mm, for a product sold at a size.
dim_widthintegerWidth in mm.
dim_heightintegerHeight in mm.

Example body

{
  "lines": [
    {
      "description": "Mobile shelving bay",
      "quantity": "24",
      "unit": "bay",
      "unit_price": "1275.00"
    }
  ],
  "description": "Mobile shelving, 400 linear metres",
  "quantity": "24",
  "unit": "bay"
}

Answers 200

A Enquiry. See Enquiry.

Example call

curl \
  -X PUT \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lines": [{"description": "Mobile shelving bay", "quantity": "24", "unit": "bay", "unit_price": "1275.00"}], "description": "Mobile shelving, 400 linear metres", "quantity": "24", "unit": "bay"}' \
  "https://manufactiq.co.uk/api/v1/enquiries/7/lines"
POST /api/v1/enquiries/{enquiry_id}/archive Archive an enquiry
Write keyEnquiries tab

Answers 200

A Enquiry. See Enquiry.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/archive"
POST /api/v1/enquiries/{enquiry_id}/restore Restore an archived enquiry
Write keyEnquiries tab

Answers 200

A Enquiry. See Enquiry.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/restore"
DELETE /api/v1/enquiries/{enquiry_id} Delete an enquiry permanently

Administrators only. Its documents go with it.

Write keyAdministratorEnquiries tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7"
GET /api/v1/enquiries/{enquiry_id}/quotes Its quotations

What the enquiry's page shows under its quotations. Needs the quotes tab in the key's role.

Any keyEnquiries tab

Answers 200

A list of Quote records under items. See Quote.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/quotes"
GET /api/v1/enquiries/{enquiry_id}/orders Its orders

What the enquiry's page shows under its orders. Needs the orders tab in the key's role.

Any keyEnquiries tab

Answers 200

A list of Order records under items. See Order.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/orders"
GET /api/v1/enquiries/{enquiry_id}/invoices Its invoices

What the enquiry's page shows under its invoices. Needs the invoices tab in the key's role.

Any keyEnquiries tab

Answers 200

A list of Invoice records under items. See Invoice.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/invoices"
GET /api/v1/enquiries/{enquiry_id}/tasks Its tasks

What the enquiry's page shows under its tasks. Needs the tasks tab in the key's role.

Any keyEnquiries tab

Answers 200

A list of Task records under items. See Task.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/tasks"
GET /api/v1/enquiries/{enquiry_id}/activities Its activity

What the enquiry's page shows under its activity. Needs the activities tab in the key's role.

Any keyEnquiries tab

Answers 200

A list of Activity records under items. See Activity.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/activities"
GET /api/v1/enquiries/{enquiry_id}/documents Its documents

What the enquiry's page shows under its documents. Needs the documents tab in the key's role.

Any keyEnquiries tab

Answers 200

A list of Document records under items. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/documents"
GET /api/v1/enquiries/{enquiry_id}/emails The job's captured emails

What the enquiry's page shows under the job's captured emails.

Any keyEnquiries tab

Answers 200

A list of Email records under items. See Email.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/7/emails"
GET /api/v1/enquiries/waiting Website enquiries waiting to be approved

What the form on the company's website sent, newest first, until somebody approves or rejects each one.

Any keyEnquiries tab

Query

NameTypeWhat it is
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of WebSubmission records under items, with paging. See WebSubmission.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/waiting"
GET /api/v1/enquiries/waiting/{submission_id} One website enquiry

With what the CRM already knows under matches - the contact by email, their company, or a company by name or domain - and the values the approval would start from under suggested.

Any keyEnquiries tab

Answers 200

A WebSubmission. See WebSubmission.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/waiting/9"
POST /api/v1/enquiries/waiting/{submission_id}/approve Approve a website enquiry

What approving on the page does: the company and contact are found or made, the enquiry raised with the next reference and a note holding everything as sent, the owner emailed and Teams told. Every value starts from what GET .../waiting/{id} suggests; send only what differs.

Write keyEnquiries tab

Body

FieldTypeWhat it is
company_choicestringexisting or new. One of: existing, new.
company_idintegerWith existing: the company.
new_company_namestringWith new: the company's name, and new_company_phone, new_company_email, new_company_address_line1, new_company_address_line2, new_company_city, new_company_county, new_company_postcode as wanted.
contact_choicestringexisting, new or none. One of: existing, new, none.
contact_idintegerWith existing: the contact, at that company.
new_contact_first_namestringWith new: their first name, and new_contact_last_name, new_contact_job_title, new_contact_email, new_contact_phone, new_contact_mobile.
title requiredstringThe enquiry's title.
stage_idintegerThe stage; the default pipeline's first if left out.
owner_user_idintegerWho looks after it; the key's own user if left out.
source_idintegerThe enquiry source; the one called Website if there is one.
product_categorystringWhat it is for.
estimated_valuemoneyWhat it is worth.
probabilityintegerThe odds; the stage's figure if left out.
expected_close_datedateWhen a decision is expected.
site_postcodestringWhere the work would be.
descriptionstringThe description; the message and their answers if left out.
email_customerbooleanWhether to send the sender the 'in progress' email, where the company has it switched on. Defaults to the company's setting.
fieldsobjectThe enquiry's extra fields, by name.

Example body

{
  "company_choice": "new",
  "title": "..."
}

Answers 201

A Enquiry. See Enquiry.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_choice": "new", "title": "..."}' \
  "https://manufactiq.co.uk/api/v1/enquiries/waiting/9/approve"
POST /api/v1/enquiries/waiting/{submission_id}/reject Reject a website enquiry

Nothing is created and nobody is emailed. It can be put back for 30 days.

Write keyEnquiries tab

Body

FieldTypeWhat it is
review_notestringWhy, for the record.

Answers 200

A WebSubmission. See WebSubmission.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/waiting/9/reject"
POST /api/v1/enquiries/waiting/{submission_id}/restore Put a rejected website enquiry back in the queue
Write keyEnquiries tab

Answers 200

A WebSubmission. See WebSubmission.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/enquiries/waiting/9/restore"
POST /api/v1/enquiries/bulk Act on several enquiries at once

Each enquiry is changed as its own page would change it - a stage move also notes it on the timeline - and one refused does not stop the others.

Write keyEnquiries tab

Body

FieldTypeWhat it is
action requiredstringowner, stage, archive, restore or delete (delete: administrators only). One of: owner, stage, archive, restore, delete.
ids requiredarrayThe enquiries to act on, by id: up to 500.
valuestringFor owner: the new owner's user id; each new owner gets one email listing theirs. For stage: an enquiry stage id (GET /pipelines). A won stage moves them without raising orders.

Example body

{
  "action": "...",
  "ids": [
    12,
    14
  ]
}

Answers 200

A BulkResult. See BulkResult.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "...", "ids": [12, 14]}' \
  "https://manufactiq.co.uk/api/v1/enquiries/bulk"

Quotations

Priced, revised, sent as a PDF, won or lost.

GET /api/v1/quotes List quotations

The latest revision of each number, unless all=true.

Any keyQuotations tab

Query

NameTypeWhat it is
qstringSearch the number, company, enquiry reference and title, and the site's name, town and postcode.
statusstringdraft, sent, accepted, rejected, superseded or expired. One of: draft, sent, accepted, rejected, superseded, expired.
pipelineintegerA pipeline id.
companyintegerA company id.
enquiryintegerAn enquiry id.
ownerintegerAn owner's user id.
allbooleantrue for every revision; otherwise only the latest of each number.
sortstringrecent (the default), number, date, value, company or status. One of: recent, number, date, value, company, status, enquiry, valid, lines, gross, revision, contact, lead_time, owner, created.
x_<field>stringFilter on one of your own fields.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Quote records under items, with paging. See Quote.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/quotes"
POST /api/v1/quotes Raise a quotation

The first revision of a new number - 1, or 0 for a company that counts from nought - or, for an enquiry that already has a quotation, the next revision of it, superseding the earlier one unless it was won or lost. Lines left out are carried from the enquiry. The enquiry's pipeline hears that a quote was drafted.

Write keyQuotations tab

Body

FieldTypeWhat it is
company_id requiredintegerThe customer.
enquiry_idintegerThe enquiry it is for. The quotation then takes the enquiry's reference (as the next revision under it), and its lines if none are sent.
contact_idintegerThe contact; the enquiry's if left out.
quote_datedateDated; today if left out.
valid_untildateValid until; 30 days on if left out.
discount_pctnumberWhole-quote discount, per cent.
vat_ratenumberVAT rate; the company's default if left out.
currencystringISO code; the customer's usual currency, else yours.
fx_ratenumberUnits of that currency per one of yours; the company's rate table if left out.
lead_timestringLead time, as written.
delivery_termsstringDelivery terms.
payment_termsstringPayment terms; the company's default if left out.
notesstringNotes printed on it; the enquiry's title if left out.
owner_user_idintegerWhose it is; the key's own user if left out.
pipeline_idintegerWhich quote pipeline it travels; the default if left out.
site_namestringThe site, printed on the quotation: the building, or the part of it. All five site fields are the enquiry's when it is raised from one.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringThe site's postcode.
linesarrayThe lines, each as below. At least one, unless the enquiry supplies them.
fieldsobjectThe quotation's extra fields, by name.

Example body

{
  "company_id": 12,
  "enquiry_id": 7,
  "discount_pct": "5",
  "currency": "GBP",
  "lead_time": "6-8 weeks",
  "lines": [
    {
      "product_id": 3,
      "quantity": "24"
    },
    {
      "description": "Site survey and installation",
      "quantity": "1",
      "unit_price": "950.00"
    }
  ]
}

Answers 201

A Quote. See Quote.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 12, "enquiry_id": 7, "discount_pct": "5", "currency": "GBP", "lead_time": "6-8 weeks", "lines": [{"product_id": 3, "quantity": "24"}, {"description": "Site survey and installation", "quantity": "1", "unit_price": "950.00"}]}' \
  "https://manufactiq.co.uk/api/v1/quotes"
GET /api/v1/quotes/{quote_id} One quotation

With its lines, every revision of its number, and the orders and invoices that followed it (those the key's role may see).

Any keyQuotations tab

Answers 200

A Quote. See Quote.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/quotes/41"
PATCH /api/v1/quotes/{quote_id} Change a quotation

Send only the fields to change; lines sent replace the whole set, lines left out stay as they are. A won, lost or superseded revision cannot be changed (409): revise it instead.

Write keyQuotations tab

Body

FieldTypeWhat it is
company_id requiredintegerThe customer.
enquiry_idintegerThe enquiry it is for. The quotation then takes the enquiry's reference (as the next revision under it), and its lines if none are sent.
contact_idintegerThe contact; the enquiry's if left out.
quote_datedateDated; today if left out.
valid_untildateValid until; 30 days on if left out.
discount_pctnumberWhole-quote discount, per cent.
vat_ratenumberVAT rate; the company's default if left out.
currencystringISO code; the customer's usual currency, else yours.
fx_ratenumberUnits of that currency per one of yours; the company's rate table if left out.
lead_timestringLead time, as written.
delivery_termsstringDelivery terms.
payment_termsstringPayment terms; the company's default if left out.
notesstringNotes printed on it; the enquiry's title if left out.
owner_user_idintegerWhose it is; the key's own user if left out.
pipeline_idintegerWhich quote pipeline it travels; the default if left out.
site_namestringThe site, printed on the quotation: the building, or the part of it. All five site fields are the enquiry's when it is raised from one.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringThe site's postcode.
linesarrayThe lines, each as below. At least one, unless the enquiry supplies them.
fieldsobjectThe quotation's extra fields, by name.

Example body

{
  "company_id": 12,
  "enquiry_id": 7,
  "discount_pct": "5",
  "currency": "GBP",
  "lead_time": "6-8 weeks",
  "lines": [
    {
      "product_id": 3,
      "quantity": "24"
    },
    {
      "description": "Site survey and installation",
      "quantity": "1",
      "unit_price": "950.00"
    }
  ]
}

Answers 200

A Quote. See Quote.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 12, "enquiry_id": 7, "discount_pct": "5", "currency": "GBP", "lead_time": "6-8 weeks", "lines": [{"product_id": 3, "quantity": "24"}, {"description": "Site survey and installation", "quantity": "1", "unit_price": "950.00"}]}' \
  "https://manufactiq.co.uk/api/v1/quotes/41"
POST /api/v1/quotes/{quote_id}/status Mark a quotation sent, won, lost or expired

What the page's status control does. Won is one event: the quotation is decided, the enquiry moves to its won stage and the order is raised. Sent and lost tell the enquiry's pipeline rules. The owner is emailed about a decision and Teams told. The answer carries messages.

Write keyQuotations tab

Body

FieldTypeWhat it is
status requiredstringdraft, sent, accepted (won), rejected (lost) or expired. One of: draft, sent, accepted, rejected, expired.
outcome_reasonstringWhy, for won or lost.
customer_postringFor won: the customer's order number, carried onto the order.
promised_datedateFor won: what the customer was promised.

Example body

{
  "status": "accepted"
}

Answers 200

A Quote. See Quote.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "accepted"}' \
  "https://manufactiq.co.uk/api/v1/quotes/41/status"
POST /api/v1/quotes/{quote_id}/stage Move a quotation to a stage

A stage stands for a status, so onto a stage recording won wins it and raises the order, as dragging the card does.

Write keyQuotations tab

Body

FieldTypeWhat it is
stage_id requiredintegerA stage on one of the company's quote pipelines.
outcome_reasonstringWhy, where the stage records won or lost.
customer_postringFor a won stage: the customer's order number.
promised_datedateFor a won stage: what was promised.

Example body

{
  "stage_id": 1
}

Answers 200

A Quote. See Quote.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage_id": 1}' \
  "https://manufactiq.co.uk/api/v1/quotes/41/stage"
POST /api/v1/quotes/{quote_id}/pipeline Move a quotation to another pipeline
Write keyQuotations tab

Body

FieldTypeWhat it is
pipeline_id requiredintegerOne of the company's quote pipelines.

Example body

{
  "pipeline_id": 1
}

Answers 200

A Quote. See Quote.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pipeline_id": 1}' \
  "https://manufactiq.co.uk/api/v1/quotes/41/pipeline"
POST /api/v1/quotes/{quote_id}/revise Raise the next revision

Copies the header and every line to the next revision as a draft and supersedes the earlier revisions, except any that recorded a win or a loss. The enquiry's pipeline hears that the quote was revised. The answer is the new revision.

Write keyQuotations tab

Answers 201

A Quote. See Quote.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/quotes/41/revise"
POST /api/v1/quotes/{quote_id}/send Email a quotation to the customer

Queued like every message the CRM sends, in the key's own user's name with replies to their address; the PDF is filed under the quotation's documents. A draft becomes sent and the enquiry's pipeline hears of it. Refused for a superseded revision (409).

Write keyQuotations tab

Body

FieldTypeWhat it is
to_emailstringWho to; the contact's address if left out. Several addresses may be given, with commas between them or as an array; everybody is on the one email.
cc_emailstringAnybody to copy it to (Cc): a colleague, the customer's buyer. Several addresses may be given, with commas between them or as an array; everybody is on the one email.
subjectstringThe subject; the company's own wording if left out.
messagestringA note above the document, up to 4,000 characters.
attach_pdfbooleanWhether the PDF goes with it. Default true.
include_linesbooleanWhether the lines and totals go in the body. Default true.
document_idsarrayDocuments from the price book to go with it: ids from GET /products/{id}/documents for the products on its lines. Any other id is ignored. All the files together must come to about 3 MB or less, the PDF included, or nothing is sent (422).
accept_buttonbooleanPut an Accept button in the email, for the customer to accept it online - when the company has that switched on (Administration > Documents) and the quotation is not past its valid-until date. Default false.
maskinteger1 or 2: which mask it goes out in - the logo and colour on the PDF and the email - for a company with the 2nd Mask add-on. Default 1.

Example body

{
  "to_email": "priya.shah@bramley.example",
  "cc_email": "accounts@bramley.example, sam@ourcompany.example",
  "document_ids": [
    41,
    42
  ]
}

Answers 200

A Quote. See Quote.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to_email": "priya.shah@bramley.example", "cc_email": "accounts@bramley.example, sam@ourcompany.example", "document_ids": [41, 42]}' \
  "https://manufactiq.co.uk/api/v1/quotes/41/send"
GET /api/v1/quotes/{quote_id}/pdf The quotation as a PDF

The customer's copy, exactly as the page downloads it and the email attaches it.

Any keyQuotations tab

Answers 200

Not JSON: application/pdf.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -o download \
  "https://manufactiq.co.uk/api/v1/quotes/41/pdf"
DELETE /api/v1/quotes/{quote_id} Delete a revision permanently

Administrators only. Its documents go with it.

Write keyAdministratorQuotations tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/quotes/41"
GET /api/v1/quotes/{quote_id}/documents Its documents
Any keyQuotations tab

Answers 200

A list of Document records under items. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/quotes/41/documents"
GET /api/v1/quotes/{quote_id}/emails The job's captured emails
Any keyQuotations tab

Answers 200

A list of Email records under items. See Email.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/quotes/41/emails"
POST /api/v1/quotes/import-lines Read a spreadsheet of items into lines

Nothing is written. The answer is the lines the sheet makes - each matched to the price book where a code or wording matches, with its status and notes - ready to look over and send as lines to POST /quotes or PUT /quotes/{id}/lines. Up to 200 rows. The same for an enquiry's, order's or invoice's lines.

Any keyQuotations tab

Form parts

FieldTypeWhat it is
file requiredfileThe spreadsheet, as a multipart part named file: .xlsx, .xlsm, .xls or .csv, with a header row naming the columns (description, quantity, unit price and so on).
fx_ratenumberThe quotation's exchange rate: a price or cost the price book supplies is converted at it; a figure on the sheet is taken as already in the quotation's currency. 1 if left out.

Answers 200

A ImportedLines. See ImportedLines.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -F "files=@drawing.pdf" \
  "https://manufactiq.co.uk/api/v1/quotes/import-lines"

Orders

The job once it is placed, through the workshop to delivery.

GET /api/v1/orders List orders

Soonest promised first. The answer carries the order book's summary too.

Any keyOrders tabOrder book on the plan

Query

NameTypeWhat it is
qstringSearch the reference, PO number, company, the site's name, town and postcode, and the invoice reference.
statusstringOne workshop status. One of: confirmed, drawings, manufacturing, ready, delivered, installed, complete, cancelled.
pipelineintegerA pipeline id.
openbooleantrue for orders still in hand.
latebooleantrue for orders past their promised date and not delivered - never one on hold.
heldbooleantrue for orders on hold.
uninvoicedbooleantrue for delivered orders with no invoice recorded.
companyintegerA company id.
ownerintegerAn owner's user id.
minebooleantrue for the key's own user's orders.
archivedbooleantrue to include archived orders.
sortstringpromised (the default), promised_desc, reference, created, value, customer or status. One of: promised, promised_desc, reference, created, value, customer, status, customer_po, invoiced, owner, job, contact, site, placed, delivered, late, quote, lead_time, recent, held, invoiced_value, to_invoice.
x_<field>stringFilter on one of your own fields.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Order records under items, with paging. See Order.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders"
POST /api/v1/orders Raise an order by hand

For a job placed without a quotation. It takes the enquiry's reference where it has one, else a fresh one, and the enquiry's pipeline hears that an order was raised. With extras_of_order_id it is an extras order on that job instead - for a company with the Extras orders add-on.

Write keyOrders tabOrder book on the plan

Body

FieldTypeWhat it is
company_id requiredintegerThe customer.
contact_idintegerThe contact.
enquiry_idintegerThe enquiry it came from; the customer, contact and site are taken from it when left out.
quote_idintegerThe quotation it came from. To raise an order from a won quotation with its lines, use POST /quotes/{quote_id}/order instead.
extras_of_order_idintegerWhen raising an order, for a company with the Extras orders add-on: the order this one is extras on top of. It takes that job's number with E1, E2 and so on, is against no enquiry or quotation, and is logged with the job; the customer, contact, site and job name are the job's when left out. Set when the order is raised and never changed after.
titlestringThe job's name. Left out, the job goes by its enquiry's title, then its site's name.
customer_postringThe customer's own order number.
order_datedatePlaced on; today if left out.
promised_datedateWhat the customer was promised.
site_namestringThe site: the building, or the part of it.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringThe site's postcode.
access_notesstringHow to get in.
vat_ratenumberVAT rate; the company's default if left out.
currencystringISO code; yours if left out.
fx_ratenumberUnits of that currency per one of yours.
lead_timestringLead time.
notesstringNotes.
owner_user_idintegerWhose it is; the key's own user if left out.
pipeline_idintegerWhich order pipeline it travels; the default if left out.
lines requiredarrayThe lines, each as below. At least one.
fieldsobjectThe order's extra fields, by name.

Example body

{
  "company_id": 12,
  "title": "Archive store - mobile shelving",
  "customer_po": "PO-4471",
  "promised_date": "2026-12-05",
  "lines": [
    {
      "description": "Mobile shelving bay",
      "quantity": "24",
      "unit": "bay",
      "unit_price": "1211.25"
    }
  ]
}

Answers 201

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 12, "title": "Archive store - mobile shelving", "customer_po": "PO-4471", "promised_date": "2026-12-05", "lines": [{"description": "Mobile shelving bay", "quantity": "24", "unit": "bay", "unit_price": "1211.25"}]}' \
  "https://manufactiq.co.uk/api/v1/orders"
POST /api/v1/quotes/{quote_id}/order Raise the order for a won quotation

Winning a quotation raises its order by itself; this is for one that was won before that, or whose order was deleted. The lines come across with both discounts folded into the prices. A quotation that already has an order, or is not won, is refused with 409.

Write keyOrders tabOrder book on the plan

Body

FieldTypeWhat it is
customer_postringThe customer's order number.
order_datedatePlaced on; today if left out.
promised_datedateWhat the customer was promised.

Answers 201

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/quotes/41/order"
GET /api/v1/orders/{order_id} One order

With its lines, how much of it is billed (coverage), its invoices, the stages of its pipeline and the next workshop step. For a company with the Extras orders add-on, also extras - the extras orders on top of it - with with_extras, the job's value, cost and margin with them added in; and on an extras order, extras_of: the job it is on.

Any keyOrders tabOrder book on the plan

Answers 200

A Order. See Order.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18"
PATCH /api/v1/orders/{order_id} Change an order

Send only the fields to change. Lines sent replace the set, matched by id so invoices keep their anchors; a line an invoice has billed cannot be removed or cut below what was billed (422).

Write keyOrders tabOrder book on the plan

Body

FieldTypeWhat it is
company_id requiredintegerThe customer.
contact_idintegerThe contact.
enquiry_idintegerThe enquiry it came from; the customer, contact and site are taken from it when left out.
quote_idintegerThe quotation it came from. To raise an order from a won quotation with its lines, use POST /quotes/{quote_id}/order instead.
extras_of_order_idintegerWhen raising an order, for a company with the Extras orders add-on: the order this one is extras on top of. It takes that job's number with E1, E2 and so on, is against no enquiry or quotation, and is logged with the job; the customer, contact, site and job name are the job's when left out. Set when the order is raised and never changed after.
titlestringThe job's name. Left out, the job goes by its enquiry's title, then its site's name.
customer_postringThe customer's own order number.
order_datedatePlaced on; today if left out.
promised_datedateWhat the customer was promised.
site_namestringThe site: the building, or the part of it.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringThe site's postcode.
access_notesstringHow to get in.
vat_ratenumberVAT rate; the company's default if left out.
currencystringISO code; yours if left out.
fx_ratenumberUnits of that currency per one of yours.
lead_timestringLead time.
notesstringNotes.
owner_user_idintegerWhose it is; the key's own user if left out.
pipeline_idintegerWhich order pipeline it travels; the default if left out.
lines requiredarrayThe lines, each as below. At least one.
fieldsobjectThe order's extra fields, by name.

Example body

{
  "company_id": 12,
  "title": "Archive store - mobile shelving",
  "customer_po": "PO-4471",
  "promised_date": "2026-12-05",
  "lines": [
    {
      "description": "Mobile shelving bay",
      "quantity": "24",
      "unit": "bay",
      "unit_price": "1211.25"
    }
  ]
}

Answers 200

A Order. See Order.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 12, "title": "Archive store - mobile shelving", "customer_po": "PO-4471", "promised_date": "2026-12-05", "lines": [{"description": "Mobile shelving bay", "quantity": "24", "unit": "bay", "unit_price": "1211.25"}]}' \
  "https://manufactiq.co.uk/api/v1/orders/18"
POST /api/v1/orders/{order_id}/status Move an order along the workshop

Delivered and installed stamp their dates; complete and cancelled stamp when. The enquiry's pipeline hears each step, and a note is logged.

Write keyOrders tabOrder book on the plan

Body

FieldTypeWhat it is
status requiredstringconfirmed, drawings, manufacturing, ready, delivered, installed, complete or cancelled. One of: confirmed, drawings, manufacturing, ready, delivered, installed, complete, cancelled.
outcome_reasonstringA note, kept with the change.

Example body

{
  "status": "delivered"
}

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "delivered"}' \
  "https://manufactiq.co.uk/api/v1/orders/18/status"
POST /api/v1/orders/{order_id}/stage Move an order to a stage

A stage stands for a workshop status, so landing on one that records a different status is that status change, date stamp and all.

Write keyOrders tabOrder book on the plan

Body

FieldTypeWhat it is
stage_id requiredintegerA stage on one of the company's order pipelines.
outcome_reasonstringA note, kept with the change.

Example body

{
  "stage_id": 1
}

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage_id": 1}' \
  "https://manufactiq.co.uk/api/v1/orders/18/stage"
POST /api/v1/orders/{order_id}/hold Put an order on hold

Marks it on hold, its workshop status and stage kept as they are: it is not late and it is out of the open order book until it is released. A note is logged. Holding one already on hold changes nothing; a complete or cancelled order cannot be held.

Write keyOrders tabOrder book on the plan

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/hold"
POST /api/v1/orders/{order_id}/release Release an order from hold

It carries on from the workshop status and stage it kept. A note is logged. Releasing one that is not on hold changes nothing.

Write keyOrders tabOrder book on the plan

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/release"
POST /api/v1/orders/{order_id}/pipeline Move an order to another pipeline
Write keyOrders tabOrder book on the plan

Body

FieldTypeWhat it is
pipeline_id requiredintegerOne of the company's order pipelines.

Example body

{
  "pipeline_id": 1
}

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pipeline_id": 1}' \
  "https://manufactiq.co.uk/api/v1/orders/18/pipeline"
POST /api/v1/orders/{order_id}/invoiced Record an invoice raised elsewhere

For an order billed outside the CRM. An invoice raised in the CRM fills these in by itself.

Write keyOrders tabOrder book on the plan

Body

FieldTypeWhat it is
invoice_refstringThe invoice number from your accounts package.
invoiced_atdateWhen; today if left out.

Example body

{
  "invoice_ref": "SI-10422"
}

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"invoice_ref": "SI-10422"}' \
  "https://manufactiq.co.uk/api/v1/orders/18/invoiced"
GET /api/v1/orders/{order_id}/billable What is left to invoice on an order

Every line with how much is already on an invoice and how much is left, and the price agreed - what the invoice picker shows. Needs the invoices tab in the key's role.

Any keyOrders tabOrder book on the plan

Answers 200

A list of BillableLine records under items. See BillableLine.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/billable"
POST /api/v1/orders/{order_id}/archive Archive an order
Write keyOrders tabOrder book on the plan

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/archive"
POST /api/v1/orders/{order_id}/restore Restore an archived order
Write keyOrders tabOrder book on the plan

Answers 200

A Order. See Order.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/restore"
DELETE /api/v1/orders/{order_id} Delete an order permanently

Administrators only. A job with extras orders on top of it is refused with 409 until those are deleted.

Write keyAdministratorOrders tabOrder book on the plan

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18"
GET /api/v1/orders/{order_id}/invoices Its invoices

What the order's page shows under its invoices. Needs the invoices tab in the key's role.

Any keyOrders tabOrder book on the plan

Answers 200

A list of Invoice records under items. See Invoice.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/invoices"
GET /api/v1/orders/{order_id}/tasks Its tasks

What the order's page shows under its tasks. Needs the tasks tab in the key's role.

Any keyOrders tabOrder book on the plan

Answers 200

A list of Task records under items. See Task.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/tasks"
GET /api/v1/orders/{order_id}/documents Its documents

What the order's page shows under its documents. Needs the documents tab in the key's role.

Any keyOrders tabOrder book on the plan

Answers 200

A list of Document records under items. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/documents"
GET /api/v1/orders/{order_id}/emails The job's captured emails

What the order's page shows under the job's captured emails.

Any keyOrders tabOrder book on the plan

Answers 200

A list of Email records under items. See Email.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/orders/18/emails"

Invoices

Raised against an order, in parts, and sent with your bank details.

GET /api/v1/invoices List invoices

Newest first. The answer carries the invoice book's figures too: drafts, outstanding, overdue and billed this month.

Any keyInvoices tab

Query

NameTypeWhat it is
qstringSearch the reference, PO number, company, quotation and order references.
statusstringdraft, sent, paid or cancelled. One of: draft, sent, paid, cancelled.
pipelineintegerA pipeline id.
openbooleantrue for draft and sent invoices.
overduebooleantrue for sent invoices past their due date.
billingstringpart, full or none: how much of the invoice's order is billed. One of: part, full, none.
companyintegerA company id.
ownerintegerAn owner's user id.
minebooleantrue for the key's own user's invoices.
archivedbooleantrue to include archived invoices.
sortstringrecent (the default), reference, due, value, customer or status. One of: recent, reference, due, value, customer, status, against, net, owner, contact, dated, overdue, order, created.
x_<field>stringFilter on one of your own fields.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Invoice records under items, with paging. See Invoice.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices"
POST /api/v1/invoices Raise an invoice

An invoice typed in whole. Against an order (order_id) its lines may be anchored to the order's lines, and a quantity beyond what is left to bill is refused (422); a line with no anchor is deliberately uncapped. It takes the order's reference, with -2, -3 for further invoices on the job.

Write keyInvoices tab

Body

FieldTypeWhat it is
company_id requiredintegerThe customer.
contact_idintegerThe contact.
order_idintegerThe order it bills. To bill some of an order's lines, use POST /orders/{order_id}/invoice instead, which does the picking.
quote_idintegerThe quotation.
enquiry_idintegerThe enquiry.
customer_postringThe customer's order number.
invoice_datedateDated; today if left out.
due_datedatePayment due; the company's payment days on if left out.
payment_termsstringPayment terms, as written.
discount_pctnumberWhole-invoice discount, per cent; usually nil.
vat_ratenumberVAT rate; the company's default if left out.
currencystringISO code; yours if left out.
fx_ratenumberUnits of that currency per one of yours.
notesstringNotes printed on it.
owner_user_idintegerWhose it is; the key's own user if left out.
pipeline_idintegerWhich invoice pipeline it travels; the default if left out.
lines requiredarrayThe lines, each as below. At least one.
fieldsobjectThe invoice's extra fields, by name.

Example body

{
  "company_id": 1,
  "lines": [
    {
      "description": "Deposit, 30%",
      "quantity": "1",
      "unit_price": "9000.00"
    }
  ]
}

Answers 201

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 1, "lines": [{"description": "Deposit, 30%", "quantity": "1", "unit_price": "9000.00"}]}' \
  "https://manufactiq.co.uk/api/v1/invoices"
POST /api/v1/orders/{order_id}/invoice Invoice some or all of an order

The part-invoicing screen: the lines are read off the order, never from the request, so only the quantity and price of each can be chosen. What is not picked stays on the order for the next invoice. An order with no lines, or a cancelled one, is refused (409). Needs the orders tab in the key's role.

Write keyInvoices tab

Body

FieldTypeWhat it is
linesarrayWhich order lines to bill, each {order_line_id, quantity, unit_price}: quantity defaults to what is left, unit_price to the price agreed. Leave the whole list out to bill everything left on the order.
invoice_datedateDated; today if left out.
due_datedatePayment due.
customer_postringThe customer's order number; the order's if left out.
payment_termsstringPayment terms; the quotation's if left out.
notesstringNotes printed on it.

Example body

{
  "lines": [
    {
      "order_line_id": 51,
      "quantity": "6"
    }
  ]
}

Answers 201

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lines": [{"order_line_id": 51, "quantity": "6"}]}' \
  "https://manufactiq.co.uk/api/v1/orders/18/invoice"
GET /api/v1/invoices/{invoice_id} One invoice

With its lines, how much of its order is billed, the other invoices on the same order and the stages of its pipeline.

Any keyInvoices tab

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55"
PATCH /api/v1/invoices/{invoice_id} Change an invoice

Send only the fields to change; lines sent replace the set. A paid or cancelled invoice cannot be changed (409).

Write keyInvoices tab

Body

FieldTypeWhat it is
company_id requiredintegerThe customer.
contact_idintegerThe contact.
order_idintegerThe order it bills. To bill some of an order's lines, use POST /orders/{order_id}/invoice instead, which does the picking.
quote_idintegerThe quotation.
enquiry_idintegerThe enquiry.
customer_postringThe customer's order number.
invoice_datedateDated; today if left out.
due_datedatePayment due; the company's payment days on if left out.
payment_termsstringPayment terms, as written.
discount_pctnumberWhole-invoice discount, per cent; usually nil.
vat_ratenumberVAT rate; the company's default if left out.
currencystringISO code; yours if left out.
fx_ratenumberUnits of that currency per one of yours.
notesstringNotes printed on it.
owner_user_idintegerWhose it is; the key's own user if left out.
pipeline_idintegerWhich invoice pipeline it travels; the default if left out.
lines requiredarrayThe lines, each as below. At least one.
fieldsobjectThe invoice's extra fields, by name.

Example body

{
  "company_id": 1,
  "lines": [
    {
      "description": "Deposit, 30%",
      "quantity": "1",
      "unit_price": "9000.00"
    }
  ]
}

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id": 1, "lines": [{"description": "Deposit, 30%", "quantity": "1", "unit_price": "9000.00"}]}' \
  "https://manufactiq.co.uk/api/v1/invoices/55"
POST /api/v1/invoices/{invoice_id}/status Mark an invoice sent, paid or cancelled

Sent and paid stamp their dates and tell the enquiry's and the order's pipelines. Cancelling puts what was on it back on the order to be invoiced again. Paid tells Teams. A note is logged.

Write keyInvoices tab

Body

FieldTypeWhat it is
status requiredstringdraft, sent, paid or cancelled. One of: draft, sent, paid, cancelled.
outcome_reasonstringA note, kept with the change.

Example body

{
  "status": "paid"
}

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "paid"}' \
  "https://manufactiq.co.uk/api/v1/invoices/55/status"
POST /api/v1/invoices/{invoice_id}/stage Move an invoice to a stage

Onto a stage recording sent marks it sent, onto paid marks it paid, with everything that follows. A cancelled invoice is not moved (409).

Write keyInvoices tab

Body

FieldTypeWhat it is
stage_id requiredintegerA stage on one of the company's invoice pipelines.
outcome_reasonstringA note, kept with the change.

Example body

{
  "stage_id": 1
}

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage_id": 1}' \
  "https://manufactiq.co.uk/api/v1/invoices/55/stage"
POST /api/v1/invoices/{invoice_id}/pipeline Move an invoice to another pipeline
Write keyInvoices tab

Body

FieldTypeWhat it is
pipeline_id requiredintegerOne of the company's invoice pipelines.

Example body

{
  "pipeline_id": 1
}

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pipeline_id": 1}' \
  "https://manufactiq.co.uk/api/v1/invoices/55/pipeline"
POST /api/v1/invoices/{invoice_id}/send Email an invoice, or a reminder

A draft goes as the invoice and becomes sent; one already sent goes again as a payment reminder. Your bank details and terms from Administration > Documents are on it. Paid and cancelled invoices are refused (409).

Write keyInvoices tab

Body

FieldTypeWhat it is
to_emailstringWho to; the contact's address if left out. Several addresses may be given, with commas between them or as an array; everybody is on the one email.
cc_emailstringAnybody to copy it to (Cc): the customer's accounts department, a colleague. Several addresses may be given, with commas between them or as an array; everybody is on the one email.
messagestringA note above the document, up to 2,000 characters.
attach_pdfbooleanWhether the PDF goes with it. Default true.

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55/send"
GET /api/v1/invoices/{invoice_id}/pdf The invoice as a PDF

The customer's copy, with the letterhead, VAT number and bank details.

Any keyInvoices tab

Answers 200

Not JSON: application/pdf.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -o download \
  "https://manufactiq.co.uk/api/v1/invoices/55/pdf"
POST /api/v1/invoices/{invoice_id}/archive Archive an invoice
Write keyInvoices tab

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55/archive"
POST /api/v1/invoices/{invoice_id}/restore Restore an archived invoice
Write keyInvoices tab

Answers 200

A Invoice. See Invoice.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55/restore"
DELETE /api/v1/invoices/{invoice_id} Delete an invoice permanently

Administrators only. What it billed goes back on the order.

Write keyAdministratorInvoices tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55"
GET /api/v1/invoices/{invoice_id}/emails The job's captured emails
Any keyInvoices tab

Answers 200

A list of Email records under items. See Email.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55/emails"

Purchase orders

An add-on: orders to suppliers for a job or for stock, approved by value, sent as a PDF, booked in as they arrive and matched to the suppliers' invoices.

GET /api/v1/purchase-orders List purchase orders

Newest first. The answer carries the figures across the top of the list too: waiting for approval, still to send, still to arrive and late.

Any keyPurchase orders tabThe purchase orders add-on

Query

NameTypeWhat it is
qstringSearch the number, the supplier, their reference, the job and the lines.
statusstringdraft, awaiting_approval, approved, sent, closed or cancelled. One of: draft, awaiting_approval, approved, sent, closed, cancelled.
openbooleantrue for orders not yet closed or cancelled.
approvebooleantrue for the orders waiting for the acting user to approve them.
purposestringjob, stock or overheads. One of: job, stock, overheads.
receiptstringdue (still to arrive), late (past the date wanted) or full (all here). One of: due, late, full.
billingstringunbilled (arrived, not invoiced) or variance (invoiced above the order). One of: unbilled, variance.
supplierintegerA supplier's company id.
ownerintegerWho raised it, by user id.
minebooleantrue for the acting user's own orders.
archivedbooleantrue to include archived orders.
sortstringrecent (the default), reference, required, value, supplier or status. One of: recent, reference, required, value, supplier, status, job, invoiced.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of PurchaseOrder records under items, with paging. See PurchaseOrder.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders"
POST /api/v1/purchase-orders Raise a purchase order

Raised as a draft, numbered in your format unless a reference is sent. Approving and sending it are the routes below.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
referencestringThe purchase order's number. Leave out for the next in your format; send one to carry on from another system.
purposestringjob (the default), stock or overheads. One of: job, stock, overheads.
jobstringThe job it is for, by the enquiry's or order's reference. Needed when the purpose is job.
order_idintegerThe order on that job it was raised from, to keep it against that order.
company_id requiredintegerThe supplier.
contact_idintegerThe supplier's contact.
order_datedateDated; today if left out.
required_datedateWhen it is wanted by.
supplier_refstringThe supplier's own reference: their quotation number.
deliver_tostringWhere it is to be delivered, as printed on the order.
notesstringPrinted on the order, for the supplier.
internal_notesstringFor colleagues; never printed or sent.
vat_ratenumberVAT rate; your default if left out.
currencystringISO code; yours if left out.
fx_ratenumberUnits of that currency per one of yours.
owner_user_idintegerWho raised it; the acting user if left out.
lines requiredarrayThe lines, each as below. At least one.

Example body

{
  "job": "J-2026-0042",
  "company_id": 1,
  "lines": [
    {
      "description": "18 mm birch plywood, 2440 x 1220",
      "quantity": "10",
      "unit": "sheet",
      "unit_price": "42.50"
    }
  ]
}

Answers 201

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job": "J-2026-0042", "company_id": 1, "lines": [{"description": "18 mm birch plywood, 2440 x 1220", "quantity": "10", "unit": "sheet", "unit_price": "42.50"}]}' \
  "https://manufactiq.co.uk/api/v1/purchase-orders"
GET /api/v1/purchase-orders/{purchase_order_id} One purchase order

With its lines, the deliveries booked in, the supplier's invoices and where its approval stands - who may approve it, and the trail.

Any keyPurchase orders tabThe purchase orders add-on

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27"
PATCH /api/v1/purchase-orders/{purchase_order_id} Change a purchase order

Send only the fields to change; lines sent replace the set, each kept by its id. Refused (409) while it waits for approval, and once closed or cancelled. Taking an approved order above the value approved sends it back for approval - or approves it again, when the acting user may.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
referencestringThe purchase order's number. Leave out for the next in your format; send one to carry on from another system.
purposestringjob (the default), stock or overheads. One of: job, stock, overheads.
jobstringThe job it is for, by the enquiry's or order's reference. Needed when the purpose is job.
order_idintegerThe order on that job it was raised from, to keep it against that order.
company_id requiredintegerThe supplier.
contact_idintegerThe supplier's contact.
order_datedateDated; today if left out.
required_datedateWhen it is wanted by.
supplier_refstringThe supplier's own reference: their quotation number.
deliver_tostringWhere it is to be delivered, as printed on the order.
notesstringPrinted on the order, for the supplier.
internal_notesstringFor colleagues; never printed or sent.
vat_ratenumberVAT rate; your default if left out.
currencystringISO code; yours if left out.
fx_ratenumberUnits of that currency per one of yours.
owner_user_idintegerWho raised it; the acting user if left out.
lines requiredarrayThe lines, each as below. At least one.

Example body

{
  "job": "J-2026-0042",
  "company_id": 1,
  "lines": [
    {
      "description": "18 mm birch plywood, 2440 x 1220",
      "quantity": "10",
      "unit": "sheet",
      "unit_price": "42.50"
    }
  ]
}

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job": "J-2026-0042", "company_id": 1, "lines": [{"description": "18 mm birch plywood, 2440 x 1220", "quantity": "10", "unit": "sheet", "unit_price": "42.50"}]}' \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27"
POST /api/v1/purchase-orders/{purchase_order_id}/submit Submit a purchase order for approval

A draft whose value needs approving goes to the people whose roles may approve it, who are emailed - or is approved there and then when the acting user may approve it. One that needs no approval is refused (409): it can be sent as it is.

Write keyPurchase orders tabThe purchase orders add-on

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/submit"
POST /api/v1/purchase-orders/{purchase_order_id}/approve Approve a purchase order

Only while it waits for approval, and only by somebody whose role may approve its value (403 otherwise). Whoever submitted it is emailed.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
notestringA note kept on the approval trail.

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/approve"
POST /api/v1/purchase-orders/{purchase_order_id}/reject Send a purchase order back

Back to its draft, with the reason emailed to whoever submitted it. The same people who may approve it may send it back.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
reason requiredstringWhy, for whoever submitted it.

Example body

{
  "reason": "Get a second price for the board"
}

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reason": "Get a second price for the board"}' \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/reject"
POST /api/v1/purchase-orders/{purchase_order_id}/withdraw Withdraw a purchase order from approval

Back to its draft, to be changed and submitted again.

Write keyPurchase orders tabThe purchase orders add-on

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/withdraw"
POST /api/v1/purchase-orders/{purchase_order_id}/send Email a purchase order to the supplier

Refused (409) until it is approved, when its value needs approving. Marks it sent, files the PDF with the job and logs the email.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
to_email requiredstringThe supplier's address. Several addresses may be given, with commas between them or as an array; everybody is on the one email.
cc_emailstringAnybody to copy it to (Cc): the supplier's sales office, a colleague. Several addresses may be given, with commas between them or as an array; everybody is on the one email.
subjectstringThe subject; your usual wording if left out.
messagestringThe message; your usual wording if left out.
attach_pdfbooleanAttach the order as a PDF (the default).
document_idsarrayIts documents to go with it: ids from GET /purchase-orders/{purchase_order_id}/documents. Any other id is ignored. All the files together must come to about 3 MB or less, the PDF included, or nothing is sent (422).

Example body

{
  "to_email": "orders@supplier.example",
  "document_ids": [
    41
  ]
}

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to_email": "orders@supplier.example", "document_ids": [41]}' \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/send"
POST /api/v1/purchase-orders/{purchase_order_id}/mark-sent Mark a purchase order sent

For an order placed on the telephone or the supplier's website. Refused (409) until it is approved, when its value needs approving.

Write keyPurchase orders tabThe purchase orders add-on

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/mark-sent"
GET /api/v1/purchase-orders/{purchase_order_id}/pdf The purchase order as a PDF

The supplier's copy: the lines, where to deliver and the reference to quote.

Any keyPurchase orders tabThe purchase orders add-on

Answers 200

Not JSON: application/pdf.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -o download \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/pdf"
GET /api/v1/purchase-orders/{purchase_order_id}/documents A purchase order's documents

Newest first: those uploaded to it, with the copies of its PDF filed each time it was sent, and, marked linked, those put on it from its job. The ids, less the PDF's copies, are what its send takes as document_ids.

Any keyPurchase orders tabThe purchase orders add-on

Answers 200

A list of Document records under items. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/documents"
POST /api/v1/purchase-orders/{purchase_order_id}/deliveries Book a delivery in

Against an order that has gone to the supplier and is still open.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
received_ondateWhen it arrived; today if left out.
delivery_notestringThe number on the supplier's delivery note.
notesstringAnything worth recording about it.
lines requiredarrayWhat arrived, each {line_id, quantity}. More of a line than is still to come is refused.

Example body

{
  "lines": [
    {
      "line_id": 88,
      "quantity": "6"
    }
  ]
}

Answers 201

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lines": [{"line_id": 88, "quantity": "6"}]}' \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/deliveries"
DELETE /api/v1/purchase-orders/{purchase_order_id}/deliveries/{receipt_id} Take back a delivery booked in

What it booked in is shown as still to come again.

Write keyPurchase orders tabThe purchase orders add-on

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/deliveries/6"
POST /api/v1/purchase-orders/{purchase_order_id}/bills Record the supplier's invoice

Recorded as the supplier wrote it. What it charges beyond the same quantities at the order's prices is worked out and answered as variance.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
supplier_reference requiredstringTheir invoice number.
bill_date requireddateTheir invoice's date.
due_datedateWhen they want paying.
vat_amountmoneyTheir VAT, when it differs from the rate by rounding.
notesstringAnything worth recording about it.
linesarrayWhat it charges for the order's lines, each {line_id, quantity, unit_price}; unit_price is the order's when left out.
extrasarrayCharges not on the order, each {description, quantity, unit_price}.

Example body

{
  "supplier_reference": "INV-7781",
  "bill_date": "2026-10-31",
  "lines": [
    {
      "line_id": 88,
      "quantity": "10",
      "unit_price": "43.00"
    }
  ],
  "extras": [
    {
      "description": "Carriage",
      "quantity": "1",
      "unit_price": "25.00"
    }
  ]
}

Answers 201

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"supplier_reference": "INV-7781", "bill_date": "2026-10-31", "lines": [{"line_id": 88, "quantity": "10", "unit_price": "43.00"}], "extras": [{"description": "Carriage", "quantity": "1", "unit_price": "25.00"}]}' \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/bills"
DELETE /api/v1/purchase-orders/{purchase_order_id}/bills/{bill_id} Take back a supplier's invoice

For one recorded against the order in error. Refused (409) while it is a live bill in Xero, QuickBooks or Sage.

Write keyPurchase orders tabThe purchase orders add-on

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/bills/8"
POST /api/v1/purchase-orders/{purchase_order_id}/status Close, cancel or reopen a purchase order

Closing needs it sent; cancelling is refused once anything has been delivered or invoiced against it - close it instead. Reopening a cancelled order makes it a draft again, to be approved afresh if its value needs it.

Write keyPurchase orders tabThe purchase orders add-on

Body

FieldTypeWhat it is
status requiredstringclosed (nothing more to come), cancelled, or open to reopen one. One of: closed, cancelled, open.
outcome_reasonstringWhy, kept with the order.

Example body

{
  "status": "closed"
}

Answers 200

A PurchaseOrder. See PurchaseOrder.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "closed"}' \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27/status"
DELETE /api/v1/purchase-orders/{purchase_order_id} Delete a purchase order

With its deliveries, supplier invoices and approval trail. Administrators only. Anything sent to Xero, QuickBooks or Sage stays there.

Write keyAdministratorPurchase orders tabThe purchase orders add-on

Answers 200

An empty answer.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/purchase-orders/27"

Products

The price book a line is built from.

GET /api/v1/products List products

Products on sale unless archived says otherwise.

Any keyProducts tabPrice book on the plan

Query

NameTypeWhat it is
qstringSearch the name, code, description and category - and, with the materials add-on, the supplier's codes.
categorystringOne category.
kindstringproduct, service or material, for one kind only. One of: product, service, material.
archivedbooleantrue to include withdrawn products.
uncostedbooleantrue for products with no cost recorded.
unpricedbooleantrue for products priced per job.
expensesbooleantrue for the products marked as expenses.
finishstringA finish's id for the products in it, or none for those without one - for a company with the finishes add-on.
sortstringname (the default), name_desc, code, price, price_asc, category, recent or used. One of: name, name_desc, code, price, price_asc, category, recent, used, unit, cost, margin, kind, finish.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Product records under items, with paging. See Product.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/products"
POST /api/v1/products Add a product

Administrators only, as on the Products tab. A code already in use is refused with 409.

Write keyAdministratorProducts tabPrice book on the plan

Body

FieldTypeWhat it is
kindstringproduct (the default); service: work done for the job - laser cutting, fitting - often by a subcontractor; or material: bought in to make things from - sheet steel, board - for a company with the materials add-on. One of: product, service, material.
codestringIts code, unique in the price book.
name requiredstringIts name.
descriptionstringThe wording a line starts with.
unitstringWhat it is sold by: each (the default), bay, m, m², linear m, hour, day, set, pair, or anything you like.
unit_pricemoneySell price in your currency; leave out for a product priced per job.
unit_costmoneyCost; leave out if unknown. Zero means free, not unknown.
categorystringIts category - what an enquiry can be filed under.
finishstringIts finish, by name from your list of finishes, for a company with the finishes add-on; null for none. Not for a service.
dimensionsarrayWhich of length, width and height a line asks for, for a product sold in different sizes. An empty list for one size.
supplier_company_idintegerFor a service, the company that does it; for a material, the one it is bought from - usually a supplier. Ignored for a product.
supplier_codestringFor a material, the supplier's own code for it, which a purchase order quotes to them. Ignored for anything else.
line_visibilitystringHow a line made from it starts out on the customer's copy: shown (the default), cost_only - left off and not charged, its cost still counted - or included - charged but not listed. Each line can still be changed. One of: shown, cost_only, included.
is_expensebooleantrue for an expense - delivery, carriage, hire: its lines are charged and invoiced as usual, and left out of every margin. Changing it works out again the quotations, orders and invoices that have the product.
notesstringNotes, up to 1,000 characters.
is_activebooleanOn sale (the default); false withdraws it.
fieldsobjectThe product's extra fields, by name.

Example body

{
  "code": "MS-B1000",
  "name": "Mobile shelving bay, 1000 mm",
  "unit": "bay",
  "unit_price": "1275.00",
  "unit_cost": "800.00",
  "category": "Mobile shelving",
  "finish": "Powder coating",
  "dimensions": [
    "length",
    "width"
  ],
  "supplier_code": "MDF18-2440"
}

Answers 201

A Product. See Product.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code": "MS-B1000", "name": "Mobile shelving bay, 1000 mm", "unit": "bay", "unit_price": "1275.00", "unit_cost": "800.00", "category": "Mobile shelving", "finish": "Powder coating", "dimensions": ["length", "width"], "supplier_code": "MDF18-2440"}' \
  "https://manufactiq.co.uk/api/v1/products"
GET /api/v1/products/{product_id} One product
Any keyProducts tabPrice book on the plan

Answers 200

A Product. See Product.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/products/3"
PATCH /api/v1/products/{product_id} Change a product

Send only the fields to change. Lines already quoted keep the price they were quoted at.

Write keyAdministratorProducts tabPrice book on the plan

Body

FieldTypeWhat it is
kindstringproduct (the default); service: work done for the job - laser cutting, fitting - often by a subcontractor; or material: bought in to make things from - sheet steel, board - for a company with the materials add-on. One of: product, service, material.
codestringIts code, unique in the price book.
name requiredstringIts name.
descriptionstringThe wording a line starts with.
unitstringWhat it is sold by: each (the default), bay, m, m², linear m, hour, day, set, pair, or anything you like.
unit_pricemoneySell price in your currency; leave out for a product priced per job.
unit_costmoneyCost; leave out if unknown. Zero means free, not unknown.
categorystringIts category - what an enquiry can be filed under.
finishstringIts finish, by name from your list of finishes, for a company with the finishes add-on; null for none. Not for a service.
dimensionsarrayWhich of length, width and height a line asks for, for a product sold in different sizes. An empty list for one size.
supplier_company_idintegerFor a service, the company that does it; for a material, the one it is bought from - usually a supplier. Ignored for a product.
supplier_codestringFor a material, the supplier's own code for it, which a purchase order quotes to them. Ignored for anything else.
line_visibilitystringHow a line made from it starts out on the customer's copy: shown (the default), cost_only - left off and not charged, its cost still counted - or included - charged but not listed. Each line can still be changed. One of: shown, cost_only, included.
is_expensebooleantrue for an expense - delivery, carriage, hire: its lines are charged and invoiced as usual, and left out of every margin. Changing it works out again the quotations, orders and invoices that have the product.
notesstringNotes, up to 1,000 characters.
is_activebooleanOn sale (the default); false withdraws it.
fieldsobjectThe product's extra fields, by name.

Example body

{
  "code": "MS-B1000",
  "name": "Mobile shelving bay, 1000 mm",
  "unit": "bay",
  "unit_price": "1275.00",
  "unit_cost": "800.00",
  "category": "Mobile shelving",
  "finish": "Powder coating",
  "dimensions": [
    "length",
    "width"
  ],
  "supplier_code": "MDF18-2440"
}

Answers 200

A Product. See Product.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code": "MS-B1000", "name": "Mobile shelving bay, 1000 mm", "unit": "bay", "unit_price": "1275.00", "unit_cost": "800.00", "category": "Mobile shelving", "finish": "Powder coating", "dimensions": ["length", "width"], "supplier_code": "MDF18-2440"}' \
  "https://manufactiq.co.uk/api/v1/products/3"
POST /api/v1/products/{product_id}/archive Withdraw a product from sale

Lines that used it are untouched; it is no longer offered for new ones.

Write keyAdministratorProducts tabPrice book on the plan

Answers 200

A Product. See Product.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/products/3/archive"
POST /api/v1/products/{product_id}/restore Put a withdrawn product back on sale
Write keyAdministratorProducts tabPrice book on the plan

Answers 200

A Product. See Product.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/products/3/restore"
DELETE /api/v1/products/{product_id} Delete a product permanently

For the one typed in by mistake. Lines keep their copied wording and price and lose the link; the answer says how many.

Write keyAdministratorProducts tabPrice book on the plan

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/products/3"
GET /api/v1/products/{product_id}/documents A product's documents

Its datasheets, drawings and certificates, newest first: those uploaded to it (POST /documents with product_id) and, marked linked, those linked to it from where they are filed.

Any keyProducts tabPrice book on the plan

Answers 200

A list of Document records under items. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/products/3/documents"
GET /api/v1/products/{product_id}/revisions A product's revisions

Newest first: each revision's letter, what changed, its own wording, price, cost and sizes, whether it is on the product's page or kept to the job it was made on, and how many documents it holds. Revisions are made on the job's lines, in the CRM. Empty for a product never revised.

Any keyProducts tabPrice book on the plan

Answers 200

A list of ProductRevision records under items. See ProductRevision.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/products/3/revisions"
GET /api/v1/finishes Your finishes

The company's own list of finishes - powder coating, galvanising - that a product, a revision and each line can have, in the list's order. Retired ones too, with is_active false: they stay where they are used. For a company with the finishes add-on.

Any keyProducts tabThe product finishes add-on

Answers 200

A list of Finish records under items. See Finish.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/finishes"

Tasks

Who is doing what, by when.

GET /api/v1/tasks List tasks

Open tasks unless status says otherwise, soonest due first.

Any keyTasks tab

Query

NameTypeWhat it is
qstringSearch the title, details and company.
statusstringopen (the default), done or cancelled; all for every status. One of: open, done, cancelled, all.
assigneeintegerA user id.
minebooleantrue for the key's own user's tasks.
duestringoverdue, today, week or none. One of: overdue, today, week, none.
sortstringdue (the default), due_desc, priority or created. One of: due, due_desc, priority, created, title, linked, assignee, status, company, enquiry, recent.
x_<field>stringFilter on one of your own fields.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Task records under items, with paging. See Task.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tasks"
POST /api/v1/tasks Add a task

The assignee is emailed that a task has been put in their name, as they would be from the form - unless they are the key's own user.

Write keyTasks tab

Body

FieldTypeWhat it is
title requiredstringWhat has to be done.
detailsstringMore detail, up to 10,000 characters.
due_datedateWhen by.
prioritystringlow, normal (the default) or high. One of: low, normal, high.
assigned_to_user_idintegerWhose it is; the key's own user if left out. They are emailed, unless it is the key's own user.
company_idintegerThe company it is about.
contact_idintegerThe contact.
enquiry_idintegerThe enquiry.
order_idintegerThe order.
fieldsobjectThe task's extra fields, by name.

Example body

{
  "title": "Ring back about the survey",
  "due_date": "2026-10-16"
}

Answers 201

A Task. See Task.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Ring back about the survey", "due_date": "2026-10-16"}' \
  "https://manufactiq.co.uk/api/v1/tasks"
GET /api/v1/tasks/{task_id} One task
Any keyTasks tab

Answers 200

A Task. See Task.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tasks/90"
PATCH /api/v1/tasks/{task_id} Change a task

Send only the fields to change. A new assignee is emailed.

Write keyTasks tab

Body

FieldTypeWhat it is
title requiredstringWhat has to be done.
detailsstringMore detail, up to 10,000 characters.
due_datedateWhen by.
prioritystringlow, normal (the default) or high. One of: low, normal, high.
assigned_to_user_idintegerWhose it is; the key's own user if left out. They are emailed, unless it is the key's own user.
company_idintegerThe company it is about.
contact_idintegerThe contact.
enquiry_idintegerThe enquiry.
order_idintegerThe order.
fieldsobjectThe task's extra fields, by name.

Example body

{
  "title": "Ring back about the survey",
  "due_date": "2026-10-16"
}

Answers 200

A Task. See Task.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Ring back about the survey", "due_date": "2026-10-16"}' \
  "https://manufactiq.co.uk/api/v1/tasks/90"
POST /api/v1/tasks/{task_id}/status Complete or reopen a task
Write keyTasks tab

Body

FieldTypeWhat it is
status requiredstringopen, done or cancelled. One of: open, done, cancelled.

Example body

{
  "status": "done"
}

Answers 200

A Task. See Task.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "done"}' \
  "https://manufactiq.co.uk/api/v1/tasks/90/status"
DELETE /api/v1/tasks/{task_id} Delete a task

The key's own user's tasks, or any task for an administrator.

Write keyTasks tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tasks/90"
POST /api/v1/tasks/bulk Act on several tasks at once

Each task is changed as its own page would change it. Deleting: anybody may delete their own, an administrator any; the rest are skipped.

Write keyTasks tab

Body

FieldTypeWhat it is
action requiredstringdone, open, cancel, assign, due, priority or delete. One of: done, open, cancel, assign, due, priority, delete.
ids requiredarrayThe tasks to act on, by id: up to 500.
valuestringFor assign: the user id (each gets one email listing theirs). For due: a date, YYYY-MM-DD, or empty for none. For priority: low, normal or high.

Example body

{
  "action": "...",
  "ids": [
    12,
    14
  ]
}

Answers 200

A BulkResult. See BulkResult.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "...", "ids": [12, 14]}' \
  "https://manufactiq.co.uk/api/v1/tasks/bulk"

Activity

Calls, emails, meetings, site visits and notes, logged against a record.

GET /api/v1/activities List activity

Newest first.

Any keyActivity tab

Query

NameTypeWhat it is
qstringSearch the subject, detail and company.
typestringOne activity type. One of: call, email, meeting, site_visit, note, other.
userintegerWho logged it: a user id.
daysintegerOnly the last so many days.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Activity records under items, with paging. See Activity.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/activities"
POST /api/v1/activities Log an activity

Logged in the key's own user's name. The company is filled in from the enquiry or contact when only those are given, so it shows on the customer's timeline.

Write keyActivity tab

Body

FieldTypeWhat it is
activity_typestringcall, email, meeting, site_visit, note (the default) or other. One of: call, email, meeting, site_visit, note, other.
subject requiredstringWhat it was, in a line.
bodystringThe detail, up to 20,000 characters. @Name tells a colleague, as on the form.
occurred_atdatetimeWhen; now if left out.
company_idintegerThe company. At least one of company, contact or enquiry is needed.
contact_idintegerThe contact.
enquiry_idintegerThe enquiry.

Example body

{
  "activity_type": "call",
  "subject": "Spoke to Priya about access",
  "occurred_at": "2026-10-09T14:30",
  "company_id": 12
}

Answers 201

A Activity. See Activity.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"activity_type": "call", "subject": "Spoke to Priya about access", "occurred_at": "2026-10-09T14:30", "company_id": 12}' \
  "https://manufactiq.co.uk/api/v1/activities"
GET /api/v1/activities/{activity_id} One activity
Any keyActivity tab

Answers 200

A Activity. See Activity.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/activities/120"
DELETE /api/v1/activities/{activity_id} Delete an activity

The key's own user's entries, or any entry for an administrator.

Write keyActivity tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/activities/120"

Documents

The files held against a record, uploaded and downloaded.

GET /api/v1/documents List documents

Every document the company holds that the key's role may see, newest first, with how much storage is in use.

Any keyDocuments tab

Query

NameTypeWhat it is
qstringSearch the file name, description, company and references.
companyintegerA company id.
productintegerA product id: the documents filed on it or linked to it.
userintegerWho uploaded it: a user id.
daysintegerOnly the last so many days.
sortstringrecent (the default), oldest, name, name_desc, size or size_asc. One of: recent, oldest, name, name_desc, size, size_asc, attached, by.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Document records under items, with paging. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/documents"
POST /api/v1/documents Upload documents

A multipart form, not JSON. Each file is dealt with on its own: one refused does not lose the others, and every refusal is named under refused. The storage allowance is checked for the whole batch first.

Write keyDocuments tab

Form parts

FieldTypeWhat it is
files requiredfileOne or more files, as multipart form parts named files (or file). The name, type and size rules are the upload box's: documents, spreadsheets, drawings, photographs and archives; never programs or scripts.
company_idintegerThe record to file them against: at least one of these.
contact_idintegerA contact.
enquiry_idintegerAn enquiry.
quote_idintegerA quotation.
order_idintegerAn order.
record_idintegerA record on one of your own tabs.
product_idintegerA product in the price book: its datasheets, drawings and certificates.
descriptionstringWhat the files are.

Answers 201

A list of Document records under items. See Document.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -F "files=@drawing.pdf" \
  "https://manufactiq.co.uk/api/v1/documents"
GET /api/v1/documents/{attachment_id} One document

The record of the file; the bytes are at .../file.

Any keyDocuments tab

Answers 200

A Document. See Document.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/documents/61"
GET /api/v1/documents/{attachment_id}/file Download a document

The bytes, as an attachment - or, where files are held in object storage, a redirect to a link that works for a few minutes. Follow redirects.

Any keyDocuments tab

Query

NameTypeWhat it is
inlinebooleantrue to ask for it inline, for a PDF or photograph.

Answers 200

Not JSON: the file's own type.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -o download \
  "https://manufactiq.co.uk/api/v1/documents/61/file"
PATCH /api/v1/documents/{attachment_id} Change a document's description
Write keyDocuments tab

Body

FieldTypeWhat it is
description requiredstringWhat the file is.

Example body

{
  "description": "..."
}

Answers 200

A Document. See Document.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"description": "..."}' \
  "https://manufactiq.co.uk/api/v1/documents/61"
DELETE /api/v1/documents/{attachment_id} Delete a document

The key's own user's uploads, or any document for an administrator.

Write keyDocuments tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/documents/61"

Your own tabs

Records on the tabs the company designed itself.

GET /api/v1/tabs/{slug}/records List a tab's records

The tab is named by its slug (GET /tabs). The key's role must include it.

Any key

Query

NameTypeWhat it is
qstringSearch the record's values and reference, and the company, enquiry, quote, order and invoice it names.
companyintegerA company id.
ownerintegerA user id, for a tab with a link to a person.
quoteintegerA quote id - one revision - for a tab with a link to a quote.
orderintegerAn order id, for a tab with a link to an order.
invoiceintegerAn invoice id, for a tab with a link to an invoice.
archivedbooleantrue to include archived records.
sortstringrecent (the default), created, oldest, reference, title or company. One of: recent, created, oldest, reference, title, company, owner.
x_<field>stringFilter on one of the tab's own fields: x_<field>=value, or x_<field>.from and x_<field>.to.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Record records under items, with paging. See Record.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/records"
POST /api/v1/tabs/{slug}/records Add a record to a tab

Checked field by field as the tab's form checks it: a required field missing, an option not on the list or a link to another company's record is refused (422). A numbered tab gives it the next reference.

Write key

Body

FieldTypeWhat it is
fields requiredobjectThe record's values, by field name - see GET /tabs/{slug}. A link field takes an id: a company's, a contact's, an enquiry's, a quote's (one revision), an order's, an invoice's or a user's.

Example body

{
  "fields": {
    "machine": "Press 3",
    "severity": "Major",
    "company": 12
  }
}

Answers 201

A Record. See Record.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fields": {"machine": "Press 3", "severity": "Major", "company": 12}}' \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/records"
GET /api/v1/tabs/{slug}/records/{record_id} One record

With its documents under documents.

Any key

Answers 200

A Record. See Record.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/records/5"
PATCH /api/v1/tabs/{slug}/records/{record_id} Change a record

Send only the fields to change.

Write key

Body

FieldTypeWhat it is
fields requiredobjectThe record's values, by field name - see GET /tabs/{slug}. A link field takes an id: a company's, a contact's, an enquiry's, a quote's (one revision), an order's, an invoice's or a user's.

Example body

{
  "fields": {
    "machine": "Press 3",
    "severity": "Major",
    "company": 12
  }
}

Answers 200

A Record. See Record.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fields": {"machine": "Press 3", "severity": "Major", "company": 12}}' \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/records/5"
POST /api/v1/tabs/{slug}/records/{record_id}/archive Archive a record
Write key

Answers 200

A Record. See Record.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/records/5/archive"
POST /api/v1/tabs/{slug}/records/{record_id}/restore Restore an archived record
Write key

Answers 200

A Record. See Record.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/records/5/restore"
DELETE /api/v1/tabs/{slug}/records/{record_id} Delete a record permanently

Administrators only. Its documents go with it.

Write keyAdministrator

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/records/5"

Calendar

Every date in the CRM, between two days.

GET /api/v1/calendar What is in the diary

Calls and meetings, tasks due, enquiries expected to close, quotations expiring and orders promised, in date order, with a count of each kind.

Any keyCalendar tab

Query

NameTypeWhat it is
fromdateThe first day; today if left out.
todateThe last day, inclusive; 30 days on if left out. At most a year.
kindsstringWhich to include, comma-separated: meeting, task, enquiry, quote, order, note. Everything but notes if left out; only kinds from tabs in the key's role are drawn.
ownerintegerWhose diary: a user id.
minebooleantrue for the key's own user's diary.
donebooleantrue to include what is already done, delivered or decided.

Answers 200

A list of CalendarEvent records under items. See CalendarEvent.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/calendar"

Reports

The figures the Reports tab shows, and the report builder.

GET /api/v1/reports/sales The sales report

Every table the sales report prints: performance by month, the forecast by expected close, by owner, by product category, by source, the top customers, quotation conversion and margin (for a role with quotes), lost reasons and the won-by-month series. Needs the enquiries tab in the key's role.

Any keyReports tab

Query

NameTypeWhat it is
monthsinteger3, 6, 12, 24 or 36; 12 if left out. One of: 3, 6, 12, 24, 36.
ownerintegerOne person's share: a user id.
minebooleantrue for the key's own user's share.

Answers 200

A SalesReport. See SalesReport.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/sales"
GET /api/v1/reports/kpis The Reports page's figures

Sales, workshop, cash, customers, people and your own tabs: each section's tiles (value, the comparison and the change), its snapshots of right now and its tables, for the period asked for. A section is null where the key's role leaves its tab out. The charts are left out; the figures behind them are in the tiles.

Any keyReports tab

Query

NameTypeWhat it is
rangestringThe period: this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year, this_fy, last_fy, last_3m, last_6m, last_12m, last_24m, next_week, next_month, next_quarter, next_3m, next_12m, custom. last_12m if left out. One of: this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year, this_fy, last_fy, last_3m, last_6m, last_12m, last_24m, next_week, next_month, next_quarter, next_3m, next_12m, custom.
fromdateWith range=custom: the first day.
todateWith range=custom: the last day.
comparestringWhat to set it against: previous, year, none. One of: previous, year, none.
ownerintegerOne person's share: a user id.
minebooleantrue for the key's own user's share.

Answers 200

A KpiHub. See KpiHub.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/kpis"
GET /api/v1/reports/dashboard The dashboard's figures

The headline (open pipeline, weighted forecast, the quotations won this week, this month and in the last 30 days, and the rest), the twelve-month conversion, the order book and the invoice book, and what needs a person today - overdue invoices, late orders, overdue tasks, quotations about to expire, enquiries gone quiet - each with the record's page. Only the parts in the key's role.

Any keyReports tab

Query

NameTypeWhat it is
ownerintegerOne person's share: a user id.
minebooleantrue for the key's own user's share.

Answers 200

A Dashboard. See Dashboard.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/dashboard"
GET /api/v1/reports/datasets What can be reported on

Every dataset the key's role may report on, with its dimensions, figures, date fields, filters and list columns - the vocabulary the totals and list routes take.

Any keyReports tab

Answers 200

A list of Dataset records under items. See Dataset.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/datasets"
GET /api/v1/reports/totals Run a totals report

The report builder: figures grouped by a dimension over a period, against the period before, with the totals. The same words as the report's own address, so one built on screen runs here from its URL. A word the dataset does not offer is replaced by the dataset's default. Every filter GET /reports/datasets lists for the dataset narrows it the same way: repeat the argument to keep several values, or put not_ in front of its name to leave values out and keep the rest (not_status=complete&not_status=cancelled).

Any keyReports tab

Query

NameTypeWhat it is
dataset requiredstringWhat it is about: a key from GET /reports/datasets. Default enquiries.
dimstringWhat to group by: a dimension of the dataset. Default stage.
measurestringWhich figures, repeated for more than one, up to four. Default count.
datestringWhich date the period applies to: a date field of the dataset.
rangestringThe period: this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year, this_fy, last_fy, last_3m, last_6m, last_12m, last_24m, next_week, next_month, next_quarter, next_3m, next_12m, custom. last_12m if left out. One of: this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year, this_fy, last_fy, last_3m, last_6m, last_12m, last_24m, next_week, next_month, next_quarter, next_3m, next_12m, custom.
fromdateWith range=custom: the first day.
todateWith range=custom: the last day.
comparestringWhat to set it against: previous, year, none. One of: previous, year, none.
whenlistAnother date to narrow by, repeated for up to 3: <date>:<period> (a range above, such as x_expected_invoice_date:next_month), <date>:set or <date>:blank (has a date, or none), <date>:past or <date>:upcoming (before today, or today and later), or <date>:custom:<first>:<last> with either day left blank. <date> is one of the dataset's dates from GET /reports/datasets.
ownerlistWhose records: user ids, or mine, repeated for several.
not_ownerlistEveryone but these: user ids, repeated for several.
statuslistThe statuses (workshop steps, outcomes, types) to keep, repeated for several.
not_statuslistThe statuses to leave out, repeated for several: everything else is kept.
pipelinelistThe pipelines to keep: pipeline ids, repeated for several.
not_pipelinelistThe pipelines to leave out: pipeline ids, repeated for several.
stagelistThe stages to keep: stage ids, repeated for several.
not_stagelistThe stages to leave out: stage ids, repeated for several.

Answers 200

A TotalsReport. See TotalsReport.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/totals?dataset=1"
GET /api/v1/reports/list Run a list report

Every record on its own row with the columns chosen, over a period or any date, sorted and searched - what the list report page shows and exports. Every filter GET /reports/datasets lists for the dataset narrows it the same way: repeat the argument to keep several values, or put not_ in front of its name to leave values out and keep the rest (not_status=complete&not_status=cancelled).

Any keyReports tab

Query

NameTypeWhat it is
dataset requiredstringWhat it lists: a key from GET /reports/datasets.
colstringWhich columns, repeated, up to 16; the dataset's own if left out.
sortstringA column key to sort by.
dirstringasc or desc. One of: asc, desc.
datestringWhich date the period applies to.
rangestringA period, or all for any date. One of: all, this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year, this_fy, last_fy, last_3m, last_6m, last_12m, last_24m, next_week, next_month, next_quarter, next_3m, next_12m, custom.
fromdateWith range=custom: the first day.
todateWith range=custom: the last day.
whenlistAnother date to narrow by, repeated for up to 3: <date>:<period> (a range above, such as x_expected_invoice_date:next_month), <date>:set or <date>:blank (has a date, or none), <date>:past or <date>:upcoming (before today, or today and later), or <date>:custom:<first>:<last> with either day left blank. <date> is one of the dataset's dates from GET /reports/datasets.
ownerlistWhose records: user ids, or mine, repeated for several.
not_ownerlistEveryone but these: user ids, repeated for several.
statuslistThe statuses (workshop steps, outcomes, types) to keep, repeated for several.
not_statuslistThe statuses to leave out, repeated for several: everything else is kept.
pipelinelistThe pipelines to keep: pipeline ids, repeated for several.
not_pipelinelistThe pipelines to leave out: pipeline ids, repeated for several.
stagelistThe stages to keep: stage ids, repeated for several.
not_stagelistThe stages to leave out: stage ids, repeated for several.
qstringA search within the rows.
limitintegerAt most so many rows; 500 if left out, 10,000 at most.

Answers 200

A ListReport. See ListReport.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/list?dataset=1"
GET /api/v1/reports/saved The saved reports

Every saved report the key's own user may see: shared ones, and their own private ones, over data in their role.

Any keyReports tab

Answers 200

A list of SavedReport records under items. See SavedReport.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/saved"
POST /api/v1/reports/saved Save a report
Write keyReports tab

Body

FieldTypeWhat it is
name requiredstringIts name, unique in the company.
descriptionstringWhat it is for.
visibilitystringshared (the default) or private to the key's own user. One of: shared, private.
spec requiredobjectThe report: the same keys GET /reports/totals or GET /reports/list take (kind: list for a list), as an object. Checked word by word; anything the dataset does not offer is replaced by its default.

Example body

{
  "name": "Won by product, this FY",
  "spec": {
    "dataset": "enquiries",
    "dim": "product",
    "measure": [
      "won_value",
      "win_rate"
    ],
    "date": "closed",
    "range": "this_fy"
  }
}

Answers 201

A SavedReport. See SavedReport.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Won by product, this FY", "spec": {"dataset": "enquiries", "dim": "product", "measure": ["won_value", "win_rate"], "date": "closed", "range": "this_fy"}}' \
  "https://manufactiq.co.uk/api/v1/reports/saved"
GET /api/v1/reports/saved/{report_id} Run a saved report

The saved report, run now: a TotalsReport or a ListReport by its kind, with the saved report itself under saved.

Any keyReports tab

Query

NameTypeWhat it is
rangestringA period to run it over instead of its own. One of: this_week, last_week, this_month, last_month, this_quarter, last_quarter, this_year, last_year, this_fy, last_fy, last_3m, last_6m, last_12m, last_24m, next_week, next_month, next_quarter, next_3m, next_12m, custom.
limitintegerFor a list: at most so many rows.

Answers 200

A TotalsReport. See TotalsReport.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/saved/4"
PATCH /api/v1/reports/saved/{report_id} Change a saved report

Its owner, or an administrator. Send only what changes.

Write keyReports tab

Body

FieldTypeWhat it is
name requiredstringIts name, unique in the company.
descriptionstringWhat it is for.
visibilitystringshared (the default) or private to the key's own user. One of: shared, private.
spec requiredobjectThe report: the same keys GET /reports/totals or GET /reports/list take (kind: list for a list), as an object. Checked word by word; anything the dataset does not offer is replaced by its default.

Example body

{
  "name": "Won by product, this FY",
  "spec": {
    "dataset": "enquiries",
    "dim": "product",
    "measure": [
      "won_value",
      "win_rate"
    ],
    "date": "closed",
    "range": "this_fy"
  }
}

Answers 200

A SavedReport. See SavedReport.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Won by product, this FY", "spec": {"dataset": "enquiries", "dim": "product", "measure": ["won_value", "win_rate"], "date": "closed", "range": "this_fy"}}' \
  "https://manufactiq.co.uk/api/v1/reports/saved/4"
DELETE /api/v1/reports/saved/{report_id} Delete a saved report
Write keyReports tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/reports/saved/4"

Queues

Saved, named filters over a list, and the records in them.

GET /api/v1/queues List queues

Every queue the key's own user may see - shared ones, and their own private ones - over lists their role includes, each with its live count.

Any keyQueues tab

Answers 200

A list of Queue records under items. See Queue.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/queues"
POST /api/v1/queues Save a queue
Write keyQueues tab

Body

FieldTypeWhat it is
name requiredstringIts name, unique in the company.
dataset requiredstringThe list it is over: enquiries, quotes, orders, invoices, tasks, companies, contacts, or records:<tab id>. Fixed once made.
filtersobjectThe list's own arguments, as GET /queues/{queue_id}/records and the list routes take them: status, owner, mine, overdue, q, sort, x_<field>... A list of values where a filter takes several - status, stage, owner, company, a list field of your own - matches any of them. Anything the list does not take is dropped.
columnsarrayThe column keys to show, in order, or null for the list's own.
descriptionstringWhat it is for.
visibilitystringshared (the default) or private to the key's own user. One of: shared, private.

Example body

{
  "name": "Quotes awaiting an answer",
  "dataset": "quotes",
  "filters": {
    "status": [
      "draft",
      "sent"
    ],
    "sort": "date"
  }
}

Answers 201

A Queue. See Queue.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Quotes awaiting an answer", "dataset": "quotes", "filters": {"status": ["draft", "sent"], "sort": "date"}}' \
  "https://manufactiq.co.uk/api/v1/queues"
GET /api/v1/queues/{queue_id} One queue
Any keyQueues tab

Answers 200

A Queue. See Queue.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/queues/2"
GET /api/v1/queues/{queue_id}/records The records in a queue

A page of whatever the queue is over - enquiries, quotations, orders, invoices, tasks, companies, contacts or a tab of your own - each answered as its own route would answer it. 'Mine' in a queue means the key's own user.

Any keyQueues tab

Query

NameTypeWhat it is
sortstringAn ordering the list offers, overriding the queue's.
pageintegerWhich page, counting from 1. Default 1.
per_pageintegerRows per page, 5 to 200. Default 25.

Answers 200

A page of Record records under items, with paging. See Record.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/queues/2/records"
PATCH /api/v1/queues/{queue_id} Change a queue

Its owner, or an administrator for a shared queue. The list it is over cannot change.

Write keyQueues tab

Body

FieldTypeWhat it is
name requiredstringIts name, unique in the company.
dataset requiredstringThe list it is over: enquiries, quotes, orders, invoices, tasks, companies, contacts, or records:<tab id>. Fixed once made.
filtersobjectThe list's own arguments, as GET /queues/{queue_id}/records and the list routes take them: status, owner, mine, overdue, q, sort, x_<field>... A list of values where a filter takes several - status, stage, owner, company, a list field of your own - matches any of them. Anything the list does not take is dropped.
columnsarrayThe column keys to show, in order, or null for the list's own.
descriptionstringWhat it is for.
visibilitystringshared (the default) or private to the key's own user. One of: shared, private.

Example body

{
  "name": "Quotes awaiting an answer",
  "dataset": "quotes",
  "filters": {
    "status": [
      "draft",
      "sent"
    ],
    "sort": "date"
  }
}

Answers 200

A Queue. See Queue.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Quotes awaiting an answer", "dataset": "quotes", "filters": {"status": ["draft", "sent"], "sort": "date"}}' \
  "https://manufactiq.co.uk/api/v1/queues/2"
DELETE /api/v1/queues/{queue_id} Delete a queue
Write keyQueues tab

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/queues/2"

Captured email

The correspondence filed against a record.

GET /api/v1/emails Captured emails on a record

One of the record arguments is needed. For an enquiry, quotation, order or invoice the answer is the whole job's correspondence, as the pages show it. Messages a colleague captured privately are left out; the record must be on a tab in the key's role.

Any key

Query

NameTypeWhat it is
companyintegerFiled against a company: its id.
contactintegerA contact's id.
enquiryintegerAn enquiry's id - which answers for the whole job.
quoteintegerA quotation's id.
orderintegerAn order's id.
invoiceintegerAn invoice's id.
limitintegerAt most so many, newest first; 100 if left out.

Answers 200

A list of Email records under items. See Email.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/emails"
GET /api/v1/emails/review Captured email waiting for a decision

Two lists. Held: quarantined on arrival, waiting for somebody to say whether it belongs on the record at all (release or discard). Unfiled: accepted, but the matcher could not say what it is about (file it with POST /emails/{email_id}/file-against). An administrator sees everybody's held mail; anybody else their own.

Any key

Query

NameTypeWhat it is
pageintegerWhich page of held messages, counting from 1.
per_pageintegerHeld messages per page; 25 if left out.

Answers 200

A ReviewQueue. See ReviewQueue.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/emails/review"
POST /api/v1/emails/review/{ingest_id}/release Let a held message through

It goes back into the queue and is filed within a few minutes by the same path as an accepted message - the privacy rules and the matcher included.

Write key

Answers 200

A Decided. See Decided.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/emails/review/77/release"
POST /api/v1/emails/review/{ingest_id}/discard Refuse a held message

Nothing from it is filed. What arrived is kept, so a message binned in error can be recovered by ManufactIQ.

Write key

Answers 200

A Decided. See Decided.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/emails/review/77/discard"
GET /api/v1/emails/{email_id} One captured email

With its plain-text body (quoted history trimmed), who was on it, what was attached, and where its files may be saved (save_to). A colleague's private message answers 404.

Any key

Answers 200

A Email. See Email.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/emails/310"
GET /api/v1/emails/{email_id}/files/{attachment_id} Download an email's attachment

Always as an attachment, never inline: these bytes came from outside.

Any key

Answers 200

Not JSON: the file's own type.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -o download \
  "https://manufactiq.co.uk/api/v1/emails/310/files/61"
POST /api/v1/emails/{email_id}/file-against File a message against a record by hand

A person's word outranks any rule, so it is recorded with full confidence. Send none of the three to take the message off every record.

Write key

Body

FieldTypeWhat it is
company_idintegerThe company it is about.
contact_idintegerThe contact.
enquiry_idintegerThe enquiry - which stands for the whole job.

Example body

{
  "enquiry_id": 7
}

Answers 200

A Email. See Email.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enquiry_id": 7}' \
  "https://manufactiq.co.uk/api/v1/emails/310/file-against"
POST /api/v1/emails/{email_id}/visibility Share a message, or keep it to yourself

Only the person whose capture address took the message may decide (403 otherwise): a colleague cannot hide a shared message, and an administrator cannot unhide a private one.

Write key

Body

FieldTypeWhat it is
visibility requiredstringshared or private. One of: shared, private.

Example body

{
  "visibility": "..."
}

Answers 200

A Email. See Email.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"visibility": "..."}' \
  "https://manufactiq.co.uk/api/v1/emails/310/visibility"
POST /api/v1/emails/{email_id}/documents Save an email's attachments to a record's Documents

Only what is named, only on request: nothing about capturing an email puts its files in Documents. The upload rules apply again, a file already there (same bytes) is not saved twice, and each refusal is named. 422 when nothing could be saved.

Write key

Body

FieldTypeWhat it is
attachment_ids requiredarrayWhich attachments, by id from the email's attachments.
target requiredstringWhere: a key from the email's save_to list, such as enquiry_id:7.

Example body

{
  "attachment_ids": [
    61
  ],
  "target": "enquiry_id:7"
}

Answers 200

A SavedFiles. See SavedFiles.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"attachment_ids": [61], "target": "enquiry_id:7"}' \
  "https://manufactiq.co.uk/api/v1/emails/310/documents"
GET /api/v1/me/capture-address The key's own user's capture address

The address to CC so that a message is filed, whether capture is on, paused or withdrawn, what new messages default to, and how many are held.

Any key

Answers 200

A CaptureAddress. See CaptureAddress.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/me/capture-address"
POST /api/v1/me/capture-address Switch the key's own user's capture on or off

Only ever the key's own user's: there is no user id to send. 409 when the company has no capture mailbox for addresses to be issued on.

Write key

Body

FieldTypeWhat it is
action requiredstringenable (a first address), pause, resume, rotate (a new address; the old one stops), revoke (withdraw it) or visibility. One of: enable, pause, resume, rotate, revoke, visibility.
default_visibilitystringWith visibility: shared (the default) or private. One of: shared, private.

Example body

{
  "action": "..."
}

Answers 200

A CaptureAddress. See CaptureAddress.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "..."}' \
  "https://manufactiq.co.uk/api/v1/me/capture-address"

Automations

What the company has set up, whether it is on, and what it did.

GET /api/v1/automations List automations

Every automation, switched-on ones first, each with what it does in a line, its definition, and what, if anything, stops it being switched on.

Any keyAdministrator

Answers 200

A list of Automation records under items. See Automation.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/automations"
GET /api/v1/automations/runs What automations did lately

The log across every automation: the record, the cause, the outcome and what each step did.

Any keyAdministrator

Query

NameTypeWhat it is
limitintegerAt most so many, newest first; 50 if left out.

Answers 200

A list of AutomationRun records under items. See AutomationRun.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/automations/runs"
GET /api/v1/automations/starters Ready-made automations, and the tabs

What POST /automations can start from: the ready-made automations this company can use, each with its key, and every tab an automation may watch, with the events it can be watched for.

Any keyAdministrator

Answers 200

A AutomationStarters. See AutomationStarters.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/automations/starters"
GET /api/v1/automations/vocabulary/{entity} What an automation on a tab can watch, test and do

For building: the events, the fields a condition may test (by path - a linked record's fields are company.name, enquiry.stage and so on), the comparisons each kind of field takes, the fields a date can wait for, the kinds of step the tab allows, and the targets a step may act on.

Any keyAdministrator

Answers 200

A AutomationVocabulary. See AutomationVocabulary.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/automations/vocabulary/enquiry"
GET /api/v1/automations/{automation_id} One automation

With its definition, its three cards in words, and its own recent runs under runs.

Any keyAdministrator

Answers 200

A Automation. See Automation.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/automations/1"
POST /api/v1/automations Make an automation

Made switched off. Fill in its cards with PUT /automations/{automation_id}/when, PUT /automations/{automation_id}/conditions and PUT /automations/{automation_id}/steps, try it with POST /automations/{automation_id}/test, then switch it on.

Write keyAdministratorAutomations on the plan

Body

FieldTypeWhat it is
namestringIts name; a sensible one is made up if left out.
entitystringFor a blank start: the tab it watches, a tab key from GET /automations/starters.
startstringInstead of entity: a ready-made automation's key, from the same list.

Example body

{
  "name": "Chase quiet quotations",
  "entity": "quote"
}

Answers 201

A Automation. See Automation.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Chase quiet quotations", "entity": "quote"}' \
  "https://manufactiq.co.uk/api/v1/automations"
PATCH /api/v1/automations/{automation_id} Rename an automation
Write keyAdministratorAutomations on the plan

Body

FieldTypeWhat it is
name requiredstringThe new name.

Example body

{
  "name": "..."
}

Answers 200

A Automation. See Automation.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "..."}' \
  "https://manufactiq.co.uk/api/v1/automations/1"
PUT /api/v1/automations/{automation_id}/when The When card

Send the whole card, as the page does; what is left out falls back to the tab's first choice.

Write keyAdministratorAutomations on the plan

Body

FieldTypeWhat it is
entitystringThe tab it watches. Changing it takes away conditions and steps that belonged to the old tab; the answer's notes say so.
eventstringcreated, updated, archived or date - whichever the tab allows.
fieldstringFor updated: the field whose change sets it off (any field to leave it as 'anything changes'). For date: the date field it waits for.
tostringFor updated on a choice, stage, user or yes/no field: only when it changes to this value.
whenstringFor date: before, on or after. One of: before, on, after.
daysintegerFor date: how many days before or after.

Example body

{
  "event": "updated"
}

Answers 200

A Automation. See Automation.

Example call

curl \
  -X PUT \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"event": "updated"}' \
  "https://manufactiq.co.uk/api/v1/automations/1/when"
PUT /api/v1/automations/{automation_id}/conditions The Only if card

A condition on a field the tab has not got comes out; a comparison the field cannot take becomes the first it can. The answer's problems say what is still unfinished.

Write keyAdministratorAutomations on the plan

Body

FieldTypeWhat it is
matchstringall (every condition must hold) or any. One of: all, any.
conditions requiredarrayThe whole list, in order: each {field, op, value}. field is a path and op a comparison key from GET /automations/vocabulary/{entity}; value is left out for comparisons that take none.

Example body

{
  "conditions": []
}

Answers 200

A Automation. See Automation.

Example call

curl \
  -X PUT \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"conditions": []}' \
  "https://manufactiq.co.uk/api/v1/automations/1/conditions"
PUT /api/v1/automations/{automation_id}/steps The Then card

The keys by kind: set_field: target (self, or a target key from the vocabulary), field, mode (value, today, copy, owner, changer or clear), value, source (the field copied, for copy), days (added, for today). move_stage: target, stage (a stage id). create_task: title, details, assignee (owner, changer, user or none), user (a user id), due_days, priority. create_record: module (one of the company's tab keys), values ({field: {mode, value, source, days}}). add_note: kind (an activity type), subject, body. email_user: owner (true/false), changer (true/false), user (a user id), subject, message. email_customer: to (contact or company), subject, message. teams: message. A step of a kind the tab cannot do is refused (422) with the kinds it can.

Write keyAdministratorAutomations on the plan

Body

FieldTypeWhat it is
steps requiredarrayThe whole list, in order. Each is an object with type - a step kind the vocabulary lists for the tab - and that kind's own keys. Keep a step's id to keep its identity across saves.

Example body

{
  "steps": [
    {
      "type": "create_task",
      "title": "Chase the quotation",
      "assignee": "owner",
      "due_days": "2",
      "priority": "normal"
    }
  ]
}

Answers 200

A Automation. See Automation.

Example call

curl \
  -X PUT \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"steps": [{"type": "create_task", "title": "Chase the quotation", "assignee": "owner", "due_days": "2", "priority": "normal"}]}' \
  "https://manufactiq.co.uk/api/v1/automations/1/steps"
POST /api/v1/automations/{automation_id}/switch Switch an automation on or off

On only once it is complete; the answer says what is missing otherwise (422). Switched on, it acts on what happens from now on.

Write keyAdministratorAutomations on the plan

Body

FieldTypeWhat it is
on requiredbooleantrue to switch it on, false to switch it off.

Example body

{
  "on": true
}

Answers 200

A Automation. See Automation.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"on": true}' \
  "https://manufactiq.co.uk/api/v1/automations/1/switch"
POST /api/v1/automations/{automation_id}/test Try an automation on one record

Changes nothing and sends nothing, whatever the plan: each condition with whether it holds for that record, whether the automation would act, and what each step would do.

Write keyAdministrator

Body

FieldTypeWhat it is
record_idintegerThe record to try it on.
referencestringInstead of record_id: a reference or name to look the record up by.

Example body

{
  "record_id": 7
}

Answers 200

A AutomationTest. See AutomationTest.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"record_id": 7}' \
  "https://manufactiq.co.uk/api/v1/automations/1/test"
POST /api/v1/automations/{automation_id}/copy Copy an automation

A copy, switched off, named 'Copy of ...'.

Write keyAdministratorAutomations on the plan

Answers 201

A Automation. See Automation.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/automations/1/copy"
DELETE /api/v1/automations/{automation_id} Delete an automation

Gone, with its log. What it already did stays done.

Write keyAdministrator

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/automations/1"

One box across everything.

Audit trail

Who changed which record, and to what.

GET /api/v1/audit The audit trail

With entity and record_id, one record's history - for a kind in the key's role. Without a record, the whole company's trail, newest first: administrators only.

Any key

Query

NameTypeWhat it is
entitystringA kind of record: company, contact, enquiry, quote, order, invoice, product, task, api_key or tenant_settings.
record_idintegerOne record of that kind: its history.
limitintegerAt most so many, newest first; 100 if left out, 500 at most.

Answers 200

A list of AuditEntry records under items. See AuditEntry.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/audit"

Reference data

People, roles, pipelines, sources, categories, fields, tabs and settings.

GET /api/v1/users The company's people

Everybody at the company, active ones first: the ids that owner and assignee fields take. Email addresses are answered only to an administrator's key.

Any key

Query

NameTypeWhat it is
inactivebooleantrue to include disabled accounts.

Answers 200

A list of User records under items. See User.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/users"
GET /api/v1/roles The roles people hold

The two built-in roles and the company's own, each with the tab keys it includes. A built-in role has no id.

Any key

Answers 200

A list of Role records under items. See Role.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/roles"
GET /api/v1/pipelines The pipelines and their stages

Every route of every kind the key's role includes, default first, with its stages in order - the stage ids the stage routes take, and what each stands for - and its rules.

Any key

Query

NameTypeWhat it is
entitystringenquiry, quote, order or invoice; all four if left out. One of: enquiry, quote, order, invoice.

Answers 200

A list of Pipeline records under items. See Pipeline.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/pipelines"
GET /api/v1/pipelines/{pipeline_id} One pipeline
Any key

Answers 200

A Pipeline. See Pipeline.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/pipelines/1"
GET /api/v1/sources The enquiry sources

Where enquiries come from, as Administration lists them, retired ones included and marked.

Any key

Answers 200

A list of Source records under items. See Source.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/sources"
GET /api/v1/product-categories The product categories

What an enquiry can be filed under: the categories that ship and the ones on the price book, grouped as the form groups them, and the default.

Any key

Answers 200

A ProductCategories. See ProductCategories.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/product-categories"
GET /api/v1/fields The extra fields on each tab

The fields the company added to the tabs that ship (Administration > Extra fields), by tab, for the tabs in the key's role: what a record's 'fields' object may carry, and what the x_<field> list filters take.

Any key

Query

NameTypeWhat it is
entitystringOne tab: company, contact, enquiry, quote, order, invoice, product or task. One of: company, contact, enquiry, quote, order, invoice, product, task.

Answers 200

A list of FieldDefinition records under items. See FieldDefinition.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/fields"
GET /api/v1/tabs The company's own tabs

Every tab the company designed itself that the key's role includes, with its fields - and its slug, which the records routes take.

Any key

Answers 200

A list of Tab records under items. See Tab.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs"
GET /api/v1/tabs/{slug} One of the company's own tabs
Any key

Answers 200

A Tab. See Tab.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports"
GET /api/v1/vocabulary The fixed vocabularies

Every fixed list of values a route takes or answers, with what each is called - statuses, types, outcomes - and the company's own words for its record types.

Any key

Answers 200

A Vocabulary. See Vocabulary.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/vocabulary"
GET /api/v1/settings The company's settings

What the company has set up: its letterhead, its currency and rates, its wording and workshop steps, its reference format, the defaults a new document starts with, what its paperwork carries, its plan's allowances and which features are in force. The bank details are answered only to a key whose role includes invoices.

Any key

Answers 200

A Settings. See Settings.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings"

Users and roles

Who may sign in, and which tabs each kind of person gets. Administrators only.

GET /api/v1/users/{user_id} One user

With their role, whether they have chosen a password yet and whether two-step sign-in is on.

Any keyAdministrator

Answers 200

A User. See User.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/users/3"
POST /api/v1/users Add a user

What Administration > Users > Add someone does: the address is checked across the platform, the plan's seats are counted, and the owner of the account is emailed a link to choose their own password - which lasts a few days and leads on to two-step sign-in. The answer says whether the invitation went.

Write keyAdministrator

Body

FieldTypeWhat it is
full_name requiredstringTheir name.
email requiredstringTheir email address: the login, unique across the platform.
rolestringtenant_admin for an administrator, standard for a Standard user, or role:<id> for one of the company's own roles (GET /roles).
is_activebooleanWhether they may sign in. A disabled account keeps its records.
send_invitationbooleanEmail them a link to choose their password (the default). Only an active account is invited.

Example body

{
  "full_name": "Priya Shah",
  "email": "priya@example.co.uk",
  "role": "standard"
}

Answers 201

A User. See User.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"full_name": "Priya Shah", "email": "priya@example.co.uk", "role": "standard"}' \
  "https://manufactiq.co.uk/api/v1/users"
PATCH /api/v1/users/{user_id} Change a user

Send only the fields to change. The company's last active administrator cannot be demoted or disabled (422); bringing a disabled account back takes a seat. Enabling an account that has not chosen a password yet, or correcting its address, sends the invitation again.

Write keyAdministrator

Body

FieldTypeWhat it is
full_name requiredstringTheir name.
email requiredstringTheir email address: the login, unique across the platform.
rolestringtenant_admin for an administrator, standard for a Standard user, or role:<id> for one of the company's own roles (GET /roles).
is_activebooleanWhether they may sign in. A disabled account keeps its records.

Example body

{
  "full_name": "Priya Shah",
  "email": "priya@example.co.uk",
  "role": "standard"
}

Answers 200

A User. See User.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"full_name": "Priya Shah", "email": "priya@example.co.uk", "role": "standard"}' \
  "https://manufactiq.co.uk/api/v1/users/3"
POST /api/v1/users/{user_id}/two-factor/reset Take two-step sign-in off a user's account

The lost phone: their password alone signs them in until they set it up again from their own account page. Logged, because it weakens an account.

Write keyAdministrator

Answers 200

A User. See User.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/users/3/two-factor/reset"
GET /api/v1/roles/{role_id} One of the company's own roles

Its tabs, what they are called, and the people who hold it.

Any keyAdministrator

Answers 200

A Role. See Role.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/roles/2"
POST /api/v1/roles Make a role

A role is a set of tabs for Standard users. Give the tabs, or a start to copy; a name left out takes the start's own, made unique.

Write keyAdministrator

Body

FieldTypeWhat it is
namestringThe role's name; unique, and not Administrator or Standard.
tabsarrayThe tab keys the role includes (GET /roles answers every key, and module:<id> for one of the company's own tabs). The whole set, each time.
startstringWhere it starts when tabs are not given: sales, workshop, accounts, everything, blank (the default) or copy:<role id>.

Example body

{
  "name": "Workshop",
  "tabs": [
    "pipeline",
    "orders",
    "tasks",
    "documents"
  ],
  "start": "workshop"
}

Answers 201

A Role. See Role.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Workshop", "tabs": ["pipeline", "orders", "tasks", "documents"], "start": "workshop"}' \
  "https://manufactiq.co.uk/api/v1/roles"
PATCH /api/v1/roles/{role_id} Rename a role or change its tabs

tabs replaces the whole set, as the page saves it; a change applies from each holder's next page.

Write keyAdministrator

Body

FieldTypeWhat it is
namestringThe role's name; unique, and not Administrator or Standard.
tabsarrayThe tab keys the role includes (GET /roles answers every key, and module:<id> for one of the company's own tabs). The whole set, each time.

Example body

{
  "name": "Workshop",
  "tabs": [
    "pipeline",
    "orders",
    "tasks",
    "documents"
  ]
}

Answers 200

A Role. See Role.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Workshop", "tabs": ["pipeline", "orders", "tasks", "documents"]}' \
  "https://manufactiq.co.uk/api/v1/roles/2"
DELETE /api/v1/roles/{role_id} Delete a role

Anybody holding it is moved in the same transaction.

Write keyAdministrator

Query

NameTypeWhat it is
move_tostringWhere its people go: standard (the default) or role:<id>.

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/roles/2"
POST /api/v1/roles/{role_id}/people Give a role to people

To take a role away from somebody, change their role with PATCH /users/{user_id}.

Write keyAdministrator

Body

FieldTypeWhat it is
user_ids requiredarrayThe user ids to give it to. Standard users only: an administrator already sees every tab.

Example body

{
  "user_ids": [
    8,
    9
  ]
}

Answers 200

A Role. See Role.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_ids": [8, 9]}' \
  "https://manufactiq.co.uk/api/v1/roles/2/people"

Pipeline builder

Routes, their stages and the rules that move a record along. Administrators only.

POST /api/v1/pipelines Add a pipeline

Empty, or with another route's stages copied (its rules are not). Add the stages next; a route with none cannot hold a record.

Write keyAdministrator

Body

FieldTypeWhat it is
entity requiredstringWhat it routes: enquiry, quote, order or invoice. One of: enquiry, quote, order, invoice.
namestringIts name, unique among the routes of its kind.
descriptionstringWhat it is for.
sort_orderintegerIts position among the routes of its kind.
is_defaultbooleanWhere a new record of its kind starts. Making one the default takes the flag off the other.
copy_stages_fromintegerAnother pipeline of the same kind whose stages to copy.

Example body

{
  "entity": "enquiry",
  "name": "Public sector",
  "sort_order": 10
}

Answers 201

A Pipeline. See Pipeline.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity": "enquiry", "name": "Public sector", "sort_order": 10}' \
  "https://manufactiq.co.uk/api/v1/pipelines"
PATCH /api/v1/pipelines/{pipeline_id} Change a pipeline

Send only the fields to change.

Write keyAdministrator

Body

FieldTypeWhat it is
namestringIts name, unique among the routes of its kind.
descriptionstringWhat it is for.
sort_orderintegerIts position among the routes of its kind.
is_defaultbooleanWhere a new record of its kind starts. Making one the default takes the flag off the other.
is_activebooleanOffered on forms and boards. The default route cannot be switched off.

Example body

{
  "name": "Public sector",
  "sort_order": 10
}

Answers 200

A Pipeline. See Pipeline.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Public sector", "sort_order": 10}' \
  "https://manufactiq.co.uk/api/v1/pipelines/1"
DELETE /api/v1/pipelines/{pipeline_id} Delete a pipeline

Refused (409) while it is the default of its kind or holds records.

Write keyAdministrator

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/pipelines/1"
POST /api/v1/pipelines/{pipeline_id}/stages Add a stage

On an enquiry pipeline a stage has an outcome and typical odds; on the others it stands for one of the record's fixed statuses, or for none.

Write keyAdministrator

Body

FieldTypeWhat it is
name requiredstringThe stage's name, unique on its pipeline.
sort_orderintegerIts position, 0 to 255.
outcomestringEnquiry pipelines only: open (the default), won or lost. One of: open, won, lost.
default_probabilityintegerEnquiry pipelines only: the odds a typical enquiry has here, 0 to 100.
maps_tostringQuote, order and invoice pipelines: the fixed status the stage stands for (GET /vocabulary lists them), or left out for a stage that stands for no status change - a step a record keeps its status on.

Example body

{
  "name": "Survey booked",
  "sort_order": 20,
  "default_probability": 40,
  "maps_to": "sent"
}

Answers 201

A Stage. See Stage.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Survey booked", "sort_order": 20, "default_probability": 40, "maps_to": "sent"}' \
  "https://manufactiq.co.uk/api/v1/pipelines/1/stages"
PATCH /api/v1/pipelines/{pipeline_id}/stages/{stage_id} Change a stage

Send only the fields to change. Changing an enquiry stage's typical odds carries every enquiry still at the old figure with it; the answer says how many.

Write keyAdministrator

Body

FieldTypeWhat it is
name requiredstringThe stage's name, unique on its pipeline.
sort_orderintegerIts position, 0 to 255.
outcomestringEnquiry pipelines only: open (the default), won or lost. One of: open, won, lost.
default_probabilityintegerEnquiry pipelines only: the odds a typical enquiry has here, 0 to 100.
maps_tostringQuote, order and invoice pipelines: the fixed status the stage stands for (GET /vocabulary lists them), or left out for a stage that stands for no status change - a step a record keeps its status on.
is_activebooleanStill offered. A stage with records on it cannot be switched off.

Example body

{
  "name": "Survey booked",
  "sort_order": 20,
  "default_probability": 40,
  "maps_to": "sent"
}

Answers 200

A Stage. See Stage.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Survey booked", "sort_order": 20, "default_probability": 40, "maps_to": "sent"}' \
  "https://manufactiq.co.uk/api/v1/pipelines/1/stages/12"
DELETE /api/v1/pipelines/{pipeline_id}/stages/{stage_id} Delete a stage

Refused (409) while records are on it, or while it is the last stage of its meaning the pipeline needs.

Write keyAdministrator

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/pipelines/1/stages/12"
POST /api/v1/pipelines/{pipeline_id}/rules Add or replace a rule

One rule per event per pipeline: adding a rule for an event that already has one replaces it.

Write keyAdministrator

Body

FieldTypeWhat it is
trigger_key requiredstringThe event: one of the pipeline's triggers (GET /pipelines/{pipeline_id} answers them for its kind).
target_stage_id requiredintegerThe stage to move the record to, on this pipeline.
after_daysintegerFor an idle rule: after this many days with nothing happening.

Example body

{
  "trigger_key": "quote_sent",
  "target_stage_id": 12,
  "after_days": 14
}

Answers 200

A Pipeline. See Pipeline.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"trigger_key": "quote_sent", "target_stage_id": 12, "after_days": 14}' \
  "https://manufactiq.co.uk/api/v1/pipelines/1/rules"
DELETE /api/v1/pipelines/{pipeline_id}/rules/{rule_id} Remove a rule
Write keyAdministrator

Answers 200

A Pipeline. See Pipeline.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/pipelines/1/rules/1"

Sources, fields and tabs

Enquiry sources, the extra fields on the tabs that ship, and the tabs the company designs itself. Administrators only.

POST /api/v1/sources Add an enquiry source
Write keyAdministrator

Body

FieldTypeWhat it is
name requiredstringThe source's name.
sort_orderintegerIts position, 0 to 255.

Example body

{
  "name": "Trade show"
}

Answers 201

A Source. See Source.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Trade show"}' \
  "https://manufactiq.co.uk/api/v1/sources"
PATCH /api/v1/sources/{source_id} Change an enquiry source

Send only the fields to change.

Write keyAdministrator

Body

FieldTypeWhat it is
name requiredstringThe source's name.
sort_orderintegerIts position, 0 to 255.
is_activebooleanStill offered on the form. A retired source keeps its enquiries.

Example body

{
  "name": "Trade show"
}

Answers 200

A Source. See Source.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Trade show"}' \
  "https://manufactiq.co.uk/api/v1/sources/2"
POST /api/v1/fields/{entity} Add an extra field to a tab

entity is company, contact, enquiry, quote, order, invoice, product or task. The field then appears on the form and under 'fields' in every answer; nothing that ships can be removed.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Body

FieldTypeWhat it is
label requiredstringWhat the form calls it.
field_type requiredstringtext, textarea, number, money, date, datetime, select or checkbox (GET /vocabulary, extra_field_types).
optionsarrayFor a select: the choices, as a list or one per line.
hintstringThe help under the box.
is_requiredbooleanMust be filled in.
sort_orderintegerIts position.
is_activebooleanShown on the form. Off keeps the values already recorded.

Example body

{
  "label": "Customer number",
  "field_type": "text",
  "options": [
    "Bronze",
    "Silver",
    "Gold"
  ]
}

Answers 201

A FieldDefinition. See FieldDefinition.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label": "Customer number", "field_type": "text", "options": ["Bronze", "Silver", "Gold"]}' \
  "https://manufactiq.co.uk/api/v1/fields/enquiry"
PATCH /api/v1/fields/{entity}/{field_id} Change an extra field

Send only the fields to change.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Body

FieldTypeWhat it is
label requiredstringWhat the form calls it.
field_type requiredstringtext, textarea, number, money, date, datetime, select or checkbox (GET /vocabulary, extra_field_types).
optionsarrayFor a select: the choices, as a list or one per line.
hintstringThe help under the box.
is_requiredbooleanMust be filled in.
sort_orderintegerIts position.
is_activebooleanShown on the form. Off keeps the values already recorded.

Example body

{
  "label": "Customer number",
  "field_type": "text",
  "options": [
    "Bronze",
    "Silver",
    "Gold"
  ]
}

Answers 200

A FieldDefinition. See FieldDefinition.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label": "Customer number", "field_type": "text", "options": ["Bronze", "Silver", "Gold"]}' \
  "https://manufactiq.co.uk/api/v1/fields/enquiry/9"
DELETE /api/v1/fields/{entity}/{field_id} Remove an extra field

The definition goes; values already recorded stay on the records. Switching it off (PATCH is_active false) is the reversible option.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/fields/enquiry/9"
GET /api/v1/tab-templates The ready-made tabs

Tabs ManufactIQ offers every company - an NCR log, site surveys - to copy and make their own with POST /tabs/install/{template_id}.

Any keyAdministrator

Answers 200

A list of TabTemplate records under items. See TabTemplate.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tab-templates"
POST /api/v1/tabs Add a tab of the company's own

A new record type with a tab in the menu. Add its fields next: a tab is usable once it has a title field. Nothing here changes the database schema.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Body

FieldTypeWhat it is
name requiredstringThe tab's name.
item_namestringWhat one record is called; 'record' if left out.
reference_prefixstringLetters, numbers and dashes; numbers its records, like SS-0001.
descriptionstringWhat it is for.
sort_orderintegerIts position in the menu.

Example body

{
  "name": "Site surveys",
  "item_name": "survey"
}

Answers 201

A Tab. See Tab.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Site surveys", "item_name": "survey"}' \
  "https://manufactiq.co.uk/api/v1/tabs"
POST /api/v1/tabs/install/{template_id} Install a ready-made tab

The template is copied, so the company owns its version and can change it.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Answers 201

A Tab. See Tab.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/install/1"
PATCH /api/v1/tabs/{slug} Change a tab

Send only the fields to change. The slug never changes: it is in the address of every record.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Body

FieldTypeWhat it is
name requiredstringThe tab's name.
item_namestringWhat one record is called; 'record' if left out.
reference_prefixstringLetters, numbers and dashes; numbers its records, like SS-0001.
descriptionstringWhat it is for.
sort_orderintegerIts position in the menu.
is_activebooleanShown in the menu.

Example body

{
  "name": "Site surveys",
  "item_name": "survey"
}

Answers 200

A Tab. See Tab.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Site surveys", "item_name": "survey"}' \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports"
DELETE /api/v1/tabs/{slug} Delete a tab and every record on it

Switching it off (PATCH is_active false) keeps the records.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Query

NameTypeWhat it is
confirm_name requiredstringThe tab's exact name, typed again: the only guard on something that cannot be undone.

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports"
POST /api/v1/tabs/{slug}/fields Add a field to a tab

The first field that can be a title becomes one.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Body

FieldTypeWhat it is
label requiredstringWhat the form calls it.
field_type requiredstringOne of GET /vocabulary's field_types: text, textarea, number, money, date, datetime, select, checkbox, or a link to a company, contact, enquiry, quote, order, invoice or user - one of each link per tab, and only into a tab the company has switched on.
optionsarrayFor a select: the choices, as a list or one per line.
hintstringThe help under the box.
is_requiredbooleanMust be filled in.
is_titlebooleanUsed as the record's title. One per tab; the first text or select field becomes it unless said otherwise.
show_in_listbooleanA column on the tab's list.

Example body

{
  "label": "Site address",
  "field_type": "text"
}

Answers 201

A Tab. See Tab.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label": "Site address", "field_type": "text"}' \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/fields"
PATCH /api/v1/tabs/{slug}/fields/{field_id} Change a tab's field

Send only the fields to change. The title field cannot be switched off or demoted until another is the title.

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Body

FieldTypeWhat it is
label requiredstringWhat the form calls it.
field_type requiredstringOne of GET /vocabulary's field_types: text, textarea, number, money, date, datetime, select, checkbox, or a link to a company, contact, enquiry, quote, order, invoice or user - one of each link per tab, and only into a tab the company has switched on.
optionsarrayFor a select: the choices, as a list or one per line.
hintstringThe help under the box.
is_requiredbooleanMust be filled in.
is_titlebooleanUsed as the record's title. One per tab; the first text or select field becomes it unless said otherwise.
show_in_listbooleanA column on the tab's list.
sort_orderintegerIts position.
is_activebooleanOn the form. Off keeps what was recorded.

Example body

{
  "label": "Site address",
  "field_type": "text"
}

Answers 200

A Tab. See Tab.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label": "Site address", "field_type": "text"}' \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/fields/9"
DELETE /api/v1/tabs/{slug}/fields/{field_id} Remove a tab's field

Values already recorded are kept and reappear if the field comes back. The title field cannot be removed (409).

Write keyAdministratorCompany-defined tabs and extra fields on the plan

Answers 200

A Deleted. See Deleted.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/tabs/ncr-reports/fields/9"

Settings

The company's details, wording, switched-on parts, workshop steps, numbering, defaults, paperwork, colours and logo, email capture and the website form. Administrators only.

GET /api/v1/settings/company The company's details

What Administration > Company details holds. The Teams webhook is a credential and is never answered, only whether one is set.

Any keyAdministrator

Answers 200

A CompanySettings. See CompanySettings.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/company"
PATCH /api/v1/settings/company Change the company's details

Send only the fields to change; the same checks as the page.

Write keyAdministrator

Body

FieldTypeWhat it is
trading_namestringThe name on the paperwork.
addressstringThe address on the paperwork.
phonestringTelephone.
emailstringEmail address.
websitestringWebsite.
vat_numberstringVAT number.
company_numberstringCompany number.
currencystringThe base currency, ISO code.
currency_symbolstringIts symbol.
default_vat_ratenumberThe VAT rate a new document starts with, per cent.
financial_year_start_monthinteger1 to 12.
timezonestringAn IANA time zone name; GET /settings answers the company's.
date_formatstringdmy, mdy or iso. One of: dmy, mdy, iso.
quote_validity_daysintegerHow long a quotation is valid, 1 to 365.
quote_quiet_monthsintegerA sent quotation nothing has happened on for this many months, 0 to 24, is marked expired at the next sign-in; 0 never.
quote_footerstringPrinted under every quotation.
order_footerstringPrinted under every order.
teams_webhook_urlstringThe Microsoft Teams webhook alerts go to; empty for none. Never answered back.
teams_eventsarrayWhich events are posted to Teams, by key (GET /settings).
fx_ratesobjectThe company's own exchange rates: ISO code to units per one of the base currency.

Example body

{
  "currency": "GBP",
  "currency_symbol": "£",
  "default_vat_rate": "20.00",
  "financial_year_start_month": 4,
  "quote_validity_days": 30,
  "quote_quiet_months": 3,
  "fx_rates": {
    "EUR": "1.17",
    "USD": "1.27"
  }
}

Answers 200

A CompanySettings. See CompanySettings.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"currency": "GBP", "currency_symbol": "£", "default_vat_rate": "20.00", "financial_year_start_month": 4, "quote_validity_days": 30, "quote_quiet_months": 3, "fx_rates": {"EUR": "1.17", "USD": "1.27"}}' \
  "https://manufactiq.co.uk/api/v1/settings/company"
PATCH /api/v1/settings/wording What the company calls things

The menu and every page use the words from the next request on.

Write keyAdministrator

Body

FieldTypeWhat it is
enquiryobject{singular, plural} for 'Enquiry'; blank goes back to it.
quoteobject{singular, plural} for 'Quote'; blank goes back to it.
orderobject{singular, plural} for 'Order'; blank goes back to it.
invoiceobject{singular, plural} for 'Invoice'; blank goes back to it.
companyobject{singular, plural} for 'Company'; blank goes back to it.
contactobject{singular, plural} for 'Contact'; blank goes back to it.
productobject{singular, plural} for 'Product'; blank goes back to it.
taskobject{singular, plural} for 'Task'; blank goes back to it.

Answers 200

A Wording. See Wording.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/wording"
PATCH /api/v1/settings/modules Which parts of the CRM are on

Only the parts named are decided; the rest stay as they are.

Write keyAdministrator

Body

FieldTypeWhat it is
pipelinebooleanPipeline board: true or false.
ordersbooleanOrders and the production board: true or false.
invoicesbooleanInvoices: true or false.
calendarbooleanCalendar: true or false.
tasksbooleanTasks: true or false.
activitiesbooleanActivity log: true or false.
contactsbooleanContacts: true or false.
productsbooleanProducts and the price book: true or false.
documentsbooleanDocuments: true or false.
reportsbooleanReports: true or false.

Answers 200

A Modules. See Modules.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/modules"
PATCH /api/v1/settings/order-steps The workshop's steps

The production board and every order use the names from the next request on.

Write keyAdministrator

Body

FieldTypeWhat it is
confirmedobject{label, hidden} for this step. Confirmed and complete cannot be hidden.
drawingsobject{label, hidden} for this step. Confirmed and complete cannot be hidden.
manufacturingobject{label, hidden} for this step. Confirmed and complete cannot be hidden.
readyobject{label, hidden} for this step. Confirmed and complete cannot be hidden.
deliveredobject{label, hidden} for this step. Confirmed and complete cannot be hidden.
installedobject{label, hidden} for this step. Confirmed and complete cannot be hidden.
completeobject{label, hidden} for this step. Confirmed and complete cannot be hidden.

Answers 200

A OrderSteps. See OrderSteps.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/order-steps"
PATCH /api/v1/settings/numbering How jobs are numbered

Numbers already issued keep their shape; the next job takes the new one. Only the parts sent change. The answer carries the number the next job will take.

Write keyAdministrator

Body

FieldTypeWhat it is
prefixstringUp to six letters or digits, or nothing.
suffixstringUp to six letters or digits, or nothing.
digitsintegerHow many digits the number has.
yearstringnone, start or end. One of: none, start, end.
year_digitsinteger4 or 2.
separatorstring-, /, . or nothing.
startintegerThe first number the count gives, 1 to 999,999. A count already past it carries on; no number is issued twice.
revision_startintegerThe revision a job's first quotation takes: 1, or 0 to count from nought. Quotations already raised keep theirs.

Example body

{
  "prefix": "ENQ",
  "digits": 4,
  "start": 60000,
  "revision_start": 0
}

Answers 200

A Numbering. See Numbering.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prefix": "ENQ", "digits": 4, "start": 60000, "revision_start": 0}' \
  "https://manufactiq.co.uk/api/v1/settings/numbering"
PATCH /api/v1/settings/defaults What a new document starts with
Write keyAdministrator

Body

FieldTypeWhat it is
payment_daysintegerDays until an invoice is due, 0 to 365.
payment_termsstringPayment terms, as written.
lead_timestringLead time, as written.
delivery_termsstringDelivery terms.
quote_notesstringNotes a new quotation starts with.
product_categorystringThe category a new enquiry starts on.

Example body

{
  "payment_days": 30
}

Answers 200

A Defaults. See Defaults.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"payment_days": 30}' \
  "https://manufactiq.co.uk/api/v1/settings/defaults"
PATCH /api/v1/settings/documents What the paperwork carries

Send only the fields to change. The bank details print on the next invoice opened.

Write keyAdministrator

Body

FieldTypeWhat it is
bank_namestringOn the invoice.
account_namestringOn the invoice.
sort_codestringOn the invoice.
account_numberstringOn the invoice.
ibanstringOn the invoice.
payment_instructionsstringOn the invoice.
quote_termsstringUnder the quotation.
invoice_termsstringUnder the invoice.
quote_titlestringThe quotation's title.
quote_introstringIts opening text.
quote_footnotestringIts footnote.
quote_closingstringIts closing text.
quote_email_subjectstringThe subject when one is emailed.
quote_email_messagestringThe message above it.
quote_email_signoffstringThe sign-off.
show_codesbooleanPrint product codes.
show_line_discountbooleanPrint line discounts.
show_unitbooleanPrint units.
show_prepared_bybooleanPrint who prepared it.
show_contact_emailbooleanPrint the contact's email.
show_dimsbooleanPrint sizes.
quote_email_linesbooleanPut the lines in the email.
quote_email_pdfbooleanAttach the PDF to the email.
quote_accept_onlinebooleanPut an Accept button in the email, which the customer confirms online; it waits under Quotes > Accepted.
ack_titlestringThe order acknowledgement's title.
ack_introstringIts opening text.
ack_closingstringIts closing text.
ack_termsstringThe terms under it; null keeps the quotation's.
ack_email_subjectstringThe subject when one is emailed.
ack_email_messagestringThe message above it.
ack_email_pdfbooleanAttach the acknowledgement as a PDF.
ack_email_linesbooleanPut the order's lines in the email.

Answers 200

A Documents. See Documents.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/documents"
GET /api/v1/settings/website-form The form on the company's website

Whether the address is on, where the site posts to, who is told, which questions it asks and what the two emails say. The Turnstile secret is never answered.

Any keyAdministrator

Answers 200

A WebsiteForm. See WebsiteForm.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/website-form"
PATCH /api/v1/settings/website-form Change the website form's settings

Send only the fields to change. After changing the questions, paste the form into the website again so it asks the same ones.

Write keyAdministrator

Body

FieldTypeWhat it is
notify_user_idsarrayWho is emailed when an enquiry arrives.
owner_user_idintegerWhose name new web enquiries start in.
redirect_urlstringThe page to show afterwards.
allowed_originstringThe website's domain, for the origin check.
turnstile_secretstringCloudflare Turnstile's secret; empty string clears it.
fieldsobjectWhich questions the form asks: key to off, optional or required.
confirm_emailbooleanEmail the sender that it was received.
confirm_subjectstringThat email's subject.
confirm_messagestringIts message.
progress_emailbooleanEmail the sender when it is approved.
progress_subjectstringThat email's subject.
progress_messagestringIts message.

Answers 200

A WebsiteForm. See WebsiteForm.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/website-form"
POST /api/v1/settings/website-form/key Switch the website form on or off

Off, anything the website posts is refused. The answer carries the address to post to.

Write keyAdministrator

Body

FieldTypeWhat it is
action requiredstringon, rotate (a new address; the old one stops) or off. One of: on, rotate, off.

Example body

{
  "action": "..."
}

Answers 200

A WebsiteForm. See WebsiteForm.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "..."}' \
  "https://manufactiq.co.uk/api/v1/settings/website-form/key"
GET /api/v1/settings/branding The company's colours and logo

With the shades the two colours produce (derived) and whether the plan allows them to be changed.

Any keyAdministrator

Answers 200

A Branding. See Branding.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/branding"
PATCH /api/v1/settings/branding Change the company's colours
Write keyAdministratorOwn colours and logo on the plan

Body

FieldTypeWhat it is
brand_primarystringA hex colour, such as #1F4E79; empty for ManufactIQ's own.
brand_accentstringThe accent, likewise.

Answers 200

A Branding. See Branding.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/branding"
GET /api/v1/settings/email-capture What email capture keeps

The known-contact rule, how long captured mail is kept, which mailbox the company captures through and what is excluded.

Any keyAdministrator

Answers 200

A EmailCapture. See EmailCapture.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/email-capture"
PATCH /api/v1/settings/email-capture Change what email capture keeps

Send only the fields to change.

Write keyAdministrator

Body

FieldTypeWhat it is
require_known_contactbooleanFile a message only when somebody on it is already a contact.
retention_daysintegerKeep captured email for so many days, 1 to 3650.
capture_mailboxstringThe company's own shared mailbox to capture through; empty goes back to the installation's.

Answers 200

A EmailCapture. See EmailCapture.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/email-capture"
POST /api/v1/settings/email-capture/exclusions Exclude an address or domain from capture
Write keyAdministrator

Body

FieldTypeWhat it is
kindstringdomain or address. One of: domain, address.
pattern requiredstringThe domain or address.
notestringWhy.

Example body

{
  "kind": "domain",
  "pattern": "payroll.example.com"
}

Answers 200

A EmailCapture. See EmailCapture.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind": "domain", "pattern": "payroll.example.com"}' \
  "https://manufactiq.co.uk/api/v1/settings/email-capture/exclusions"
DELETE /api/v1/settings/email-capture/exclusions/{exclusion_id} Remove an exclusion
Write keyAdministrator

Answers 200

A EmailCapture. See EmailCapture.

Example call

curl \
  -X DELETE \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/settings/email-capture/exclusions/1"

Accounting

QuickBooks Online, Xero and Sage: where each stands, its choices, invoices sent and voided, and payments checked.

GET /api/v1/books Where the books stand

QuickBooks Online, Xero and Sage: whether each is set up on this installation, on the plan and connected, what it is connected to, the choices in force, when payments were last checked and the latest activity.

Any keyAdministrator

Answers 200

A list of Books records under items. See Books.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/books"
GET /api/v1/books/{provider}/options What the books offer

provider is quickbooks, xero or sage. Read live: the items, accounts and tax codes or rates to choose from - and QuickBooks' sales-form custom fields, for the customer's PO - the VAT rates in use here and the choice in force for each. Needs the connection.

Any keyAdministrator

Answers 200

A BooksOptions. See BooksOptions.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/books/quickbooks/options"
PATCH /api/v1/books/{provider}/settings Choose how invoices land

Each choice is checked against what the books offer right now; a tax code that charges a different rate is refused. Send only what changes; the rest keep their choice.

Write keyAdministrator

Body

FieldTypeWhat it is
default_itemstringQuickBooks: the item for lines with no product (an item id) - and for every line while products_as_items is false.
income_accountstringQuickBooks: the income account (an account id).
item_typestringQuickBooks: NonInventory or Service for products made there.
products_as_itemsbooleanQuickBooks: true (the default) to find each product as an item of the same name, or make it as one; false to make and match nothing, every line going on default_item with its description.
po_fieldstringQuickBooks: the sales-form custom field the customer's PO goes in - its id, 1 to 3, as GET /books/quickbooks/options offers them in custom_fields - or 'none'. Until one is chosen, a field named for a PO is used. The PO goes in the invoice's private note as well.
customer_notestringQuickBooks: the company's own standard note to the customer, put on every invoice sent under the invoice's own notes. 1,000 characters at most; empty to send none.
line_accountstringXero: the account for lines with no product (an account code). Sage: the ledger account for them (a ledger account id).
item_accountstringXero: the account for new products (an account code). Sage: the ledger account for them (a ledger account id).
invoice_statusstringXero: AUTHORISED (approved) or DRAFT. Sage: FINAL or DRAFT.
use_crm_numbersbooleanQuickBooks and Xero: give the books the CRM's invoice numbers. Sage numbers its own and takes the CRM's as the reference.
sync_paymentsbooleanMark invoices paid here when the books record the payment.
taxesobjectVAT rate to the tax code id (QuickBooks), tax rate type (Xero) or tax rate id (Sage), as GET /books/{provider}/options offers them.

Example body

{
  "taxes": {
    "20.00": "OUTPUT2"
  }
}

Answers 200

A Books. See Books.

Example call

curl \
  -X PATCH \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"taxes": {"20.00": "OUTPUT2"}}' \
  "https://manufactiq.co.uk/api/v1/books/quickbooks/settings"
POST /api/v1/books/{provider}/check Check for payments now

Asks the books which of the invoices sent to them are paid, and marks them paid here - what the scheduled job does every ten minutes.

Write keyAdministrator

Answers 200

A PaymentsChecked. See PaymentsChecked.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/books/quickbooks/check"
POST /api/v1/books/{provider}/disconnect Disconnect the books

Invoices already sent stay in the books, and the links to them are kept for if the same company or organisation is connected again.

Write keyAdministrator

Answers 200

A Books. See Books.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/books/quickbooks/disconnect"
POST /api/v1/invoices/{invoice_id}/books/{provider} Send an invoice to the books

What the button on the invoice does: a sent or paid invoice goes to QuickBooks, Xero or Sage as a new invoice there, or its copy is updated after a change while nothing is paid against it. Needs the provider's plan feature.

Write keyInvoices tab

Answers 200

A BooksSent. See BooksSent.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55/books/quickbooks"
POST /api/v1/invoices/{invoice_id}/books/{provider}/void Void an invoice in the books

For an invoice cancelled here: voids its copy in the books, or deletes it while it is still a draft there. Nothing paid against it may exist.

Write keyAdministratorInvoices tab

Answers 200

A BooksSent. See BooksSent.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/invoices/55/books/quickbooks/void"

Imports

Bringing a company's records in from the CRM it used before. Administrators only.

GET /api/v1/imports Imports so far

The recent runs, the one running now if any, and how many records of each kind are linked to the previous CRM.

Any keyAdministratorImports on the plan

Answers 200

A ImportRuns. See ImportRuns.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/imports"
GET /api/v1/imports/{run_id} One import run

Its status, totals and the tail of its log. Poll it while running is true.

Any keyAdministratorImports on the plan

Answers 200

A ImportRun. See ImportRun.

Example call

curl \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/imports/1"
POST /api/v1/imports/test Test the previous CRM's key

One cheap call: whose account it is and what it holds. Nothing is imported.

Write keyAdministratorImports on the plan

Body

FieldTypeWhat it is
api_key requiredstringThe previous CRM's API key. Used for the call and forgotten.
podstringThe previous CRM's region: na1, eu1, au1 or ca1. One of: na1, eu1, au1, ca1.

Example body

{
  "api_key": "...",
  "pod": "eu1"
}

Answers 200

A ImportTest. See ImportTest.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key": "...", "pod": "eu1"}' \
  "https://manufactiq.co.uk/api/v1/imports/test"
POST /api/v1/imports Start an import

Runs in the background; the answer is the run to follow. One at a time: a second is refused (409) while one is running.

Write keyAdministratorImports on the plan

Body

FieldTypeWhat it is
api_key requiredstringThe previous CRM's API key. Used for the call and forgotten.
podstringThe previous CRM's region: na1, eu1, au1 or ca1. One of: na1, eu1, au1, ca1.
dry_runbooleanRead everything and report, write nothing.
include_historybooleanBring notes, tasks and the rest of the history too.
include_documentsbooleanCopy the files attached to organisations, contacts, opportunities and projects. A request per record and one per file; a run that reaches the day's allowance carries on when it is run again.

Example body

{
  "api_key": "...",
  "pod": "eu1"
}

Answers 202

A ImportRun. See ImportRun.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key": "...", "pod": "eu1"}' \
  "https://manufactiq.co.uk/api/v1/imports"
POST /api/v1/imports/forget Forget which records were imported

Deletes no records; the next import treats everything as new.

Write keyAdministratorImports on the plan

Answers 200

A Forgotten. See Forgotten.

Example call

curl \
  -X POST \
  -H "Authorization: Bearer $MANUFACTIQ_KEY" \
  "https://manufactiq.co.uk/api/v1/imports/forget"

What a record looks like

Every record answers the fields below, plus these two:

FieldTypeWhat it is
web_urlstringThe record's own page in the CRM.
fieldsobjectThe record's extra fields, by name, where the tab takes them.
RecordProductRevision14 fields
FieldTypeWhat it is
labelstringIts letter: A, B, C ...
currentbooleanWhether it is the product's current revision.
notestringWhat changed from the revision before.
descriptionstringIts own wording - what a line on it starts with.
unit_pricemoneyIts own sell price, or null when priced per job.
unit_costmoneyIts own cost, or null when unknown.
dimensionsstringWhich of length, width and height a line on it asks for.
scopestringproduct - on the product's page - or job: kept to the job it was made on.
enquiry_idintegerThe job's enquiry it was made on, or null.
quote_idintegerThe quotation it was made on, or null.
order_idintegerThe order it was made on, or null.
document_countintegerHow many documents it holds.
made_bystringWho made it.
created_atdatetimeWhen.
RecordFinish4 fields
FieldTypeWhat it is
idintegerThe finish's id.
namestringIts name: what a product's or a line's finish says.
sort_orderintegerWhere it comes in the list.
is_activebooleanOffered in the dropdowns; false once retired - it stays where it is used.
RecordCompany22 fields
FieldTypeWhat it is
idintegerThe company's id.
namestringThe company's name.
company_typestringprospect, customer, main_contractor, architect, supplier or other.
sectorstringFree text: what they do.
phonestringSwitchboard number.
emailstringGeneral address.
websitestringWebsite.
address_line1stringAddress, first line.
address_line2stringAddress, second line.
citystringTown or city.
countystringCounty.
postcodestringPostcode, tidied to UK form where it is one.
countrystringCountry; United Kingdom unless said.
currencystringThe currency they are usually quoted in (ISO code), or null for yours.
notesstringFree notes.
owner_user_idintegerThe account owner's user id.
owner_namestringThe account owner's name.
contact_countintegerLive contacts at the company.
open_enquiry_countintegerEnquiries still open.
is_archivedbooleanArchived rather than deleted.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordContact15 fields
FieldTypeWhat it is
idintegerThe contact's id.
company_idintegerThe company they are at, or null.
company_namestringThat company's name.
first_namestringFirst name.
last_namestringSurname.
full_namestringBoth together.
job_titlestringJob title.
emailstringEmail address.
phonestringTelephone.
mobilestringMobile.
is_primarybooleanThe main contact at their company; one per company.
notesstringFree notes.
is_archivedbooleanArchived rather than deleted.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordEnquiry36 fields
FieldTypeWhat it is
idintegerThe enquiry's id.
referencestringIts reference, in the company's own format - carried by its quote, order and invoices.
titlestringWhat it is for, in a line.
company_idintegerThe customer.
company_namestringThe customer's name.
contact_idintegerThe contact, or null.
contact_namestringThe contact's name.
contact_emailstringThe contact's address.
pipeline_idintegerThe pipeline it is on.
pipeline_namestringThat pipeline's name.
stage_idintegerThe stage it is at.
stage_namestringThat stage's name.
stage_outcomestringopen, won or lost - what the stage means.
source_idintegerWhere it came from (an enquiry source), or null.
source_namestringThat source's name.
product_categorystringWhat it is for: a category from the price book.
estimated_valuemoneyWhat it is worth, in your currency.
probabilityintegerThe odds, 0 to 100.
expected_close_datedateWhen a decision is expected.
site_namestringThe site: the building, or the part of it.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringWhere the work would be.
descriptionstringThe long description.
lines_totalmoneyThe total of its priced lines.
lines_costmoneyThe total cost of its costed lines.
unpriced_linesintegerLines still without a price.
outcome_reasonstringWhy it was won or lost.
closed_atdatetimeWhen it was won or lost, or null while open.
owner_user_idintegerWhose it is.
owner_namestringTheir name.
quote_countintegerQuotations raised for it, every revision counted.
is_archivedbooleanArchived rather than deleted.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordEnquiryLine18 fields
FieldTypeWhat it is
idintegerThe line's id.
line_nointegerIts position.
product_idintegerThe product it came from, or null for free text.
product_revisionstringThe product revision the line is on, or null: internal, never on the customer's paperwork.
finishstringThe finish it is made in - for a company with the finishes add-on - or null. Printed with the line on the customer's copy.
product_codestringThat product's code.
product_namestringThat product's name.
descriptionstringWhat is being asked for.
quantityquantityHow many.
unitstringeach, bay, m and so on.
dim_lengthintegerLength in mm, where asked for at a size.
dim_widthintegerWidth in mm.
dim_heightintegerHeight in mm.
unit_pricemoneyPrice each, or null while unpriced.
unit_costmoneyCost each, or null if unknown.
line_totalmoneyquantity × unit_price.
line_costmoneyquantity × unit_cost, or null.
notesstringA note on the line.
RecordQuote49 fields
FieldTypeWhat it is
idintegerThis revision's id.
quote_numberstringThe quotation's number - its enquiry's reference.
revisionintegerWhich revision this is, from 1.
latest_revisionintegerThe newest revision of the number.
statusstringdraft, sent, accepted (won), rejected (lost), superseded or expired.
enquiry_idintegerThe enquiry it is for, or null.
enquiry_referencestringThat enquiry's reference.
enquiry_titlestringThat enquiry's title.
company_idintegerThe customer.
company_namestringThe customer's name.
contact_idintegerThe contact, or null.
contact_namestringThe contact's name.
contact_emailstringThe contact's address.
pipeline_idintegerThe quote pipeline it is on.
pipeline_namestringThat pipeline's name.
stage_idintegerThe stage it is at.
stage_namestringThat stage's name.
quote_datedateDated.
valid_untildateValid until.
discount_pctnumberWhole-quote discount, per cent.
currencystringThe document's currency (ISO code).
fx_ratenumberUnits of that currency per one of yours, fixed when it was raised.
vat_ratenumberVAT rate applied, per cent.
net_subtotalmoneyThe lines added up, after their own discounts.
discount_amountmoneyThe whole-document discount taken off.
net_totalmoneyNet of VAT, after discount.
vat_amountmoneyVAT.
gross_totalmoneyTotal payable.
total_costmoneyCost of the costed lines.
uncosted_linesintegerLines with no cost recorded, so the margin is incomplete - an expense's line is not counted.
expense_netmoneyWhat of net_total is expenses: lines of products marked as one, charged and invoiced as usual and left out of the profit.
expense_costmoneyWhat of total_cost is those lines' cost. The margin is (net_total - expense_net) less (total_cost - expense_cost).
lead_timestringLead time, as written.
delivery_termsstringDelivery terms.
payment_termsstringPayment terms.
notesstringNotes printed on it.
site_namestringThe site, printed on it: the building, or the part of it.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringThe site's postcode.
outcome_reasonstringWhy it was won or lost.
sent_atdatetimeWhen it was first sent.
decided_atdatetimeWhen it was won or lost.
owner_user_idintegerWhose it is.
owner_namestringTheir name.
line_countintegerHow many lines.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordQuoteLine19 fields
FieldTypeWhat it is
idintegerThe line's id.
line_nointegerIts position.
product_idintegerThe product it came from, or null.
product_revisionstringThe product revision the line is on, or null: internal, never on the customer's paperwork.
finishstringThe finish it is made in - for a company with the finishes add-on - or null. Printed with the line on the customer's copy.
product_codestringThe code printed.
descriptionstringThe wording printed.
quantityquantityHow many.
unitstringeach, bay, m and so on.
dim_lengthintegerLength in mm, where sold at a size.
dim_widthintegerWidth in mm.
dim_heightintegerHeight in mm.
unit_pricemoneyPrice each.
line_discount_pctnumberDiscount on this line, per cent.
line_totalmoneyAfter the line's own discount.
unit_costmoneyCost each, or null.
line_costmoneyquantity × unit_cost, or null.
visibilitystringOn the customer's copy: shown, cost_only (left off and not charged), included (charged, not listed) or merged (its price added to line merged_into).
merged_intointegerFor a merged line, the line_no that carries its price; else null.
RecordOrder59 fields
FieldTypeWhat it is
idintegerThe order's id.
referencestringIts reference - the enquiry's, with -2 for a second order on the same job; an extras order's is its job's with E1, E2 and so on.
statusstringconfirmed, drawings, manufacturing, ready, delivered, installed, complete or cancelled.
status_labelstringWhat the company calls that step.
quote_idintegerThe quotation it came from, or null.
quote_numberstringThat quotation's number.
quote_revisionintegerThat quotation's revision.
enquiry_idintegerThe enquiry, or null.
enquiry_referencestringThat enquiry's reference.
enquiry_titlestringThat enquiry's title.
extras_of_order_idintegerFor an extras order - more ordered on top of a job, for a company with the Extras orders add-on - the order it is on; else null.
titlestringThe job's own name, or null.
job_namestringWhat the job is called: its own name, else its enquiry's title, else its site's name.
company_idintegerThe customer.
company_namestringThe customer's name.
contact_idintegerThe contact, or null.
contact_namestringThe contact's name.
pipeline_idintegerThe order pipeline it is on.
pipeline_namestringThat pipeline's name.
stage_idintegerThe stage it is at.
stage_namestringThat stage's name.
customer_postringThe customer's own order number.
order_datedatePlaced on.
promised_datedateWhat the customer was promised.
delivered_datedateWhen it was delivered.
installed_datedateWhen it was installed.
site_namestringThe site: the building, or the part of it.
site_addressstringThe site's building and street, a line each.
site_townstringThe site's town.
site_countystringThe site's county.
site_postcodestringThe site's postcode.
access_notesstringHow to get in.
currencystringThe document's currency (ISO code).
fx_ratenumberUnits of that currency per one of yours, fixed when it was raised.
vat_ratenumberVAT rate applied, per cent.
net_subtotalmoneyThe lines added up, after their own discounts.
discount_amountmoneyThe whole-document discount taken off.
net_totalmoneyNet of VAT, after discount.
vat_amountmoneyVAT.
gross_totalmoneyTotal payable.
total_costmoneyCost of the costed lines.
uncosted_linesintegerLines with no cost recorded, so the margin is incomplete - an expense's line is not counted.
expense_netmoneyWhat of net_total is expenses: lines of products marked as one, charged and invoiced as usual and left out of the profit.
expense_costmoneyWhat of total_cost is those lines' cost. The margin is (net_total - expense_net) less (total_cost - expense_cost).
invoiced_atdateWhen it was fully billed, or null.
invoice_refstringThe invoice that billed it, or one typed from your accounts package.
lead_timestringLead time, as written.
notesstringNotes.
outcome_reasonstringThe note on its last status change.
completed_atdatetimeWhen it was completed or cancelled.
owner_user_idintegerWhose it is.
owner_namestringTheir name.
is_latebooleanPast its promised date and not yet delivered - never while on hold.
days_lateintegerDays past the promised date (negative while there is time).
on_holdbooleanOn hold: its status and stage kept, not late, out of the open order book.
held_atdatetimeWhen it was put on hold, or null while it is not.
is_archivedbooleanArchived rather than deleted.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordOrderLine21 fields
FieldTypeWhat it is
idintegerThe line's id - kept for life, because invoices point at it.
line_nointegerIts position.
quote_line_idintegerThe quote line it was copied from, or null.
product_idintegerThe product, or null.
product_revisionstringThe product revision the line is on, or null: internal, never on the customer's paperwork.
finishstringThe finish it is made in - for a company with the finishes add-on - or null. Printed with the line on the customer's copy.
product_codestringThe code.
descriptionstringThe wording.
quantityquantityHow many ordered.
quantity_deliveredquantityHow many have gone out.
unitstringeach, bay, m and so on.
dim_lengthintegerLength in mm, where sold at a size.
dim_widthintegerWidth in mm.
dim_heightintegerHeight in mm.
unit_pricemoneyPrice each, discounts already folded in.
unit_costmoneyCost each, or null.
line_totalmoneyquantity × unit_price.
line_costmoneyquantity × unit_cost, or null.
notesstringA note on the line.
visibilitystringOn the customer's copy: shown, cost_only (left off and not charged), included (charged, not listed) or merged (its price added to line merged_into).
merged_intointegerFor a merged line, the line_no that carries its price; else null.
RecordInvoice49 fields
FieldTypeWhat it is
idintegerThe invoice's id.
referencestringIts reference - the order's, with -2, -3 for further invoices on the job.
statusstringdraft, sent, paid or cancelled.
quote_idintegerThe quotation, or null.
quote_numberstringThat quotation's number.
order_idintegerThe order it bills, or null for one raised on its own.
order_referencestringThat order's reference.
enquiry_idintegerThe enquiry, or null.
enquiry_referencestringThat enquiry's reference.
company_idintegerThe customer.
company_namestringThe customer's name.
contact_idintegerThe contact, or null.
contact_namestringThe contact's name.
contact_emailstringThe contact's address.
pipeline_idintegerThe invoice pipeline it is on.
pipeline_namestringThat pipeline's name.
stage_idintegerThe stage it is at.
stage_namestringThat stage's name.
customer_postringThe customer's own order number.
invoice_datedateDated.
due_datedatePayment due.
payment_termsstringPayment terms, as written.
discount_pctnumberWhole-invoice discount, per cent; usually nil.
currencystringThe document's currency (ISO code).
fx_ratenumberUnits of that currency per one of yours, fixed when it was raised.
vat_ratenumberVAT rate applied, per cent.
net_subtotalmoneyThe lines added up, after their own discounts.
discount_amountmoneyThe whole-document discount taken off.
net_totalmoneyNet of VAT, after discount.
vat_amountmoneyVAT.
gross_totalmoneyTotal payable.
total_costmoneyCost of the costed lines.
uncosted_linesintegerLines with no cost recorded, so the margin is incomplete - an expense's line is not counted.
expense_netmoneyWhat of net_total is expenses: lines of products marked as one, charged and invoiced as usual and left out of the profit.
expense_costmoneyWhat of total_cost is those lines' cost. The margin is (net_total - expense_net) less (total_cost - expense_cost).
notesstringNotes printed on it.
outcome_reasonstringThe note on its last status change.
sent_atdatetimeWhen it was sent.
paid_atdateWhen it was paid.
owner_user_idintegerWhose it is.
owner_namestringTheir name.
is_overduebooleanSent and past its due date.
days_overdueintegerDays past the due date (negative while there is time).
order_net_totalmoneyThe order's net value, where it bills one.
order_remaining_netmoneyWhat is still to bill on that order, by value.
order_is_settledbooleanWhether that order is now fully billed.
is_archivedbooleanArchived rather than deleted.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordInvoiceLine16 fields
FieldTypeWhat it is
idintegerThe line's id.
line_nointegerIts position.
order_line_idintegerThe order line it bills, or null for a line not on the order.
product_idintegerThe product, or null.
product_codestringThe code.
descriptionstringThe wording.
finishstringThe finish it is made in - for a company with the finishes add-on - or null. Printed with the line on the customer's copy.
quantityquantityHow many are billed on this invoice.
unitstringeach, bay, m and so on.
unit_pricemoneyPrice each.
unit_costmoneyCost each, or null.
line_totalmoneyquantity × unit_price.
line_costmoneyquantity × unit_cost, or null.
notesstringA note on the line.
visibilitystringOn the customer's copy: shown, cost_only (left off and not charged), included (charged, not listed) or merged (its price added to line merged_into).
merged_intointegerFor a merged line, the line_no that carries its price; else null.
RecordBillableLine14 fields
FieldTypeWhat it is
order_line_idintegerThe order line.
line_nointegerIts position on the order.
product_idintegerThe product, or null.
product_codestringThe code.
descriptionstringThe wording.
quantityquantityOrdered.
quantity_invoicedquantityAlready on an invoice that is not cancelled.
quantity_remainingquantityLeft to invoice.
is_fully_invoicedbooleanNothing left on it.
unitstringeach, bay, m and so on.
bill_pricemoneyThe price agreed: the line total spread over the quantity.
unit_pricemoneyThe order line's price each.
visibilitystringHow it appears on the customer's copy; a cost_only line is never billable.
merged_intointegerFor a merged line, the order line_no that carries its price.
RecordCoverage6 fields
FieldTypeWhat it is
net_totalmoneyThe order's net value.
billed_netmoneyInvoiced so far, net, not counting cancelled invoices.
remaining_netmoneyStill to bill, never below zero.
invoice_countintegerInvoices raised against it that are not cancelled.
is_settledbooleanFully billed, within a penny.
percentintegerHow much of it is billed, 0 to 100.
RecordProduct23 fields
FieldTypeWhat it is
idintegerThe product's id.
revisionstringIts current revision (A, B, C ...), or null for a product never revised.
kindstringproduct; service: work done for the job - laser cutting, fitting - often by a subcontractor; or material: bought in to make things from, with the materials add-on.
codestringIts code, unique in your price book, or null.
namestringIts name.
descriptionstringThe wording a line starts with.
unitstringWhat it is sold by: each, bay, m and so on.
dimensionsarrayWhich of length, width, height a line asks for; empty for one size.
unit_pricemoneySell price in your currency, or null when priced per job.
unit_costmoneyCost, or null when unknown - which is what switches margin reporting off for it.
categorystringIts category - what an enquiry can be filed under.
finishstringIts finish, by name from your list - for a company with the finishes add-on - or null. A line made from it starts with it.
supplier_company_idintegerFor a service, the company that does it; for a material, the one it is bought from; or null.
supplier_namestringThat company's name.
supplier_codestringFor a material, the supplier's own code for it, or null.
line_visibilitystringHow a line made from it starts out on the customer's copy: shown, cost_only or included.
is_expensebooleanAn expense - delivery, carriage, hire: its lines are charged and invoiced as usual, and left out of every margin.
notesstringNotes.
is_activebooleanOn sale; false once withdrawn.
times_quotedintegerQuote lines that came from it.
times_enquiredintegerEnquiry lines that came from it.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordTask21 fields
FieldTypeWhat it is
idintegerThe task's id.
titlestringWhat has to be done.
detailsstringMore detail.
due_datedateWhen by.
prioritystringlow, normal or high.
statusstringopen, done or cancelled.
assigned_to_user_idintegerWhose it is.
assignee_namestringTheir name.
company_idintegerThe company it is about, or null.
company_namestringThat company's name.
contact_idintegerThe contact, or null.
contact_namestringThat contact's name.
enquiry_idintegerThe enquiry, or null.
enquiry_referencestringThat enquiry's reference.
order_idintegerThe order, or null.
order_referencestringThat order's reference.
completed_atdatetimeWhen it was done.
is_overduebooleanOpen and past its due date.
created_byintegerWho made it.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordActivity14 fields
FieldTypeWhat it is
idintegerThe entry's id.
activity_typestringcall, email, meeting, site_visit, note or other.
subjectstringWhat it was.
bodystringThe detail.
occurred_atdatetimeWhen.
user_idintegerWho logged it.
logged_bystringTheir name.
company_idintegerThe company, or null.
company_namestringThat company's name.
contact_idintegerThe contact, or null.
contact_namestringThat contact's name.
enquiry_idintegerThe enquiry, or null.
enquiry_referencestringThat enquiry's reference.
created_atdatetimeWhen it was logged.
RecordDocument22 fields
FieldTypeWhat it is
idintegerThe document's id.
filenamestringThe name it was uploaded with, and downloads as.
content_typestringIts media type, from the extension.
byte_sizeintegerSize in bytes.
checksumstringSHA-256 of the file.
descriptionstringWhat it is.
company_idintegerThe customer it is held for.
company_namestringThat company's name.
contact_idintegerThe contact it was filed against, or null.
enquiry_idintegerThe enquiry, or null.
enquiry_referencestringThat enquiry's reference.
quote_idintegerThe quotation, or null.
quote_numberstringThat quotation's number.
order_idintegerThe order, or null.
order_referencestringThat order's reference.
record_idintegerThe record on one of your own tabs, or null.
record_referencestringThat record's reference.
product_idintegerThe product it was uploaded to, or null.
product_namestringThat product's name.
uploaded_byintegerWho uploaded it.
uploaded_by_namestringTheir name.
created_atdatetimeWhen.
RecordRecord22 fields
FieldTypeWhat it is
idintegerThe record's id.
module_idintegerThe tab it is on.
referencestringIts reference, where the tab numbers its records.
titlestringIts name.
company_idintegerThe company it is linked to, or null.
company_namestringThat company's name.
contact_idintegerThe contact, or null.
contact_namestringThat contact's name.
enquiry_idintegerThe enquiry, or null.
enquiry_referencestringThat enquiry's reference.
quote_idintegerThe quote - one revision of it - or null.
quote_numberstringThat quote's number.
quote_revisionintegerAnd its revision.
order_idintegerThe order, or null.
order_referencestringThat order's reference.
invoice_idintegerThe invoice, or null.
invoice_referencestringThat invoice's reference.
owner_user_idintegerThe person it is linked to, or null.
owner_namestringTheir name.
is_archivedbooleanArchived rather than deleted.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordEmail17 fields
FieldTypeWhat it is
idintegerThe message's id.
subjectstringSubject line.
from_addressstringWho sent it.
from_namestringTheir name as sent.
sent_atdatetimeWhen it was sent.
received_atdatetimeWhen it was captured.
visibilitystringshared, or private to whoever captured it.
match_rulestringHow it was filed: job, thread, token, contact, domain or none.
company_idintegerThe company it is filed against, or null.
company_namestringThat company's name.
contact_idintegerThe contact, or null.
enquiry_idintegerThe enquiry, or null.
enquiry_referencestringThat enquiry's reference.
quote_idintegerThe quotation, or null.
order_idintegerThe order, or null.
invoice_idintegerThe invoice, or null.
captured_bystringWhose capture address caught it.
RecordEmailAttachment6 fields
FieldTypeWhat it is
idintegerThe attachment's id.
filenamestringIts name.
content_typestringIts media type.
byte_sizeintegerSize in bytes.
is_inlinebooleanPart of the message's own layout (a signature image) rather than a file sent.
refused_reasonstringWhy the file was not kept, or null.
RecordUser7 fields
FieldTypeWhat it is
idintegerThe user's id - what owner and assignee fields take.
full_namestringTheir name.
emailstringTheir address.
rolestringtenant_admin or standard.
role_namestringAdministrator, Standard, or the company's own role.
is_activebooleanWhether they can sign in.
last_login_atdatetimeWhen they last signed in.
RecordPipeline9 fields
FieldTypeWhat it is
idintegerThe pipeline's id.
entitystringenquiry, quote, order or invoice.
namestringIts name.
descriptionstringWhat it is for.
is_defaultbooleanWhere a new record of its kind starts.
is_activebooleanOffered on forms and boards.
sort_orderintegerIts position.
stagesarrayIts stages, in order: id, name, sort_order, outcome, maps_to, default_probability, is_active.
rulesarrayWhat moves records along it: trigger_key, after_days, target_stage_id, target_name, is_active.
RecordStage8 fields
FieldTypeWhat it is
idintegerThe stage's id.
pipeline_idintegerIts pipeline.
namestringIts name.
sort_orderintegerIts position.
outcomestringopen, won or lost.
maps_tostringThe fixed status a quote, order or invoice stage records; null on an enquiry stage, and on a stage that stands for no status change.
default_probabilityintegerThe odds a typical enquiry has here.
is_activebooleanStill offered.
RecordSource4 fields
FieldTypeWhat it is
idintegerThe source's id.
namestringIts name.
sort_orderintegerIts position.
is_activebooleanStill offered.
RecordRole5 fields
FieldTypeWhat it is
idintegerThe role's id.
namestringIts name.
tabsarrayThe tab keys it includes.
peopleintegerHow many hold it.
active_peopleintegerHow many of them are active.
RecordApiKey11 fields
FieldTypeWhat it is
idintegerThe key's id.
namestringWhat it was called.
key_prefixstringThe start of the key, to tell it apart.
scopestringread or write.
user_idintegerThe account it acts as.
user_namestringTheir name.
expires_atdatetimeWhen it stops, or null.
last_used_atdatetimeWhen it was last used.
use_countintegerHow many requests it has made.
revoked_atdatetimeWhen it was revoked, or null.
created_atdatetimeWhen it was made.
RecordFieldDefinition8 fields
FieldTypeWhat it is
idintegerThe field's id.
namestringIts key - how it is sent and answered under 'fields'.
labelstringWhat the form calls it.
field_typestringtext, textarea, number, money, date, datetime, select, checkbox, or a link type on a tab of your own.
optionsarrayThe choices of a select field.
hintstringThe help under the box.
is_requiredbooleanMust be filled in.
sort_orderintegerIts position.
RecordTab8 fields
FieldTypeWhat it is
idintegerThe tab's id.
namestringIts name.
slugstringIts address segment - what the records routes take.
item_namestringWhat one record is called.
reference_prefixstringThe prefix its references take, or null if not numbered.
descriptionstringWhat it is for.
is_activebooleanShown in the menu.
fieldsarrayIts fields, each as a FieldDefinition with is_title and show_in_list as well.
RecordQueue11 fields
FieldTypeWhat it is
idintegerThe queue's id.
namestringIts name.
datasetstringThe list it is over: enquiries, quotes, orders, invoices, tasks, companies, contacts, or records:<tab id>.
filtersobjectThe list page's arguments it carries.
filter_textarrayThe same, in words.
columnsarrayIts column keys, or null for the list's own.
descriptionstringWhat it is for.
visibilitystringshared or private.
owner_user_idintegerWho made it.
owner_namestringTheir name.
countintegerHow many records are in it now.
RecordSavedReport8 fields
FieldTypeWhat it is
idintegerThe report's id.
namestringIts name.
descriptionstringWhat it is for.
kindstringtotals or list.
specobjectIts specification: the same keys the report routes take.
visibilitystringshared or private.
owner_user_idintegerWho made it.
owner_namestringTheir name.
RecordAutomation14 fields
FieldTypeWhat it is
idintegerThe automation's id.
namestringIts name.
sentencestringWhat it does, in a line.
entitystringThe tab it watches.
eventstringcreated, updated, archived or date.
is_activebooleanSwitched on.
problemsarrayWhat stops it being switched on.
run_countintegerHow many times it has acted.
last_run_atdatetimeWhen it last acted.
failure_streakintegerFailures in a row.
off_reasonstringWhy it switched itself off, if it did.
definitionobjectThe trigger, conditions and steps, as the builder stores them.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordAutomationRun12 fields
FieldTypeWhat it is
idintegerThe run's id.
automation_idintegerWhich automation.
automation_namestringIts name.
entitystringThe tab of the record it acted on.
record_idintegerThe record.
record_labelstringThe record's reference or name.
causestringWhat set it off.
outcomestringdone, partly, failed or nothing.
summarystringWhat happened, in a line.
detailarrayWhat each step did.
actor_namestringWho made the change that set it off.
created_atdatetimeWhen.
RecordAuditEntry10 fields
FieldTypeWhat it is
idintegerThe entry's id.
entitystringThe kind of record: company, enquiry, quote, order, invoice, product, task, contact, api_key, tenant_settings.
record_idintegerWhich record.
record_labelstringIts reference or name at the time.
actionstringcreated, updated, archived, restored, deleted or status_changed.
actor_user_idintegerWho, or null for the system.
actor_namestringTheir name - with the API key's name when it was a program.
changesobjectField name to {from, to}.
summarystringThe change in a line.
created_atdatetimeWhen.
RecordCalendarEvent15 fields
FieldTypeWhat it is
kindstringmeeting, note, task, enquiry, quote or order.
idintegerThe record's id.
ondateThe day.
atdatetimeThe time, for a call or meeting; null for an all-day item.
ends_atdatetimeHalf an hour on, for a call or meeting.
titlestringWhat it is.
refstringThe record's reference, where it has one.
statestringIts status or stage.
donebooleanAlready happened or completed.
valuemoneyWhat it is worth, where it is worth something.
company_idintegerThe company, or null.
company_namestringIts name.
enquiry_idintegerThe enquiry, or null.
owner_user_idintegerWhose it is.
owner_namestringTheir name.
RecordWebSubmission27 fields
FieldTypeWhat it is
idintegerThe submission's id.
statusstringpending, approved or rejected.
received_atdatetimeWhen the website sent it.
namestringThe sender's name.
emailstringThe sender's address.
companystringThe company they gave.
job_titlestringTheir job title.
phonestringTelephone.
mobilestringMobile.
address_line1stringAddress.
address_line2stringAddress, second line.
citystringTown or city.
countystringCounty.
postcodestringPostcode.
site_postcodestringWhere the work would be.
productstringWhat it is for.
budgetstringThe budget band.
timescalestringWhen it is needed.
heard_aboutstringHow they heard of you.
subjectstringSubject.
messagestringWhat they wrote.
pagestringThe page of your site the form was on.
enquiry_idintegerThe enquiry it became, once approved.
enquiry_referencestringThat enquiry's reference.
reviewer_namestringWho approved or rejected it.
reviewed_atdatetimeWhen.
review_notestringWhy it was rejected.
RecordPurchaseOrder43 fields
FieldTypeWhat it is
idintegerThe purchase order's id.
referencestringIts number, in your format or as typed when it was raised.
purposestringjob, stock or overheads.
statusstringdraft, awaiting_approval, approved, sent, closed or cancelled.
receipt_statestringnone, part or full: how much of it has arrived.
billing_statestringnone, part or full: how much of it the supplier has invoiced.
company_idintegerThe supplier.
company_namestringThe supplier's name.
contact_idintegerThe supplier's contact, or null.
contact_namestringThat contact's name.
contact_emailstringThat contact's address.
enquiry_idintegerThe job's enquiry, or null.
order_idintegerThe job's order it was raised from, or null.
job_referencestringThe job's reference, or null for stock and overheads.
job_company_namestringThe customer the job is for.
order_datedateDated.
required_datedateWanted by.
supplier_refstringThe supplier's own reference: their quotation number.
deliver_tostringWhere it is to be delivered.
notesstringPrinted on it, for the supplier.
internal_notesstringFor colleagues; never printed or sent.
currencystringThe order's currency (ISO code).
fx_ratenumberUnits of that currency per one of yours, fixed when it was raised.
vat_ratenumberVAT rate, per cent.
net_totalmoneyNet of VAT.
vat_amountmoneyVAT.
gross_totalmoneyTotal.
billed_netmoneyWhat the supplier's invoices against it come to, net.
billed_variancemoneyWhat those invoices charge beyond the order's prices.
approved_netmoneyThe value approved, in your currency, or null.
approved_by_namestringWho approved it.
approved_atdatetimeWhen.
submitted_by_namestringWho submitted it for approval.
submitted_atdatetimeWhen.
sent_atdatetimeWhen it went to the supplier.
closed_atdatetimeWhen it was closed.
outcome_reasonstringWhy it was rejected, closed or cancelled.
is_latebooleanWanted by a date that has passed, with things still to come.
owner_user_idintegerWho raised it.
owner_namestringTheir name.
is_archivedbooleanArchived rather than deleted.
created_atdatetimeWhen the record was made.
updated_atdatetimeWhen it last changed.
RecordPurchaseOrderLine13 fields
FieldTypeWhat it is
idintegerThe line's id; deliveries and invoices name it.
line_nointegerIts position.
product_idintegerThe product, or null.
kindstringproduct, material or service: the item's own when it is from the price book; null on a line typed by hand that does not say.
product_codestringThe code to order by.
descriptionstringThe wording.
quantityquantityHow many are ordered.
unitstringeach, sheet, m and so on.
unit_pricenumberPrice each before VAT, to four places.
line_totalmoneyquantity × unit_price.
quantity_receivedquantityHow many have arrived.
quantity_billedquantityHow many the supplier has invoiced.
notesstringA note for the supplier.
RecordPurchaseReceipt6 fields
FieldTypeWhat it is
idintegerThe delivery's id.
received_ondateWhen it arrived.
delivery_notestringThe supplier's delivery note number.
notesstringAnything recorded about it.
created_by_namestringWho booked it in.
linesarrayWhat arrived: {line_id, description, quantity, unit}.
RecordPurchaseBill13 fields
FieldTypeWhat it is
idintegerThe supplier invoice's id.
supplier_referencestringTheir invoice number.
bill_datedateTheir invoice's date.
due_datedateWhen they want paying.
currencystringIts currency (ISO code).
vat_ratenumberVAT rate, per cent.
net_totalmoneyNet.
vat_amountmoneyVAT, as their invoice has it.
gross_totalmoneyTotal.
expected_netmoneyThe same quantities at the order's prices.
variancemoneyWhat it charges beyond the order (net_total - expected_net).
notesstringAnything recorded about it.
linesarrayWhat it charges: {line_id, description, quantity, unit_price, line_total}; line_id null for a charge not on the order.
RecordIndex6 fields
FieldTypeWhat it is
namestringManufactIQ API.
versionstringThe API version in every address.
applicationstringThe CRM's own version.
docs_urlstringThe reference.
openapi_urlstringThe OpenAPI document.
authenticatestringHow to send a key.
RecordMe7 fields
FieldTypeWhat it is
keyobjectThe key, as an ApiKey.
userobjectThe person the key acts as, as a User.
companyobjectid, name, slug and plan.
scopestringread or write.
rate_limitobjectper_minute, and remaining in this minute.
server_timedatetimeThe server's clock, in its own time.
versionstringThe API version.
RecordOpenAPI3 fields
FieldTypeWhat it is
openapistring3.0.3.
pathsobjectEvery route.
componentsobjectEvery schema.
RecordNewApiKey6 fields
FieldTypeWhat it is
keystringThe key itself - shown here once and never again.
idintegerThe key's id.
namestringWhat it is for.
scopestringread or write.
user_idintegerWhom it acts as.
expires_atdatetimeWhen it stops, or null.
RecordNotifications5 fields
FieldTypeWhat it is
notify_task_assignedbooleanA task is assigned to them.
notify_enquiry_assignedbooleanAn enquiry is assigned to them.
notify_quote_decisionbooleanA quotation of theirs is accepted or rejected.
notify_daily_digestbooleanThe daily digest.
notify_mentionedbooleanA colleague mentions them in a note.
RecordDeleted3 fields
FieldTypeWhat it is
deletedbooleantrue.
idintegerWhat was deleted.
namestringWhat it was called.
RecordAction2 fields
FieldTypeWhat it is
okbooleantrue.
messagesarrayWhat the CRM would have said to a person doing the same thing on screen.
RecordLinkedRecord8 fields
FieldTypeWhat it is
idintegerThe record's id.
referencestringIts reference.
titlestringIts name.
created_atdatetimeWhen.
module_idintegerThe tab it is on.
module_namestringThat tab's name.
slugstringThat tab's address segment.
item_namestringWhat one record on that tab is called.
RecordSearchResult1 fields
FieldTypeWhat it is
groupsarrayOne group per kind with hits: key, label, and items of {id, title, sub, web_url}.
RecordSalesReport14 fields
FieldTypeWhat it is
monthsintegerThe period, in months.
owner_idintegerWhose share, or null for everybody.
generated_atdatetimeWhen.
performanceobjectWon, lost and open by month, with win rate, average deal and the sales cycle.
forecastarrayThe open pipeline by expected close month, with weighted values.
by_ownerarrayWon and lost by person.
by_categoryarrayWon and lost by product category.
by_sourcearrayWon and lost by enquiry source.
top_customersarrayThe customers who bought most.
quotesobjectQuotation conversion, or null for a role without quotes.
lost_reasonsarrayWhy work was lost, by reason.
lost_totalintegerHow many were lost.
marginobjectThe margin quoted, or null for a role without quotes.
monthlyarrayWon value by month.
RecordKpiHub11 fields
FieldTypeWhat it is
periodobjectfrom, to and label.
comparisonobjectThe period it is set against, or null.
compare_labelstringWhat the comparison is called.
salesobjectkpis, snapshots, stage_rows, by_product, by_source - or null.
workshopobjectkpis, snapshots, load, by_area - or null.
cashobjectkpis, snapshots, aged, aged_total - or null.
customersobjectkpis and the tables about customers - or null.
peopleobjectEach person's figures - or null.
tabsarrayA block per tab of your own that carries dates.
fieldsarrayA block per extra field worth grouping by.
overviewobjectThe lead tiles and snapshots from every section.
RecordDashboard6 fields
FieldTypeWhat it is
headlineobjectOpen pipeline, weighted forecast, the quotations won this week (since Monday), this month and in the last 30 days - how many, and their net value in your currency - and quotations awaiting a decision.
conversionobjectWon, lost and the rate over twelve months.
pipeline_by_stagearrayOpen enquiries and their value at each stage.
order_bookobjectOpen orders, their value, late ones, due this week, placed this week (Monday to Sunday) and this month (from the 1st) and their value - cancelled ones left out - and delivered but not invoiced.
invoice_bookobjectDrafts, outstanding, overdue and billed this month.
attentionarrayWhat needs a person today: tone, kind, title, detail, web_url.
RecordDataset9 fields
FieldTypeWhat it is
keystringWhat the report routes take as dataset.
labelstringWhat it is called.
dimensionsarrayWhat it can be grouped by: key and label.
measuresarrayIts figures: key, label, format (count, money, pct, days, number) and hint.
datesarrayThe date fields a period can apply to.
filtersarrayThe filter arguments it takes (owner, status, pipeline, stage, x_<field>...).
filter_valuesarrayEach filter's key, label, the argument that leaves values out (not_<key>) and the values it offers: value and label.
columnsarrayThe columns a list of it can show.
defaultsobjectdim, measures, date and columns when none is sent.
RecordTotalsReport11 fields
FieldTypeWhat it is
specobjectThe report, every word checked.
argsobjectThe same as query-string arguments.
titlestringThe report in a sentence.
periodobjectfrom, to and label.
comparisonobjectThe period it is set against, or null.
measuresarrayThe figures: key, label and format.
dimensionobjectWhat it is grouped by.
rowsarrayOne per group: key, label, each measure's value, its previous value and the change.
totalsobjectThe same, added up.
otherobjectGroups beyond the first sixty, folded together, or null.
web_urlstringThe report's own page.
RecordListReport9 fields
FieldTypeWhat it is
specobjectThe list, every word checked.
argsobjectThe same as query-string arguments.
titlestringWhat it lists.
periodobjectfrom, to and label, or null for any date.
columnsarrayThe columns: key, label and format.
rowsarrayOne per record, keyed by column.
totalintegerHow many rows matched.
truncatedbooleanWhether the limit cut the rows short.
web_urlstringThe list's own page.
RecordProductCategories2 fields
FieldTypeWhat it is
groupsarrayEach group's name and its items of {value, label}.
defaultstringThe category a new enquiry starts on.
RecordVocabulary14 fields
FieldTypeWhat it is
termsobjectThe company's words for each record type: singular and plural.
company_typesarraykey and label.
activity_typesarraykey and label.
task_prioritiesarraykey and label.
task_statusesarraykey and label.
quote_statusesarraykey and label.
order_statusesarraykey, the company's label, and whether the step is hidden.
invoice_statusesarraykey and label.
stage_outcomesarrayopen, won, lost.
pipeline_entitiesarrayenquiry, quote, order, invoice.
submission_statusesarraypending, approved, rejected.
field_typesarrayThe types a field on a tab of your own may have.
extra_field_typesarrayThe types an extra field on a shipped tab may have.
key_scopesarrayread and write.
RecordSettings13 fields
FieldTypeWhat it is
letterheadobjectname, address, phone, email, website, vat_number, company_number.
settingsobjectcurrency, currency_symbol, default_vat_rate, financial_year_start_month, timezone, date_format, quote_validity_days, quote_quiet_months, quote_footer, order_footer.
currencyobjectbase, symbol, and rates by ISO code.
termsobjectThe company's words for each record type.
modulesobjectWhich tabs are switched on, by key.
order_stepsarrayThe workshop steps in order: key, label, hidden, fixed.
numberingobjectThe reference format.
example_referencestringWhat the next reference would look like.
defaultsobjectpayment_days, payment_terms, lead_time, delivery_terms, quote_notes, product_category.
documentsobjectWhat the quotation and invoice carry; the bank details for a role with invoices.
planobjectkey, label, trial_ends_on, max_users, used_users, max_storage_mb, used_mb.
featuresobjectEach plan feature and whether it is in force.
apiobjectversion, rate_limit_per_minute, docs_url.
RecordTabTemplate6 fields
FieldTypeWhat it is
idintegerThe template's id, for POST /tabs/install/{template_id}.
namestringIts name.
slugstringIts slug.
item_namestringWhat one record is called.
descriptionstringWhat it is for.
installedbooleanWhether the company already has it.
RecordCompanySettings5 fields
FieldTypeWhat it is
letterheadobjectname, address, phone, email, website, vat_number, company_number.
settingsobjectThe columns of Administration > Company details.
teams_webhook_setbooleanWhether a Teams webhook is set; the address itself is never answered.
teams_eventsarrayThe events posted to Teams, or null for every event.
fx_ratesobjectISO code to rate.
RecordWording1 fields
FieldTypeWhat it is
<term>objectsingular and plural for each record type.
RecordModules1 fields
FieldTypeWhat it is
<module>booleanWhether each part of the CRM is on.
RecordOrderSteps1 fields
FieldTypeWhat it is
<step>objectlabel and hidden for each workshop step.
RecordNumbering3 fields
FieldTypeWhat it is
jobobjectprefix, suffix, digits, year, year_digits, separator, start.
revision_startintegerThe revision a job's first quotation takes, 1 or 0.
example_referencestringThe number the next job will take.
RecordDefaults6 fields
FieldTypeWhat it is
payment_daysinteger.
payment_termsstring.
lead_timestring.
delivery_termsstring.
quote_notesstring.
product_categorystring.
RecordDocuments1 fields
FieldTypeWhat it is
<key>stringEach document setting; the show_*, quote_email_* and ack_email_* flags are booleans, and ack_terms is null until written.
RecordWebsiteForm4 fields
FieldTypeWhat it is
onbooleanWhether the website may post.
endpointstringWhere it posts to, or null.
settingsobjectWho is told, the owner, the questions, the emails; turnstile_secret_set.
waitingintegerWebsite enquiries waiting for approval.
RecordBranding6 fields
FieldTypeWhat it is
brand_primarystringHex colour or null.
brand_accentstringHex colour or null.
logo_filenamestringThe logo's name, or null.
logo_setbooleanWhether there is one.
entitledbooleanWhether the plan allows changes.
derivedobjectThe shades the colours produce.
RecordEmailCapture6 fields
FieldTypeWhat it is
require_known_contactbooleanThe known-contact rule.
retention_daysintegerHow long captured mail is kept.
capture_mailboxstringThe mailbox in force.
own_mailboxstringThe company's own, if set.
default_mailboxstringThe installation's.
exclusionsarrayid, kind, pattern, note, created_at.
RecordBooks14 fields
FieldTypeWhat it is
providerstringquickbooks, xero or sage.
labelstringIts name.
configuredbooleanWhether this installation has an app registered with the provider.
entitledbooleanWhether the plan includes it.
connectedbooleanWhether the connection can be used now.
statusstringconnected, reconnect, disconnected or not_connected.
namestringThe company, organisation or business connected.
countrystringIts country.
base_currencystringIts currency.
connected_atdatetimeWhen.
payments_checked_atdatetimeWhen payments were last checked.
last_errorstringThe last problem, if any.
settingsobjectThe choices in force.
activityarrayThe latest log entries.
RecordBooksOptions6 fields
FieldTypeWhat it is
providerstringquickbooks, xero or sage.
aboutobjectWhat the books say about themselves.
offeredobjectThe items, accounts and tax codes or rates to choose from, and QuickBooks' custom fields (custom_fields).
ratesarrayThe VAT rates in use here.
chosenobjectThe choice in force for each rate.
settingsobjectThe choices in force.
RecordPaymentsChecked3 fields
FieldTypeWhat it is
providerstringquickbooks, xero or sage.
checkedintegerInvoices asked about.
paidintegerMarked paid here.
RecordBooksSent6 fields
FieldTypeWhat it is
providerstringquickbooks, xero or sage.
invoice_idintegerWhich invoice.
createdbooleanA new invoice there (true) or its copy updated (false).
numberstringIts number in the books.
statestringIts state there, where known.
notestringAnything worth knowing about what happened.
RecordImportRun10 fields
FieldTypeWhat it is
idintegerThe run's id.
podstringThe previous CRM's region.
statusstringpending, running, done, failed or cancelled.
dry_runbooleanWhether it wrote anything.
started_atdatetimeWhen.
finished_atdatetimeWhen.
messagestringHow it ended.
totalsobjectWhat it read and wrote, by kind.
runningbooleanStill going.
log_tailstringThe last of its log.
RecordImportRuns4 fields
FieldTypeWhat it is
itemsarrayRecent runs, as ImportRun.
activeobjectThe run going now, or null.
linkedobjectRecords linked to the previous CRM, by kind.
podsobjectThe regions.
RecordImportTest2 fields
FieldTypeWhat it is
accountstringWhose account the key is.
foundobjectWhat the account holds, by kind.
RecordForgotten1 fields
FieldTypeWhat it is
forgottenintegerLinks removed.
RecordAutomationStarters3 fields
FieldTypeWhat it is
startersarraykey, name, blurb and tab for each ready-made automation.
tabsarraykey, label, singular and events for each tab an automation may watch.
entitledbooleanWhether the plan includes automations.
RecordAutomationVocabulary14 fields
FieldTypeWhat it is
keystringThe tab.
labelstringIts name.
eventsarrayWhat it can be watched for.
watch_fieldsarrayFields whose change can set an automation off.
date_fieldsarrayFields a date trigger can wait for.
fieldsarrayEvery field a condition may test: path, group, label, type, writable, choices.
operatorsobjectBy field type: the comparisons, each with key and label.
whensarraybefore, on, after.
stepsarrayThe step kinds the tab allows.
modesarrayHow a field may be given a value.
targetsarrayWhat a set_field step may act on.
stage_targetsarrayWhat a move_stage step may act on.
limitsobjectconditions, actions and days at most.
step_keysstringThe keys each step kind takes.
RecordAutomationTest5 fields
FieldTypeWhat it is
automation_idintegerWhich.
recordobjectid, label, entity, web_url.
conditionsarrayEach condition's text and whether it holds.
would_actbooleanWhether the automation would act on this record.
stepsarrayWhat each step would do: status and text.
RecordReviewQueue4 fields
FieldTypeWhat it is
heldarrayQuarantined messages, as HeldEmail.
pagingobjectpage, per_page, total and pages of the held list.
unfiledarrayAccepted messages filed against nothing, as Email.
showing_everybodybooleanWhether the held list is the whole company's.
RecordHeldEmail11 fields
FieldTypeWhat it is
idintegerThe delivery's id, for release and discard.
received_atdatetimeWhen it arrived.
from_addressstringWho sent it.
subjectstringSubject line.
verdictstringquarantine.
verdict_reasonstringWhy it was held.
dkimstringpass, fail or none.
spfstringpass, fail or none.
providerstringHow it arrived.
mailbox_ownerstringWhose address took it.
mailbox_user_idintegerTheir user id.
RecordDecided3 fields
FieldTypeWhat it is
idintegerThe delivery's id.
decisionstringreleased or discarded.
messagestringWhat the CRM would have said on screen.
RecordSavedFiles6 fields
FieldTypeWhat it is
okbooleanSomething was saved, or nothing needed saving.
savedarrayThe files saved, by name.
alreadyarrayAlready there, so not saved again.
refusedarrayEach refusal, in words.
targetobjectkey, name, kind and id of the record.
messagesarrayWhat the CRM would have said on screen.
RecordCaptureAddress7 fields
FieldTypeWhat it is
onbooleanWhether mail sent to the address is filed.
addressstringThe address to CC, or null before enable.
statusstringactive, paused, revoked or off.
status_labelstringThe same, in words.
default_visibilitystringWhat new messages default to: shared or private.
created_atdatetimeWhen the address was issued.
heldintegerMessages waiting for a decision.
RecordDuplicateMatch8 fields
FieldTypeWhat it is
idintegerThe existing record's id.
labelstringIts name.
detailstringWhere it is, or who it is at.
reasonsarrayWhy it matched, in words.
strongbooleanWhether the match is strong enough to refuse a save without confirm_duplicate.
is_archivedbooleanWhether it is archived.
company_idintegerA contact's company, where the match is a contact.
emailstringA contact's email, where the match is a contact.
RecordImportedLines3 fields
FieldTypeWhat it is
filenamestringThe sheet's name.
linesarrayEach row as a line: row, status, notes, product_id, product_code, description, quantity, unit, unit_price, unit_cost, line_discount_pct, dimensions and line_total.
summaryobjectsheet, header_row, read, usable, and the rows that could not be used.
RecordBulkResult6 fields
FieldTypeWhat it is
actionstringWhat was done.
donearrayThe ids it was done to.
unchangedarrayThe ids that already were as asked.
skippedarrayid, label and reason for each record it was not done to.
notesarrayAnything else worth knowing, in words.
messagestringWhat happened, as the list page would say it.
RecordMergePreview5 fields
FieldTypeWhat it is
keepintegerThe record kept unless you say otherwise: the one with most attached.
recordsarrayid, label, created_at, is_archived, counts by table, and attached in words.
fieldsarraykey, label, values by record id, and default: the record whose value is taken.
notesobjectEach record's notes, the default, and combine: whether more than one has notes.
movesstringEverything a merge moves to the record kept.
RecordMerged4 fields
FieldTypeWhat it is
keptobjectThe record kept, as it now is.
mergedarrayid and label of each record merged into it and deleted.
movedobjectRows moved to it, by table.
messagestringWhat happened, in words.

Errors

Every refusal is JSON with a status, a code and a message.

StatusCodeMeaning
400invalid_jsonThe body is not a JSON object.
401unauthenticatedNo key was sent, or the key is not recognised, revoked, expired or acting as a disabled account. Which of those it was is not said.
403plan_requiredThe company's plan does not include the API, or the part of the CRM the route needs.
403read_only_keyA read-only key called a route that writes.
403administrator_requiredThe route is for company administrators and the key's user is not one.
403not_in_roleThe tab the route belongs to is not in the key's user's role.
403forbiddenSomething only the record's owner, or an administrator, may do.
404not_foundNo such record in this company, or no such address.
405method_not_allowedA real address called with a method it does not take; Allow lists the ones it does.
409duplicate, in_use, quote_decided, order_exists, quote_not_won, invoice_locked, no_lines, order_cancelled, already_decided, storage_full, list_gone, tab_not_readyThe request is well formed but the record's state refuses it; the code says which, and the message says what to do instead.
413too_largeThe request is bigger than the installation accepts.
415unsupported_media_typeSend JSON, with Content-Type: application/json.
422validation_failedA value the form would refuse, in the form's own words; details carries every message.
429rate_limitedThe key has made its allowance of requests this minute; Retry-After says how many seconds to wait.
500server_errorSomething went wrong on the server and has been logged.
503not_readyThe installation's database has not been brought up to date for the API yet, or the PDF engine is not installed.