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.
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.
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | What the key is for - the system that will hold it. |
scope required | string | read, or write. One of: read, write. |
user_id required | integer | The active account the key acts as; every call is checked and audited as that person. |
expires_on | date | The 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.
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
notify_task_assigned | boolean | A task is assigned to them. |
notify_enquiry_assigned | boolean | An enquiry is assigned to them. |
notify_quote_decision | boolean | A quotation of theirs is accepted or rejected. |
notify_daily_digest | boolean | The daily digest. |
notify_mentioned | boolean | A 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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the name, town, postcode, email and phone. |
type | string | One company type. One of: prospect, customer, main_contractor, architect, supplier, other. |
owner | integer | An owner's user id. |
archived | boolean | true to include archived companies. |
sort | string | name (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> | string | Filter on one of your own fields: x_<field>=value, or x_<field>.from and x_<field>.to for a number, money or date field. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The company's name. |
company_type | string | prospect (the default), customer, main_contractor, architect, supplier or other. One of: prospect, customer, main_contractor, architect, supplier, other. |
sector | string | What they do. |
phone | string | Telephone. |
email | string | General address. |
website | string | Website. |
address_line1 | string | Address, first line. |
address_line2 | string | Address, second line. |
city | string | Town or city. |
county | string | County. |
postcode | string | Postcode. |
country | string | Country; United Kingdom if left out. |
currency | string | The currency they are usually quoted in (ISO code), or null for yours. |
notes | string | Free notes, up to 10,000 characters. |
owner_user_id | integer | The account owner's user id (see GET /users); the key's own user if left out of a new company. |
fields | object | The company's extra fields, by name - see GET /fields. |
confirm_duplicate | boolean | true 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The company's name. |
company_type | string | prospect (the default), customer, main_contractor, architect, supplier or other. One of: prospect, customer, main_contractor, architect, supplier, other. |
sector | string | What they do. |
phone | string | Telephone. |
email | string | General address. |
website | string | Website. |
address_line1 | string | Address, first line. |
address_line2 | string | Address, second line. |
city | string | Town or city. |
county | string | County. |
postcode | string | Postcode. |
country | string | Country; United Kingdom if left out. |
currency | string | The currency they are usually quoted in (ISO code), or null for yours. |
notes | string | Free notes, up to 10,000 characters. |
owner_user_id | integer | The account owner's user id (see GET /users); the key's own user if left out of a new company. |
fields | object | The company's extra fields, by name - see GET /fields. |
confirm_duplicate | boolean | true 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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
name | string | The name as typed. |
email | string | The general email address. |
website | string | The website. |
phone | string | The telephone number. |
postcode | string | The postcode. |
exclude | integer | A 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.
Body
| Field | Type | What it is |
|---|---|---|
action required | string | owner, 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 required | array | The companies to act on, by id: up to 500. |
value | string | For 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.
Query
| Name | Type | What it is |
|---|---|---|
ids required | string | Two to ten company ids: ids=12&ids=14, or ids=12,14. |
keep | integer | The 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.
Body
| Field | Type | What it is |
|---|---|---|
ids required | array | The two to ten companies to merge, the one kept among them. |
keep required | integer | The company kept: its number, its page and its history stay. |
choose | object | Field 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_notes | boolean | Keep 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
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the name, email, phone and company. |
company | integer | A company id. |
archived | boolean | true to include archived contacts. |
sort | string | name (the default), name_desc, company or recent. One of: name, name_desc, company, recent, job_title, email, phone, mobile, created. |
x_<field> | string | Filter on one of your own fields, as for companies. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
company_id | integer | The company they are at (see GET /companies). |
first_name required | string | First name. |
last_name required | string | Surname. |
job_title | string | Job title. |
email | string | Email address. |
phone | string | Telephone. |
mobile | string | Mobile. |
is_primary | boolean | true to make them the main contact at their company; the previous main contact stops being it. |
notes | string | Free notes, up to 10,000 characters. |
fields | object | The contact's extra fields, by name - see GET /fields. |
confirm_duplicate | boolean | true 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
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.
Body
| Field | Type | What it is |
|---|---|---|
company_id | integer | The company they are at (see GET /companies). |
first_name required | string | First name. |
last_name required | string | Surname. |
job_title | string | Job title. |
email | string | Email address. |
phone | string | Telephone. |
mobile | string | Mobile. |
is_primary | boolean | true to make them the main contact at their company; the previous main contact stops being it. |
notes | string | Free notes, up to 10,000 characters. |
fields | object | The contact's extra fields, by name - see GET /fields. |
confirm_duplicate | boolean | true 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
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
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
first_name | string | First name as typed. |
last_name | string | Surname as typed. |
email | string | Email address. |
phone | string | Telephone. |
mobile | string | Mobile. |
exclude | integer | A 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.
Body
| Field | Type | What it is |
|---|---|---|
action required | string | company (move them to another company), archive, restore or delete (delete: administrators only). One of: company, archive, restore, delete. |
ids required | array | The contacts to act on, by id: up to 500. |
value | string | For 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.
Query
| Name | Type | What it is |
|---|---|---|
ids required | string | Two to ten contact ids: ids=34&ids=35, or ids=34,35. |
keep | integer | The 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.
Body
| Field | Type | What it is |
|---|---|---|
ids required | array | The two to ten contacts to merge, the one kept among them. |
keep required | integer | The contact kept. |
choose | object | Field key to the contact whose value it takes, as GET /contacts/merge/preview names them. |
keep_all_notes | boolean | Keep 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
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the reference, title, company, description and the site's name, town and postcode. |
stage | integer | A stage id. |
pipeline | integer | A pipeline id. |
outcome | string | open, won or lost. One of: open, won, lost. |
owner | integer | An owner's user id. |
mine | boolean | true for the key's own user's enquiries. |
company | integer | A company id. |
category | string | A product category. |
archived | boolean | true to include archived enquiries. |
sort | string | recent (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> | string | Filter on one of your own fields. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
title required | string | What it is for, in a line. |
company_id required | integer | The customer (see GET /companies). |
contact_id | integer | The contact at that company. |
pipeline_id | integer | Which enquiry pipeline it starts on; the default one if left out. On a PATCH, move it with POST .../stage instead. |
stage_id | integer | The stage; the pipeline's first open stage if left out. |
source_id | integer | Where it came from (see GET /sources). |
product_category | string | What it is for: one of GET /product-categories; the company's default if left out. |
estimated_value | money | What it is worth, in your currency. |
probability | integer | The odds, 0 to 100; the stage's own figure if left out. |
expected_close_date | date | When a decision is expected. |
site_name | string | The site: the building, or the part of it. |
site_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | Where the work would be. |
description | string | The long description, up to 20,000 characters. |
owner_user_id | integer | Whose it is; the key's own user if left out. A new owner is emailed. |
lines | array | What is being asked for, as a list of lines (see PUT .../lines). On a POST only; change them afterwards with PUT .../lines. |
fields | object | The 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
title required | string | What it is for, in a line. |
company_id required | integer | The customer (see GET /companies). |
contact_id | integer | The contact at that company. |
pipeline_id | integer | Which enquiry pipeline it starts on; the default one if left out. On a PATCH, move it with POST .../stage instead. |
stage_id | integer | The stage; the pipeline's first open stage if left out. |
source_id | integer | Where it came from (see GET /sources). |
product_category | string | What it is for: one of GET /product-categories; the company's default if left out. |
estimated_value | money | What it is worth, in your currency. |
probability | integer | The odds, 0 to 100; the stage's own figure if left out. |
expected_close_date | date | When a decision is expected. |
site_name | string | The site: the building, or the part of it. |
site_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | Where the work would be. |
description | string | The long description, up to 20,000 characters. |
owner_user_id | integer | Whose it is; the key's own user if left out. A new owner is emailed. |
lines | array | What is being asked for, as a list of lines (see PUT .../lines). On a POST only; change them afterwards with PUT .../lines. |
fields | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
stage_id required | integer | The stage to move to - on any of the company's enquiry pipelines. |
outcome_reason | string | Why, where the stage is won or lost. |
winning_quote_id | integer | When moving to a won stage: which quotation won it. Marks that quotation won and raises its order, as the page does. |
customer_po | string | The customer's order number, for the order raised. |
promised_date | date | What 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.
Body
| Field | Type | What it is |
|---|---|---|
pipeline_id required | integer | One 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
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.
Body
| Field | Type | What it is |
|---|---|---|
lines required | array | The whole set of lines, each as below; an empty list removes them all. |
product_id | integer | A product from the price book; its wording, unit, price and cost fill whatever the line leaves blank. |
product_revision | string | The 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. |
finish | string | The 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. |
description | string | What is asked for. Needed unless a product supplies it. |
quantity required | quantity | How many. |
unit | string | each, bay, m and so on; the product's, or each. |
unit_price | money | Price each. Leave out while it is not yet priced. |
unit_cost | money | Cost each, if known. |
notes | string | A note on the line. |
dim_length | integer | Length in mm, for a product sold at a size. |
dim_width | integer | Width in mm. |
dim_height | integer | Height 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
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
company_choice | string | existing or new. One of: existing, new. |
company_id | integer | With existing: the company. |
new_company_name | string | With 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_choice | string | existing, new or none. One of: existing, new, none. |
contact_id | integer | With existing: the contact, at that company. |
new_contact_first_name | string | With new: their first name, and new_contact_last_name, new_contact_job_title, new_contact_email, new_contact_phone, new_contact_mobile. |
title required | string | The enquiry's title. |
stage_id | integer | The stage; the default pipeline's first if left out. |
owner_user_id | integer | Who looks after it; the key's own user if left out. |
source_id | integer | The enquiry source; the one called Website if there is one. |
product_category | string | What it is for. |
estimated_value | money | What it is worth. |
probability | integer | The odds; the stage's figure if left out. |
expected_close_date | date | When a decision is expected. |
site_postcode | string | Where the work would be. |
description | string | The description; the message and their answers if left out. |
email_customer | boolean | Whether to send the sender the 'in progress' email, where the company has it switched on. Defaults to the company's setting. |
fields | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
review_note | string | Why, 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
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.
Body
| Field | Type | What it is |
|---|---|---|
action required | string | owner, stage, archive, restore or delete (delete: administrators only). One of: owner, stage, archive, restore, delete. |
ids required | array | The enquiries to act on, by id: up to 500. |
value | string | For 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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the number, company, enquiry reference and title, and the site's name, town and postcode. |
status | string | draft, sent, accepted, rejected, superseded or expired. One of: draft, sent, accepted, rejected, superseded, expired. |
pipeline | integer | A pipeline id. |
company | integer | A company id. |
enquiry | integer | An enquiry id. |
owner | integer | An owner's user id. |
all | boolean | true for every revision; otherwise only the latest of each number. |
sort | string | recent (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> | string | Filter on one of your own fields. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
company_id required | integer | The customer. |
enquiry_id | integer | The 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_id | integer | The contact; the enquiry's if left out. |
quote_date | date | Dated; today if left out. |
valid_until | date | Valid until; 30 days on if left out. |
discount_pct | number | Whole-quote discount, per cent. |
vat_rate | number | VAT rate; the company's default if left out. |
currency | string | ISO code; the customer's usual currency, else yours. |
fx_rate | number | Units of that currency per one of yours; the company's rate table if left out. |
lead_time | string | Lead time, as written. |
delivery_terms | string | Delivery terms. |
payment_terms | string | Payment terms; the company's default if left out. |
notes | string | Notes printed on it; the enquiry's title if left out. |
owner_user_id | integer | Whose it is; the key's own user if left out. |
pipeline_id | integer | Which quote pipeline it travels; the default if left out. |
site_name | string | The 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_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | The site's postcode. |
lines | array | The lines, each as below. At least one, unless the enquiry supplies them. |
fields | object | The 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).
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.
Body
| Field | Type | What it is |
|---|---|---|
company_id required | integer | The customer. |
enquiry_id | integer | The 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_id | integer | The contact; the enquiry's if left out. |
quote_date | date | Dated; today if left out. |
valid_until | date | Valid until; 30 days on if left out. |
discount_pct | number | Whole-quote discount, per cent. |
vat_rate | number | VAT rate; the company's default if left out. |
currency | string | ISO code; the customer's usual currency, else yours. |
fx_rate | number | Units of that currency per one of yours; the company's rate table if left out. |
lead_time | string | Lead time, as written. |
delivery_terms | string | Delivery terms. |
payment_terms | string | Payment terms; the company's default if left out. |
notes | string | Notes printed on it; the enquiry's title if left out. |
owner_user_id | integer | Whose it is; the key's own user if left out. |
pipeline_id | integer | Which quote pipeline it travels; the default if left out. |
site_name | string | The 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_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | The site's postcode. |
lines | array | The lines, each as below. At least one, unless the enquiry supplies them. |
fields | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
status required | string | draft, sent, accepted (won), rejected (lost) or expired. One of: draft, sent, accepted, rejected, expired. |
outcome_reason | string | Why, for won or lost. |
customer_po | string | For won: the customer's order number, carried onto the order. |
promised_date | date | For 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.
Body
| Field | Type | What it is |
|---|---|---|
stage_id required | integer | A stage on one of the company's quote pipelines. |
outcome_reason | string | Why, where the stage records won or lost. |
customer_po | string | For a won stage: the customer's order number. |
promised_date | date | For 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
Body
| Field | Type | What it is |
|---|---|---|
pipeline_id required | integer | One 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.
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).
Body
| Field | Type | What it is |
|---|---|---|
to_email | string | Who 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_email | string | Anybody 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. |
subject | string | The subject; the company's own wording if left out. |
message | string | A note above the document, up to 4,000 characters. |
attach_pdf | boolean | Whether the PDF goes with it. Default true. |
include_lines | boolean | Whether the lines and totals go in the body. Default true. |
document_ids | array | Documents 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_button | boolean | Put 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. |
mask | integer | 1 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.
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.
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
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
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.
Form parts
| Field | Type | What it is |
|---|---|---|
file required | file | The 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_rate | number | The 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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the reference, PO number, company, the site's name, town and postcode, and the invoice reference. |
status | string | One workshop status. One of: confirmed, drawings, manufacturing, ready, delivered, installed, complete, cancelled. |
pipeline | integer | A pipeline id. |
open | boolean | true for orders still in hand. |
late | boolean | true for orders past their promised date and not delivered - never one on hold. |
held | boolean | true for orders on hold. |
uninvoiced | boolean | true for delivered orders with no invoice recorded. |
company | integer | A company id. |
owner | integer | An owner's user id. |
mine | boolean | true for the key's own user's orders. |
archived | boolean | true to include archived orders. |
sort | string | promised (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> | string | Filter on one of your own fields. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
company_id required | integer | The customer. |
contact_id | integer | The contact. |
enquiry_id | integer | The enquiry it came from; the customer, contact and site are taken from it when left out. |
quote_id | integer | The 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_id | integer | When 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. |
title | string | The job's name. Left out, the job goes by its enquiry's title, then its site's name. |
customer_po | string | The customer's own order number. |
order_date | date | Placed on; today if left out. |
promised_date | date | What the customer was promised. |
site_name | string | The site: the building, or the part of it. |
site_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | The site's postcode. |
access_notes | string | How to get in. |
vat_rate | number | VAT rate; the company's default if left out. |
currency | string | ISO code; yours if left out. |
fx_rate | number | Units of that currency per one of yours. |
lead_time | string | Lead time. |
notes | string | Notes. |
owner_user_id | integer | Whose it is; the key's own user if left out. |
pipeline_id | integer | Which order pipeline it travels; the default if left out. |
lines required | array | The lines, each as below. At least one. |
fields | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
customer_po | string | The customer's order number. |
order_date | date | Placed on; today if left out. |
promised_date | date | What 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.
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).
Body
| Field | Type | What it is |
|---|---|---|
company_id required | integer | The customer. |
contact_id | integer | The contact. |
enquiry_id | integer | The enquiry it came from; the customer, contact and site are taken from it when left out. |
quote_id | integer | The 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_id | integer | When 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. |
title | string | The job's name. Left out, the job goes by its enquiry's title, then its site's name. |
customer_po | string | The customer's own order number. |
order_date | date | Placed on; today if left out. |
promised_date | date | What the customer was promised. |
site_name | string | The site: the building, or the part of it. |
site_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | The site's postcode. |
access_notes | string | How to get in. |
vat_rate | number | VAT rate; the company's default if left out. |
currency | string | ISO code; yours if left out. |
fx_rate | number | Units of that currency per one of yours. |
lead_time | string | Lead time. |
notes | string | Notes. |
owner_user_id | integer | Whose it is; the key's own user if left out. |
pipeline_id | integer | Which order pipeline it travels; the default if left out. |
lines required | array | The lines, each as below. At least one. |
fields | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
status required | string | confirmed, drawings, manufacturing, ready, delivered, installed, complete or cancelled. One of: confirmed, drawings, manufacturing, ready, delivered, installed, complete, cancelled. |
outcome_reason | string | A 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.
Body
| Field | Type | What it is |
|---|---|---|
stage_id required | integer | A stage on one of the company's order pipelines. |
outcome_reason | string | A 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.
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.
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
Body
| Field | Type | What it is |
|---|---|---|
pipeline_id required | integer | One 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.
Body
| Field | Type | What it is |
|---|---|---|
invoice_ref | string | The invoice number from your accounts package. |
invoiced_at | date | When; 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.
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
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
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.
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.
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.
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.
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the reference, PO number, company, quotation and order references. |
status | string | draft, sent, paid or cancelled. One of: draft, sent, paid, cancelled. |
pipeline | integer | A pipeline id. |
open | boolean | true for draft and sent invoices. |
overdue | boolean | true for sent invoices past their due date. |
billing | string | part, full or none: how much of the invoice's order is billed. One of: part, full, none. |
company | integer | A company id. |
owner | integer | An owner's user id. |
mine | boolean | true for the key's own user's invoices. |
archived | boolean | true to include archived invoices. |
sort | string | recent (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> | string | Filter on one of your own fields. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
company_id required | integer | The customer. |
contact_id | integer | The contact. |
order_id | integer | The order it bills. To bill some of an order's lines, use POST /orders/{order_id}/invoice instead, which does the picking. |
quote_id | integer | The quotation. |
enquiry_id | integer | The enquiry. |
customer_po | string | The customer's order number. |
invoice_date | date | Dated; today if left out. |
due_date | date | Payment due; the company's payment days on if left out. |
payment_terms | string | Payment terms, as written. |
discount_pct | number | Whole-invoice discount, per cent; usually nil. |
vat_rate | number | VAT rate; the company's default if left out. |
currency | string | ISO code; yours if left out. |
fx_rate | number | Units of that currency per one of yours. |
notes | string | Notes printed on it. |
owner_user_id | integer | Whose it is; the key's own user if left out. |
pipeline_id | integer | Which invoice pipeline it travels; the default if left out. |
lines required | array | The lines, each as below. At least one. |
fields | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
lines | array | Which 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_date | date | Dated; today if left out. |
due_date | date | Payment due. |
customer_po | string | The customer's order number; the order's if left out. |
payment_terms | string | Payment terms; the quotation's if left out. |
notes | string | Notes 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.
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).
Body
| Field | Type | What it is |
|---|---|---|
company_id required | integer | The customer. |
contact_id | integer | The contact. |
order_id | integer | The order it bills. To bill some of an order's lines, use POST /orders/{order_id}/invoice instead, which does the picking. |
quote_id | integer | The quotation. |
enquiry_id | integer | The enquiry. |
customer_po | string | The customer's order number. |
invoice_date | date | Dated; today if left out. |
due_date | date | Payment due; the company's payment days on if left out. |
payment_terms | string | Payment terms, as written. |
discount_pct | number | Whole-invoice discount, per cent; usually nil. |
vat_rate | number | VAT rate; the company's default if left out. |
currency | string | ISO code; yours if left out. |
fx_rate | number | Units of that currency per one of yours. |
notes | string | Notes printed on it. |
owner_user_id | integer | Whose it is; the key's own user if left out. |
pipeline_id | integer | Which invoice pipeline it travels; the default if left out. |
lines required | array | The lines, each as below. At least one. |
fields | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
status required | string | draft, sent, paid or cancelled. One of: draft, sent, paid, cancelled. |
outcome_reason | string | A 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).
Body
| Field | Type | What it is |
|---|---|---|
stage_id required | integer | A stage on one of the company's invoice pipelines. |
outcome_reason | string | A 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
Body
| Field | Type | What it is |
|---|---|---|
pipeline_id required | integer | One 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).
Body
| Field | Type | What it is |
|---|---|---|
to_email | string | Who 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_email | string | Anybody 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. |
message | string | A note above the document, up to 2,000 characters. |
attach_pdf | boolean | Whether 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.
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
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
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.
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
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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the number, the supplier, their reference, the job and the lines. |
status | string | draft, awaiting_approval, approved, sent, closed or cancelled. One of: draft, awaiting_approval, approved, sent, closed, cancelled. |
open | boolean | true for orders not yet closed or cancelled. |
approve | boolean | true for the orders waiting for the acting user to approve them. |
purpose | string | job, stock or overheads. One of: job, stock, overheads. |
receipt | string | due (still to arrive), late (past the date wanted) or full (all here). One of: due, late, full. |
billing | string | unbilled (arrived, not invoiced) or variance (invoiced above the order). One of: unbilled, variance. |
supplier | integer | A supplier's company id. |
owner | integer | Who raised it, by user id. |
mine | boolean | true for the acting user's own orders. |
archived | boolean | true to include archived orders. |
sort | string | recent (the default), reference, required, value, supplier or status. One of: recent, reference, required, value, supplier, status, job, invoiced. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
reference | string | The purchase order's number. Leave out for the next in your format; send one to carry on from another system. |
purpose | string | job (the default), stock or overheads. One of: job, stock, overheads. |
job | string | The job it is for, by the enquiry's or order's reference. Needed when the purpose is job. |
order_id | integer | The order on that job it was raised from, to keep it against that order. |
company_id required | integer | The supplier. |
contact_id | integer | The supplier's contact. |
order_date | date | Dated; today if left out. |
required_date | date | When it is wanted by. |
supplier_ref | string | The supplier's own reference: their quotation number. |
deliver_to | string | Where it is to be delivered, as printed on the order. |
notes | string | Printed on the order, for the supplier. |
internal_notes | string | For colleagues; never printed or sent. |
vat_rate | number | VAT rate; your default if left out. |
currency | string | ISO code; yours if left out. |
fx_rate | number | Units of that currency per one of yours. |
owner_user_id | integer | Who raised it; the acting user if left out. |
lines required | array | The 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
reference | string | The purchase order's number. Leave out for the next in your format; send one to carry on from another system. |
purpose | string | job (the default), stock or overheads. One of: job, stock, overheads. |
job | string | The job it is for, by the enquiry's or order's reference. Needed when the purpose is job. |
order_id | integer | The order on that job it was raised from, to keep it against that order. |
company_id required | integer | The supplier. |
contact_id | integer | The supplier's contact. |
order_date | date | Dated; today if left out. |
required_date | date | When it is wanted by. |
supplier_ref | string | The supplier's own reference: their quotation number. |
deliver_to | string | Where it is to be delivered, as printed on the order. |
notes | string | Printed on the order, for the supplier. |
internal_notes | string | For colleagues; never printed or sent. |
vat_rate | number | VAT rate; your default if left out. |
currency | string | ISO code; yours if left out. |
fx_rate | number | Units of that currency per one of yours. |
owner_user_id | integer | Who raised it; the acting user if left out. |
lines required | array | The 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
note | string | A 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.
Body
| Field | Type | What it is |
|---|---|---|
reason required | string | Why, 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
to_email required | string | The supplier's address. Several addresses may be given, with commas between them or as an array; everybody is on the one email. |
cc_email | string | Anybody 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. |
subject | string | The subject; your usual wording if left out. |
message | string | The message; your usual wording if left out. |
attach_pdf | boolean | Attach the order as a PDF (the default). |
document_ids | array | Its 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.
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.
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.
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}/documents
Put a document on a purchase order
Without uploading it again: it stays where it is filed, and the purchase order lists it and can send it to the supplier. One it has already changes nothing and answers 200. Refused (409) once it is cancelled.
Body
| Field | Type | What it is |
|---|---|---|
attachment_id required | integer | A document the company already holds - one of its job's, from GET /documents. |
Example body
{
"attachment_id": 1
}
Answers 201
A Document. See Document.
Example call
curl \
-X POST \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
-H "Content-Type: application/json" \
-d '{"attachment_id": 1}' \
"https://manufactiq.co.uk/api/v1/purchase-orders/27/documents"
DELETE
/api/v1/purchase-orders/{purchase_order_id}/documents/{attachment_id}
Take a document off a purchase order
One put on it from its job: the file stays where it is filed. Whoever put it there may, or an administrator. One uploaded to it is deleted at DELETE /documents/{id}.
Answers 200
A Deleted. See Deleted.
Example call
curl \
-X DELETE \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
"https://manufactiq.co.uk/api/v1/purchase-orders/27/documents/61"
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.
Body
| Field | Type | What it is |
|---|---|---|
received_on | date | When it arrived; today if left out. |
delivery_note | string | The number on the supplier's delivery note. |
notes | string | Anything worth recording about it. |
lines required | array | What 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
supplier_reference required | string | Their invoice number. |
bill_date required | date | Their invoice's date. |
due_date | date | When they want paying. |
vat_amount | money | Their VAT, when it differs from the rate by rounding. |
notes | string | Anything worth recording about it. |
lines | array | What it charges for the order's lines, each {line_id, quantity, unit_price}; unit_price is the order's when left out. |
extras | array | Charges 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
status required | string | closed (nothing more to come), cancelled, or open to reopen one. One of: closed, cancelled, open. |
outcome_reason | string | Why, 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.
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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the name, code, description and category - and, with the materials add-on, the supplier's codes. |
category | string | One category. |
kind | string | product, service or material, for one kind only. One of: product, service, material. |
archived | boolean | true to include withdrawn products. |
uncosted | boolean | true for products with no cost recorded. |
unpriced | boolean | true for products priced per job. |
expenses | boolean | true for the products marked as expenses. |
finish | string | A finish's id for the products in it, or none for those without one - for a company with the finishes add-on. |
sort | string | name (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. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
kind | string | product (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. |
code | string | Its code, unique in the price book. |
name required | string | Its name. |
description | string | The wording a line starts with. |
unit | string | What it is sold by: each (the default), bay, m, m², linear m, hour, day, set, pair, or anything you like. |
unit_price | money | Sell price in your currency; leave out for a product priced per job. |
unit_cost | money | Cost; leave out if unknown. Zero means free, not unknown. |
category | string | Its category - what an enquiry can be filed under. |
finish | string | Its finish, by name from your list of finishes, for a company with the finishes add-on; null for none. Not for a service. |
dimensions | array | Which of length, width and height a line asks for, for a product sold in different sizes. An empty list for one size. |
supplier_company_id | integer | For a service, the company that does it; for a material, the one it is bought from - usually a supplier. Ignored for a product. |
supplier_code | string | For a material, the supplier's own code for it, which a purchase order quotes to them. Ignored for anything else. |
line_visibility | string | How 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_expense | boolean | true 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. |
notes | string | Notes, up to 1,000 characters. |
is_active | boolean | On sale (the default); false withdraws it. |
fields | object | The 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
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.
Body
| Field | Type | What it is |
|---|---|---|
kind | string | product (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. |
code | string | Its code, unique in the price book. |
name required | string | Its name. |
description | string | The wording a line starts with. |
unit | string | What it is sold by: each (the default), bay, m, m², linear m, hour, day, set, pair, or anything you like. |
unit_price | money | Sell price in your currency; leave out for a product priced per job. |
unit_cost | money | Cost; leave out if unknown. Zero means free, not unknown. |
category | string | Its category - what an enquiry can be filed under. |
finish | string | Its finish, by name from your list of finishes, for a company with the finishes add-on; null for none. Not for a service. |
dimensions | array | Which of length, width and height a line asks for, for a product sold in different sizes. An empty list for one size. |
supplier_company_id | integer | For a service, the company that does it; for a material, the one it is bought from - usually a supplier. Ignored for a product. |
supplier_code | string | For a material, the supplier's own code for it, which a purchase order quotes to them. Ignored for anything else. |
line_visibility | string | How 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_expense | boolean | true 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. |
notes | string | Notes, up to 1,000 characters. |
is_active | boolean | On sale (the default); false withdraws it. |
fields | object | The 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.
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
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.
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.
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"
POST
/api/v1/products/{product_id}/documents
Link a document to a product
Without uploading it again: it stays where it is filed and is listed on the product as well, and on the enquiries, quotes and orders that use it. Linking one it already has changes nothing and answers 200.
Body
| Field | Type | What it is |
|---|---|---|
attachment_id required | integer | A document the company already holds, from GET /documents. |
Example body
{
"attachment_id": 1
}
Answers 201
A Document. See Document.
Example call
curl \
-X POST \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
-H "Content-Type: application/json" \
-d '{"attachment_id": 1}' \
"https://manufactiq.co.uk/api/v1/products/3/documents"
DELETE
/api/v1/products/{product_id}/documents/{attachment_id}
Unlink a document from a product
The file stays where it is filed. Whoever linked it may, or an administrator. A document uploaded to the product is deleted at DELETE /documents/{id}.
Answers 200
A Deleted. See Deleted.
Example call
curl \
-X DELETE \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
"https://manufactiq.co.uk/api/v1/products/3/documents/61"
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.
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the title, details and company. |
status | string | open (the default), done or cancelled; all for every status. One of: open, done, cancelled, all. |
assignee | integer | A user id. |
mine | boolean | true for the key's own user's tasks. |
due | string | overdue, today, week or none. One of: overdue, today, week, none. |
sort | string | due (the default), due_desc, priority or created. One of: due, due_desc, priority, created, title, linked, assignee, status, company, enquiry, recent. |
x_<field> | string | Filter on one of your own fields. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
title required | string | What has to be done. |
details | string | More detail, up to 10,000 characters. |
due_date | date | When by. |
priority | string | low, normal (the default) or high. One of: low, normal, high. |
assigned_to_user_id | integer | Whose it is; the key's own user if left out. They are emailed, unless it is the key's own user. |
company_id | integer | The company it is about. |
contact_id | integer | The contact. |
enquiry_id | integer | The enquiry. |
order_id | integer | The order. |
fields | object | The 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
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.
Body
| Field | Type | What it is |
|---|---|---|
title required | string | What has to be done. |
details | string | More detail, up to 10,000 characters. |
due_date | date | When by. |
priority | string | low, normal (the default) or high. One of: low, normal, high. |
assigned_to_user_id | integer | Whose it is; the key's own user if left out. They are emailed, unless it is the key's own user. |
company_id | integer | The company it is about. |
contact_id | integer | The contact. |
enquiry_id | integer | The enquiry. |
order_id | integer | The order. |
fields | object | The 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
Body
| Field | Type | What it is |
|---|---|---|
status required | string | open, 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
action required | string | done, open, cancel, assign, due, priority or delete. One of: done, open, cancel, assign, due, priority, delete. |
ids required | array | The tasks to act on, by id: up to 500. |
value | string | For 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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the subject, detail and company. |
type | string | One activity type. One of: call, email, meeting, site_visit, note, other. |
user | integer | Who logged it: a user id. |
days | integer | Only the last so many days. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
activity_type | string | call, email, meeting, site_visit, note (the default) or other. One of: call, email, meeting, site_visit, note, other. |
subject required | string | What it was, in a line. |
body | string | The detail, up to 20,000 characters. @Name tells a colleague, as on the form. |
occurred_at | datetime | When; now if left out. |
company_id | integer | The company. At least one of company, contact or enquiry is needed. |
contact_id | integer | The contact. |
enquiry_id | integer | The 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
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the file name, description, company and references. |
company | integer | A company id. |
product | integer | A product id: the documents filed on it or linked to it. |
user | integer | Who uploaded it: a user id. |
days | integer | Only the last so many days. |
sort | string | recent (the default), oldest, name, name_desc, size or size_asc. One of: recent, oldest, name, name_desc, size, size_asc, attached, by. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Form parts
| Field | Type | What it is |
|---|---|---|
files required | file | One 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_id | integer | The record to file them against: at least one of these. |
contact_id | integer | A contact. |
enquiry_id | integer | An enquiry. |
quote_id | integer | A quotation. |
order_id | integer | An order. |
record_id | integer | A record on one of your own tabs. |
product_id | integer | A product in the price book: its datasheets, drawings and certificates. |
description | string | What 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.
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.
Query
| Name | Type | What it is |
|---|---|---|
inline | boolean | true 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
Body
| Field | Type | What it is |
|---|---|---|
description required | string | What 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.
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.
Query
| Name | Type | What it is |
|---|---|---|
q | string | Search the record's values and reference, and the company, enquiry, quote, order and invoice it names. |
company | integer | A company id. |
owner | integer | A user id, for a tab with a link to a person. |
quote | integer | A quote id - one revision - for a tab with a link to a quote. |
order | integer | An order id, for a tab with a link to an order. |
invoice | integer | An invoice id, for a tab with a link to an invoice. |
archived | boolean | true to include archived records. |
sort | string | recent (the default), created, oldest, reference, title or company. One of: recent, created, oldest, reference, title, company, owner. |
x_<field> | string | Filter on one of the tab's own fields: x_<field>=value, or x_<field>.from and x_<field>.to. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
fields required | object | The 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
fields required | object | The 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
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
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
from | date | The first day; today if left out. |
to | date | The last day, inclusive; 30 days on if left out. At most a year. |
kinds | string | Which 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. |
owner | integer | Whose diary: a user id. |
mine | boolean | true for the key's own user's diary. |
done | boolean | true 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.
Query
| Name | Type | What it is |
|---|---|---|
months | integer | 3, 6, 12, 24 or 36; 12 if left out. One of: 3, 6, 12, 24, 36. |
owner | integer | One person's share: a user id. |
mine | boolean | true 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.
Query
| Name | Type | What it is |
|---|---|---|
range | string | The 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. |
from | date | With range=custom: the first day. |
to | date | With range=custom: the last day. |
compare | string | What to set it against: previous, year, none. One of: previous, year, none. |
owner | integer | One person's share: a user id. |
mine | boolean | true 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.
Query
| Name | Type | What it is |
|---|---|---|
owner | integer | One person's share: a user id. |
mine | boolean | true 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.
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¬_status=cancelled).
Query
| Name | Type | What it is |
|---|---|---|
dataset required | string | What it is about: a key from GET /reports/datasets. Default enquiries. |
dim | string | What to group by: a dimension of the dataset. Default stage. |
measure | string | Which figures, repeated for more than one, up to four. Default count. |
date | string | Which date the period applies to: a date field of the dataset. |
range | string | The 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. |
from | date | With range=custom: the first day. |
to | date | With range=custom: the last day. |
compare | string | What to set it against: previous, year, none. One of: previous, year, none. |
when | list | Another 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. |
owner | list | Whose records: user ids, or mine, repeated for several. |
not_owner | list | Everyone but these: user ids, repeated for several. |
status | list | The statuses (workshop steps, outcomes, types) to keep, repeated for several. |
not_status | list | The statuses to leave out, repeated for several: everything else is kept. |
pipeline | list | The pipelines to keep: pipeline ids, repeated for several. |
not_pipeline | list | The pipelines to leave out: pipeline ids, repeated for several. |
stage | list | The stages to keep: stage ids, repeated for several. |
not_stage | list | The 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¬_status=cancelled).
Query
| Name | Type | What it is |
|---|---|---|
dataset required | string | What it lists: a key from GET /reports/datasets. |
col | string | Which columns, repeated, up to 16; the dataset's own if left out. |
sort | string | A column key to sort by. |
dir | string | asc or desc. One of: asc, desc. |
date | string | Which date the period applies to. |
range | string | A 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. |
from | date | With range=custom: the first day. |
to | date | With range=custom: the last day. |
when | list | Another 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. |
owner | list | Whose records: user ids, or mine, repeated for several. |
not_owner | list | Everyone but these: user ids, repeated for several. |
status | list | The statuses (workshop steps, outcomes, types) to keep, repeated for several. |
not_status | list | The statuses to leave out, repeated for several: everything else is kept. |
pipeline | list | The pipelines to keep: pipeline ids, repeated for several. |
not_pipeline | list | The pipelines to leave out: pipeline ids, repeated for several. |
stage | list | The stages to keep: stage ids, repeated for several. |
not_stage | list | The stages to leave out: stage ids, repeated for several. |
q | string | A search within the rows. |
limit | integer | At 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.
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
Body
| Field | Type | What it is |
|---|---|---|
name required | string | Its name, unique in the company. |
description | string | What it is for. |
visibility | string | shared (the default) or private to the key's own user. One of: shared, private. |
spec required | object | The 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.
Query
| Name | Type | What it is |
|---|---|---|
range | string | A 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. |
limit | integer | For 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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | Its name, unique in the company. |
description | string | What it is for. |
visibility | string | shared (the default) or private to the key's own user. One of: shared, private. |
spec required | object | The 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
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.
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
Body
| Field | Type | What it is |
|---|---|---|
name required | string | Its name, unique in the company. |
dataset required | string | The list it is over: enquiries, quotes, orders, invoices, tasks, companies, contacts, or records:<tab id>. Fixed once made. |
filters | object | The 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. |
columns | array | The column keys to show, in order, or null for the list's own. |
description | string | What it is for. |
visibility | string | shared (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
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.
Query
| Name | Type | What it is |
|---|---|---|
sort | string | An ordering the list offers, overriding the queue's. |
page | integer | Which page, counting from 1. Default 1. |
per_page | integer | Rows 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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | Its name, unique in the company. |
dataset required | string | The list it is over: enquiries, quotes, orders, invoices, tasks, companies, contacts, or records:<tab id>. Fixed once made. |
filters | object | The 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. |
columns | array | The column keys to show, in order, or null for the list's own. |
description | string | What it is for. |
visibility | string | shared (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
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.
Query
| Name | Type | What it is |
|---|---|---|
company | integer | Filed against a company: its id. |
contact | integer | A contact's id. |
enquiry | integer | An enquiry's id - which answers for the whole job. |
quote | integer | A quotation's id. |
order | integer | An order's id. |
invoice | integer | An invoice's id. |
limit | integer | At 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.
Query
| Name | Type | What it is |
|---|---|---|
page | integer | Which page of held messages, counting from 1. |
per_page | integer | Held 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.
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.
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
company_id | integer | The company it is about. |
contact_id | integer | The contact. |
enquiry_id | integer | The 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.
Body
| Field | Type | What it is |
|---|---|---|
visibility required | string | shared 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.
Body
| Field | Type | What it is |
|---|---|---|
attachment_ids required | array | Which attachments, by id from the email's attachments. |
target required | string | Where: 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
action required | string | enable (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_visibility | string | With 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.
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.
Query
| Name | Type | What it is |
|---|---|---|
limit | integer | At 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.
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
name | string | Its name; a sensible one is made up if left out. |
entity | string | For a blank start: the tab it watches, a tab key from GET /automations/starters. |
start | string | Instead 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
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The 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.
Body
| Field | Type | What it is |
|---|---|---|
entity | string | The tab it watches. Changing it takes away conditions and steps that belonged to the old tab; the answer's notes say so. |
event | string | created, updated, archived or date - whichever the tab allows. |
field | string | For updated: the field whose change sets it off (any field to leave it as 'anything changes'). For date: the date field it waits for. |
to | string | For updated on a choice, stage, user or yes/no field: only when it changes to this value. |
when | string | For date: before, on or after. One of: before, on, after. |
days | integer | For 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.
Body
| Field | Type | What it is |
|---|---|---|
match | string | all (every condition must hold) or any. One of: all, any. |
conditions required | array | The 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.
Body
| Field | Type | What it is |
|---|---|---|
steps required | array | The 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.
Body
| Field | Type | What it is |
|---|---|---|
on required | boolean | true 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.
Body
| Field | Type | What it is |
|---|---|---|
record_id | integer | The record to try it on. |
reference | string | Instead 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 ...'.
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.
Answers 200
A Deleted. See Deleted.
Example call
curl \
-X DELETE \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
"https://manufactiq.co.uk/api/v1/automations/1"
Search
One box across everything.
GET
/api/v1/search
Search everything
Companies, contacts, enquiries, quotations, orders, invoices and documents, a few of each, grouped - only the kinds in the key's role. Each hit carries its id, a title, a line of detail and the record's page.
Query
| Name | Type | What it is |
|---|---|---|
q required | string | What to look for; at least two characters. |
limit | integer | At most so many of each kind; 5 if left out, 25 at most. |
Answers 200
A SearchResult. See SearchResult.
Example call
curl \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
"https://manufactiq.co.uk/api/v1/search?q=racking"
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.
Query
| Name | Type | What it is |
|---|---|---|
entity | string | A kind of record: company, contact, enquiry, quote, order, invoice, product, task, api_key or tenant_settings. |
record_id | integer | One record of that kind: its history. |
limit | integer | At 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.
Query
| Name | Type | What it is |
|---|---|---|
inactive | boolean | true 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.
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.
Query
| Name | Type | What it is |
|---|---|---|
entity | string | enquiry, 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
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.
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.
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.
Query
| Name | Type | What it is |
|---|---|---|
entity | string | One 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.
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
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.
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
full_name required | string | Their name. |
email required | string | Their email address: the login, unique across the platform. |
role | string | tenant_admin for an administrator, standard for a Standard user, or role:<id> for one of the company's own roles (GET /roles). |
is_active | boolean | Whether they may sign in. A disabled account keeps its records. |
send_invitation | boolean | Email 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.
Body
| Field | Type | What it is |
|---|---|---|
full_name required | string | Their name. |
email required | string | Their email address: the login, unique across the platform. |
role | string | tenant_admin for an administrator, standard for a Standard user, or role:<id> for one of the company's own roles (GET /roles). |
is_active | boolean | Whether 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}/password-link
Email a user a link to choose a password
Never a password itself. Somebody still waiting to choose their first gets the invitation again; anybody else has their current password stopped at once and is sent a link to choose a new one. Refused for the key's own user (change it on My account) and for a disabled account (409).
Answers 200
A PasswordLink. See PasswordLink.
Example call
curl \
-X POST \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
"https://manufactiq.co.uk/api/v1/users/3/password-link"
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
name | string | The role's name; unique, and not Administrator or Standard. |
tabs | array | The 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. |
start | string | Where 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.
Body
| Field | Type | What it is |
|---|---|---|
name | string | The role's name; unique, and not Administrator or Standard. |
tabs | array | The 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.
Query
| Name | Type | What it is |
|---|---|---|
move_to | string | Where 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}.
Body
| Field | Type | What it is |
|---|---|---|
user_ids required | array | The 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.
Body
| Field | Type | What it is |
|---|---|---|
entity required | string | What it routes: enquiry, quote, order or invoice. One of: enquiry, quote, order, invoice. |
name | string | Its name, unique among the routes of its kind. |
description | string | What it is for. |
sort_order | integer | Its position among the routes of its kind. |
is_default | boolean | Where a new record of its kind starts. Making one the default takes the flag off the other. |
copy_stages_from | integer | Another 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.
Body
| Field | Type | What it is |
|---|---|---|
name | string | Its name, unique among the routes of its kind. |
description | string | What it is for. |
sort_order | integer | Its position among the routes of its kind. |
is_default | boolean | Where a new record of its kind starts. Making one the default takes the flag off the other. |
is_active | boolean | Offered 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The stage's name, unique on its pipeline. |
sort_order | integer | Its position, 0 to 255. |
outcome | string | Enquiry pipelines only: open (the default), won or lost. One of: open, won, lost. |
default_probability | integer | Enquiry pipelines only: the odds a typical enquiry has here, 0 to 100. |
maps_to | string | Quote, 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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The stage's name, unique on its pipeline. |
sort_order | integer | Its position, 0 to 255. |
outcome | string | Enquiry pipelines only: open (the default), won or lost. One of: open, won, lost. |
default_probability | integer | Enquiry pipelines only: the odds a typical enquiry has here, 0 to 100. |
maps_to | string | Quote, 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_active | boolean | Still 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
trigger_key required | string | The event: one of the pipeline's triggers (GET /pipelines/{pipeline_id} answers them for its kind). |
target_stage_id required | integer | The stage to move the record to, on this pipeline. |
after_days | integer | For 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
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
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The source's name. |
sort_order | integer | Its 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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The source's name. |
sort_order | integer | Its position, 0 to 255. |
is_active | boolean | Still 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.
Body
| Field | Type | What it is |
|---|---|---|
label required | string | What the form calls it. |
field_type required | string | text, textarea, number, money, date, datetime, select or checkbox (GET /vocabulary, extra_field_types). |
options | array | For a select: the choices, as a list or one per line. |
hint | string | The help under the box. |
is_required | boolean | Must be filled in. |
sort_order | integer | Its position. |
is_active | boolean | Shown 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.
Body
| Field | Type | What it is |
|---|---|---|
label required | string | What the form calls it. |
field_type required | string | text, textarea, number, money, date, datetime, select or checkbox (GET /vocabulary, extra_field_types). |
options | array | For a select: the choices, as a list or one per line. |
hint | string | The help under the box. |
is_required | boolean | Must be filled in. |
sort_order | integer | Its position. |
is_active | boolean | Shown 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.
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}.
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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The tab's name. |
item_name | string | What one record is called; 'record' if left out. |
reference_prefix | string | Letters, numbers and dashes; numbers its records, like SS-0001. |
description | string | What it is for. |
sort_order | integer | Its 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
name required | string | The tab's name. |
item_name | string | What one record is called; 'record' if left out. |
reference_prefix | string | Letters, numbers and dashes; numbers its records, like SS-0001. |
description | string | What it is for. |
sort_order | integer | Its position in the menu. |
is_active | boolean | Shown 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.
Query
| Name | Type | What it is |
|---|---|---|
confirm_name required | string | The 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.
Body
| Field | Type | What it is |
|---|---|---|
label required | string | What the form calls it. |
field_type required | string | One 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. |
options | array | For a select: the choices, as a list or one per line. |
hint | string | The help under the box. |
is_required | boolean | Must be filled in. |
is_title | boolean | Used as the record's title. One per tab; the first text or select field becomes it unless said otherwise. |
show_in_list | boolean | A 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.
Body
| Field | Type | What it is |
|---|---|---|
label required | string | What the form calls it. |
field_type required | string | One 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. |
options | array | For a select: the choices, as a list or one per line. |
hint | string | The help under the box. |
is_required | boolean | Must be filled in. |
is_title | boolean | Used as the record's title. One per tab; the first text or select field becomes it unless said otherwise. |
show_in_list | boolean | A column on the tab's list. |
sort_order | integer | Its position. |
is_active | boolean | On 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).
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
trading_name | string | The name on the paperwork. |
address | string | The address on the paperwork. |
phone | string | Telephone. |
email | string | Email address. |
website | string | Website. |
vat_number | string | VAT number. |
company_number | string | Company number. |
currency | string | The base currency, ISO code. |
currency_symbol | string | Its symbol. |
default_vat_rate | number | The VAT rate a new document starts with, per cent. |
financial_year_start_month | integer | 1 to 12. |
timezone | string | An IANA time zone name; GET /settings answers the company's. |
date_format | string | dmy, mdy or iso. One of: dmy, mdy, iso. |
quote_validity_days | integer | How long a quotation is valid, 1 to 365. |
quote_quiet_months | integer | A sent quotation nothing has happened on for this many months, 0 to 24, is marked expired at the next sign-in; 0 never. |
quote_footer | string | Printed under every quotation. |
order_footer | string | Printed under every order. |
teams_webhook_url | string | The Microsoft Teams webhook alerts go to; empty for none. Never answered back. |
teams_events | array | Which events are posted to Teams, by key (GET /settings). |
fx_rates | object | The 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.
Body
| Field | Type | What it is |
|---|---|---|
enquiry | object | {singular, plural} for 'Enquiry'; blank goes back to it. |
quote | object | {singular, plural} for 'Quote'; blank goes back to it. |
order | object | {singular, plural} for 'Order'; blank goes back to it. |
invoice | object | {singular, plural} for 'Invoice'; blank goes back to it. |
company | object | {singular, plural} for 'Company'; blank goes back to it. |
contact | object | {singular, plural} for 'Contact'; blank goes back to it. |
product | object | {singular, plural} for 'Product'; blank goes back to it. |
task | object | {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.
Body
| Field | Type | What it is |
|---|---|---|
pipeline | boolean | Pipeline board: true or false. |
orders | boolean | Orders and the production board: true or false. |
invoices | boolean | Invoices: true or false. |
calendar | boolean | Calendar: true or false. |
tasks | boolean | Tasks: true or false. |
activities | boolean | Activity log: true or false. |
contacts | boolean | Contacts: true or false. |
products | boolean | Products and the price book: true or false. |
documents | boolean | Documents: true or false. |
reports | boolean | Reports: 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.
Body
| Field | Type | What it is |
|---|---|---|
confirmed | object | {label, hidden} for this step. Confirmed and complete cannot be hidden. |
drawings | object | {label, hidden} for this step. Confirmed and complete cannot be hidden. |
manufacturing | object | {label, hidden} for this step. Confirmed and complete cannot be hidden. |
ready | object | {label, hidden} for this step. Confirmed and complete cannot be hidden. |
delivered | object | {label, hidden} for this step. Confirmed and complete cannot be hidden. |
installed | object | {label, hidden} for this step. Confirmed and complete cannot be hidden. |
complete | object | {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.
Body
| Field | Type | What it is |
|---|---|---|
prefix | string | Up to six letters or digits, or nothing. |
suffix | string | Up to six letters or digits, or nothing. |
digits | integer | How many digits the number has. |
year | string | none, start or end. One of: none, start, end. |
year_digits | integer | 4 or 2. |
separator | string | -, /, . or nothing. |
start | integer | The first number the count gives, 1 to 999,999. A count already past it carries on; no number is issued twice. |
revision_start | integer | The 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
Body
| Field | Type | What it is |
|---|---|---|
payment_days | integer | Days until an invoice is due, 0 to 365. |
payment_terms | string | Payment terms, as written. |
lead_time | string | Lead time, as written. |
delivery_terms | string | Delivery terms. |
quote_notes | string | Notes a new quotation starts with. |
product_category | string | The 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.
Body
| Field | Type | What it is |
|---|---|---|
bank_name | string | On the invoice. |
account_name | string | On the invoice. |
sort_code | string | On the invoice. |
account_number | string | On the invoice. |
iban | string | On the invoice. |
payment_instructions | string | On the invoice. |
quote_terms | string | Under the quotation. |
invoice_terms | string | Under the invoice. |
quote_title | string | The quotation's title. |
quote_intro | string | Its opening text. |
quote_footnote | string | Its footnote. |
quote_closing | string | Its closing text. |
quote_email_subject | string | The subject when one is emailed. |
quote_email_message | string | The message above it. |
quote_email_signoff | string | The sign-off. |
show_codes | boolean | Print product codes. |
show_line_discount | boolean | Print line discounts. |
show_unit | boolean | Print units. |
show_prepared_by | boolean | Print who prepared it. |
show_contact_email | boolean | Print the contact's email. |
show_dims | boolean | Print sizes. |
quote_email_lines | boolean | Put the lines in the email. |
quote_email_pdf | boolean | Attach the PDF to the email. |
quote_accept_online | boolean | Put an Accept button in the email, which the customer confirms online; it waits under Quotes > Accepted. |
ack_title | string | The order acknowledgement's title. |
ack_intro | string | Its opening text. |
ack_closing | string | Its closing text. |
ack_terms | string | The terms under it; null keeps the quotation's. |
ack_email_subject | string | The subject when one is emailed. |
ack_email_message | string | The message above it. |
ack_email_pdf | boolean | Attach the acknowledgement as a PDF. |
ack_email_lines | boolean | Put 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.
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.
Body
| Field | Type | What it is |
|---|---|---|
notify_user_ids | array | Who is emailed when an enquiry arrives. |
owner_user_id | integer | Whose name new web enquiries start in. |
redirect_url | string | The page to show afterwards. |
allowed_origin | string | The website's domain, for the origin check. |
turnstile_secret | string | Cloudflare Turnstile's secret; empty string clears it. |
fields | object | Which questions the form asks: key to off, optional or required. |
confirm_email | boolean | Email the sender that it was received. |
confirm_subject | string | That email's subject. |
confirm_message | string | Its message. |
progress_email | boolean | Email the sender when it is approved. |
progress_subject | string | That email's subject. |
progress_message | string | Its 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.
Body
| Field | Type | What it is |
|---|---|---|
action required | string | on, 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.
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
Body
| Field | Type | What it is |
|---|---|---|
brand_primary | string | A hex colour, such as #1F4E79; empty for ManufactIQ's own. |
brand_accent | string | The 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"
POST
/api/v1/settings/branding/logo
Upload the company's logo
Replaces the one before. It is shown on every page and printed on the paperwork in place of ManufactIQ's.
Form parts
| Field | Type | What it is |
|---|---|---|
logo required | file | The image, as a multipart part named logo: PNG, JPEG, GIF or WebP, up to 512 KB. |
Answers 200
A Branding. See Branding.
Example call
curl \
-X POST \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
-F "files=@drawing.pdf" \
"https://manufactiq.co.uk/api/v1/settings/branding/logo"
DELETE
/api/v1/settings/branding/logo
Remove the company's logo
Back to the ManufactIQ wordmark.
Answers 200
A Branding. See Branding.
Example call
curl \
-X DELETE \
-H "Authorization: Bearer $MANUFACTIQ_KEY" \
"https://manufactiq.co.uk/api/v1/settings/branding/logo"
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
require_known_contact | boolean | File a message only when somebody on it is already a contact. |
retention_days | integer | Keep captured email for so many days, 1 to 3650. |
capture_mailbox | string | The 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
Body
| Field | Type | What it is |
|---|---|---|
kind | string | domain or address. One of: domain, address. |
pattern required | string | The domain or address. |
note | string | Why. |
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
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
default_item | string | QuickBooks: the item for lines with no product (an item id) - and for every line while products_as_items is false. |
income_account | string | QuickBooks: the income account (an account id). |
item_type | string | QuickBooks: NonInventory or Service for products made there. |
products_as_items | boolean | QuickBooks: 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_field | string | QuickBooks: 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_note | string | QuickBooks: 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_account | string | Xero: the account for lines with no product (an account code). Sage: the ledger account for them (a ledger account id). |
item_account | string | Xero: the account for new products (an account code). Sage: the ledger account for them (a ledger account id). |
invoice_status | string | Xero: AUTHORISED (approved) or DRAFT. Sage: FINAL or DRAFT. |
use_crm_numbers | boolean | QuickBooks and Xero: give the books the CRM's invoice numbers. Sage numbers its own and takes the CRM's as the reference. |
sync_payments | boolean | Mark invoices paid here when the books record the payment. |
taxes | object | VAT 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.
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.
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.
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.
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.
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.
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.
Body
| Field | Type | What it is |
|---|---|---|
api_key required | string | The previous CRM's API key. Used for the call and forgotten. |
pod | string | The 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.
Body
| Field | Type | What it is |
|---|---|---|
api_key required | string | The previous CRM's API key. Used for the call and forgotten. |
pod | string | The previous CRM's region: na1, eu1, au1 or ca1. One of: na1, eu1, au1, ca1. |
dry_run | boolean | Read everything and report, write nothing. |
include_history | boolean | Bring notes, tasks and the rest of the history too. |
include_documents | boolean | Copy 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.
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:
| Field | Type | What it is |
|---|---|---|
web_url | string | The record's own page in the CRM. |
fields | object | The record's extra fields, by name, where the tab takes them. |
RecordProductRevision14 fields
| Field | Type | What it is |
|---|---|---|
label | string | Its letter: A, B, C ... |
current | boolean | Whether it is the product's current revision. |
note | string | What changed from the revision before. |
description | string | Its own wording - what a line on it starts with. |
unit_price | money | Its own sell price, or null when priced per job. |
unit_cost | money | Its own cost, or null when unknown. |
dimensions | string | Which of length, width and height a line on it asks for. |
scope | string | product - on the product's page - or job: kept to the job it was made on. |
enquiry_id | integer | The job's enquiry it was made on, or null. |
quote_id | integer | The quotation it was made on, or null. |
order_id | integer | The order it was made on, or null. |
document_count | integer | How many documents it holds. |
made_by | string | Who made it. |
created_at | datetime | When. |
RecordFinish4 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The finish's id. |
name | string | Its name: what a product's or a line's finish says. |
sort_order | integer | Where it comes in the list. |
is_active | boolean | Offered in the dropdowns; false once retired - it stays where it is used. |
RecordCompany22 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The company's id. |
name | string | The company's name. |
company_type | string | prospect, customer, main_contractor, architect, supplier or other. |
sector | string | Free text: what they do. |
phone | string | Switchboard number. |
email | string | General address. |
website | string | Website. |
address_line1 | string | Address, first line. |
address_line2 | string | Address, second line. |
city | string | Town or city. |
county | string | County. |
postcode | string | Postcode, tidied to UK form where it is one. |
country | string | Country; United Kingdom unless said. |
currency | string | The currency they are usually quoted in (ISO code), or null for yours. |
notes | string | Free notes. |
owner_user_id | integer | The account owner's user id. |
owner_name | string | The account owner's name. |
contact_count | integer | Live contacts at the company. |
open_enquiry_count | integer | Enquiries still open. |
is_archived | boolean | Archived rather than deleted. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordContact15 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The contact's id. |
company_id | integer | The company they are at, or null. |
company_name | string | That company's name. |
first_name | string | First name. |
last_name | string | Surname. |
full_name | string | Both together. |
job_title | string | Job title. |
email | string | Email address. |
phone | string | Telephone. |
mobile | string | Mobile. |
is_primary | boolean | The main contact at their company; one per company. |
notes | string | Free notes. |
is_archived | boolean | Archived rather than deleted. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordEnquiry36 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The enquiry's id. |
reference | string | Its reference, in the company's own format - carried by its quote, order and invoices. |
title | string | What it is for, in a line. |
company_id | integer | The customer. |
company_name | string | The customer's name. |
contact_id | integer | The contact, or null. |
contact_name | string | The contact's name. |
contact_email | string | The contact's address. |
pipeline_id | integer | The pipeline it is on. |
pipeline_name | string | That pipeline's name. |
stage_id | integer | The stage it is at. |
stage_name | string | That stage's name. |
stage_outcome | string | open, won or lost - what the stage means. |
source_id | integer | Where it came from (an enquiry source), or null. |
source_name | string | That source's name. |
product_category | string | What it is for: a category from the price book. |
estimated_value | money | What it is worth, in your currency. |
probability | integer | The odds, 0 to 100. |
expected_close_date | date | When a decision is expected. |
site_name | string | The site: the building, or the part of it. |
site_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | Where the work would be. |
description | string | The long description. |
lines_total | money | The total of its priced lines. |
lines_cost | money | The total cost of its costed lines. |
unpriced_lines | integer | Lines still without a price. |
outcome_reason | string | Why it was won or lost. |
closed_at | datetime | When it was won or lost, or null while open. |
owner_user_id | integer | Whose it is. |
owner_name | string | Their name. |
quote_count | integer | Quotations raised for it, every revision counted. |
is_archived | boolean | Archived rather than deleted. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordEnquiryLine18 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The line's id. |
line_no | integer | Its position. |
product_id | integer | The product it came from, or null for free text. |
product_revision | string | The product revision the line is on, or null: internal, never on the customer's paperwork. |
finish | string | The 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_code | string | That product's code. |
product_name | string | That product's name. |
description | string | What is being asked for. |
quantity | quantity | How many. |
unit | string | each, bay, m and so on. |
dim_length | integer | Length in mm, where asked for at a size. |
dim_width | integer | Width in mm. |
dim_height | integer | Height in mm. |
unit_price | money | Price each, or null while unpriced. |
unit_cost | money | Cost each, or null if unknown. |
line_total | money | quantity × unit_price. |
line_cost | money | quantity × unit_cost, or null. |
notes | string | A note on the line. |
RecordQuote49 fields
| Field | Type | What it is |
|---|---|---|
id | integer | This revision's id. |
quote_number | string | The quotation's number - its enquiry's reference. |
revision | integer | Which revision this is, from 1. |
latest_revision | integer | The newest revision of the number. |
status | string | draft, sent, accepted (won), rejected (lost), superseded or expired. |
enquiry_id | integer | The enquiry it is for, or null. |
enquiry_reference | string | That enquiry's reference. |
enquiry_title | string | That enquiry's title. |
company_id | integer | The customer. |
company_name | string | The customer's name. |
contact_id | integer | The contact, or null. |
contact_name | string | The contact's name. |
contact_email | string | The contact's address. |
pipeline_id | integer | The quote pipeline it is on. |
pipeline_name | string | That pipeline's name. |
stage_id | integer | The stage it is at. |
stage_name | string | That stage's name. |
quote_date | date | Dated. |
valid_until | date | Valid until. |
discount_pct | number | Whole-quote discount, per cent. |
currency | string | The document's currency (ISO code). |
fx_rate | number | Units of that currency per one of yours, fixed when it was raised. |
vat_rate | number | VAT rate applied, per cent. |
net_subtotal | money | The lines added up, after their own discounts. |
discount_amount | money | The whole-document discount taken off. |
net_total | money | Net of VAT, after discount. |
vat_amount | money | VAT. |
gross_total | money | Total payable. |
total_cost | money | Cost of the costed lines. |
uncosted_lines | integer | Lines with no cost recorded, so the margin is incomplete - an expense's line is not counted. |
expense_net | money | What of net_total is expenses: lines of products marked as one, charged and invoiced as usual and left out of the profit. |
expense_cost | money | What of total_cost is those lines' cost. The margin is (net_total - expense_net) less (total_cost - expense_cost). |
lead_time | string | Lead time, as written. |
delivery_terms | string | Delivery terms. |
payment_terms | string | Payment terms. |
notes | string | Notes printed on it. |
site_name | string | The site, printed on it: the building, or the part of it. |
site_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | The site's postcode. |
outcome_reason | string | Why it was won or lost. |
sent_at | datetime | When it was first sent. |
decided_at | datetime | When it was won or lost. |
owner_user_id | integer | Whose it is. |
owner_name | string | Their name. |
line_count | integer | How many lines. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordQuoteLine19 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The line's id. |
line_no | integer | Its position. |
product_id | integer | The product it came from, or null. |
product_revision | string | The product revision the line is on, or null: internal, never on the customer's paperwork. |
finish | string | The 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_code | string | The code printed. |
description | string | The wording printed. |
quantity | quantity | How many. |
unit | string | each, bay, m and so on. |
dim_length | integer | Length in mm, where sold at a size. |
dim_width | integer | Width in mm. |
dim_height | integer | Height in mm. |
unit_price | money | Price each. |
line_discount_pct | number | Discount on this line, per cent. |
line_total | money | After the line's own discount. |
unit_cost | money | Cost each, or null. |
line_cost | money | quantity × unit_cost, or null. |
visibility | string | On 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_into | integer | For a merged line, the line_no that carries its price; else null. |
RecordOrder59 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The order's id. |
reference | string | Its 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. |
status | string | confirmed, drawings, manufacturing, ready, delivered, installed, complete or cancelled. |
status_label | string | What the company calls that step. |
quote_id | integer | The quotation it came from, or null. |
quote_number | string | That quotation's number. |
quote_revision | integer | That quotation's revision. |
enquiry_id | integer | The enquiry, or null. |
enquiry_reference | string | That enquiry's reference. |
enquiry_title | string | That enquiry's title. |
extras_of_order_id | integer | For 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. |
title | string | The job's own name, or null. |
job_name | string | What the job is called: its own name, else its enquiry's title, else its site's name. |
company_id | integer | The customer. |
company_name | string | The customer's name. |
contact_id | integer | The contact, or null. |
contact_name | string | The contact's name. |
pipeline_id | integer | The order pipeline it is on. |
pipeline_name | string | That pipeline's name. |
stage_id | integer | The stage it is at. |
stage_name | string | That stage's name. |
customer_po | string | The customer's own order number. |
order_date | date | Placed on. |
promised_date | date | What the customer was promised. |
delivered_date | date | When it was delivered. |
installed_date | date | When it was installed. |
site_name | string | The site: the building, or the part of it. |
site_address | string | The site's building and street, a line each. |
site_town | string | The site's town. |
site_county | string | The site's county. |
site_postcode | string | The site's postcode. |
access_notes | string | How to get in. |
currency | string | The document's currency (ISO code). |
fx_rate | number | Units of that currency per one of yours, fixed when it was raised. |
vat_rate | number | VAT rate applied, per cent. |
net_subtotal | money | The lines added up, after their own discounts. |
discount_amount | money | The whole-document discount taken off. |
net_total | money | Net of VAT, after discount. |
vat_amount | money | VAT. |
gross_total | money | Total payable. |
total_cost | money | Cost of the costed lines. |
uncosted_lines | integer | Lines with no cost recorded, so the margin is incomplete - an expense's line is not counted. |
expense_net | money | What of net_total is expenses: lines of products marked as one, charged and invoiced as usual and left out of the profit. |
expense_cost | money | What of total_cost is those lines' cost. The margin is (net_total - expense_net) less (total_cost - expense_cost). |
invoiced_at | date | When it was fully billed, or null. |
invoice_ref | string | The invoice that billed it, or one typed from your accounts package. |
lead_time | string | Lead time, as written. |
notes | string | Notes. |
outcome_reason | string | The note on its last status change. |
completed_at | datetime | When it was completed or cancelled. |
owner_user_id | integer | Whose it is. |
owner_name | string | Their name. |
is_late | boolean | Past its promised date and not yet delivered - never while on hold. |
days_late | integer | Days past the promised date (negative while there is time). |
on_hold | boolean | On hold: its status and stage kept, not late, out of the open order book. |
held_at | datetime | When it was put on hold, or null while it is not. |
is_archived | boolean | Archived rather than deleted. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordOrderLine21 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The line's id - kept for life, because invoices point at it. |
line_no | integer | Its position. |
quote_line_id | integer | The quote line it was copied from, or null. |
product_id | integer | The product, or null. |
product_revision | string | The product revision the line is on, or null: internal, never on the customer's paperwork. |
finish | string | The 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_code | string | The code. |
description | string | The wording. |
quantity | quantity | How many ordered. |
quantity_delivered | quantity | How many have gone out. |
unit | string | each, bay, m and so on. |
dim_length | integer | Length in mm, where sold at a size. |
dim_width | integer | Width in mm. |
dim_height | integer | Height in mm. |
unit_price | money | Price each, discounts already folded in. |
unit_cost | money | Cost each, or null. |
line_total | money | quantity × unit_price. |
line_cost | money | quantity × unit_cost, or null. |
notes | string | A note on the line. |
visibility | string | On 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_into | integer | For a merged line, the line_no that carries its price; else null. |
RecordInvoice49 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The invoice's id. |
reference | string | Its reference - the order's, with -2, -3 for further invoices on the job. |
status | string | draft, sent, paid or cancelled. |
quote_id | integer | The quotation, or null. |
quote_number | string | That quotation's number. |
order_id | integer | The order it bills, or null for one raised on its own. |
order_reference | string | That order's reference. |
enquiry_id | integer | The enquiry, or null. |
enquiry_reference | string | That enquiry's reference. |
company_id | integer | The customer. |
company_name | string | The customer's name. |
contact_id | integer | The contact, or null. |
contact_name | string | The contact's name. |
contact_email | string | The contact's address. |
pipeline_id | integer | The invoice pipeline it is on. |
pipeline_name | string | That pipeline's name. |
stage_id | integer | The stage it is at. |
stage_name | string | That stage's name. |
customer_po | string | The customer's own order number. |
invoice_date | date | Dated. |
due_date | date | Payment due. |
payment_terms | string | Payment terms, as written. |
discount_pct | number | Whole-invoice discount, per cent; usually nil. |
currency | string | The document's currency (ISO code). |
fx_rate | number | Units of that currency per one of yours, fixed when it was raised. |
vat_rate | number | VAT rate applied, per cent. |
net_subtotal | money | The lines added up, after their own discounts. |
discount_amount | money | The whole-document discount taken off. |
net_total | money | Net of VAT, after discount. |
vat_amount | money | VAT. |
gross_total | money | Total payable. |
total_cost | money | Cost of the costed lines. |
uncosted_lines | integer | Lines with no cost recorded, so the margin is incomplete - an expense's line is not counted. |
expense_net | money | What of net_total is expenses: lines of products marked as one, charged and invoiced as usual and left out of the profit. |
expense_cost | money | What of total_cost is those lines' cost. The margin is (net_total - expense_net) less (total_cost - expense_cost). |
notes | string | Notes printed on it. |
outcome_reason | string | The note on its last status change. |
sent_at | datetime | When it was sent. |
paid_at | date | When it was paid. |
owner_user_id | integer | Whose it is. |
owner_name | string | Their name. |
is_overdue | boolean | Sent and past its due date. |
days_overdue | integer | Days past the due date (negative while there is time). |
order_net_total | money | The order's net value, where it bills one. |
order_remaining_net | money | What is still to bill on that order, by value. |
order_is_settled | boolean | Whether that order is now fully billed. |
is_archived | boolean | Archived rather than deleted. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordInvoiceLine16 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The line's id. |
line_no | integer | Its position. |
order_line_id | integer | The order line it bills, or null for a line not on the order. |
product_id | integer | The product, or null. |
product_code | string | The code. |
description | string | The wording. |
finish | string | The finish it is made in - for a company with the finishes add-on - or null. Printed with the line on the customer's copy. |
quantity | quantity | How many are billed on this invoice. |
unit | string | each, bay, m and so on. |
unit_price | money | Price each. |
unit_cost | money | Cost each, or null. |
line_total | money | quantity × unit_price. |
line_cost | money | quantity × unit_cost, or null. |
notes | string | A note on the line. |
visibility | string | On 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_into | integer | For a merged line, the line_no that carries its price; else null. |
RecordBillableLine14 fields
| Field | Type | What it is |
|---|---|---|
order_line_id | integer | The order line. |
line_no | integer | Its position on the order. |
product_id | integer | The product, or null. |
product_code | string | The code. |
description | string | The wording. |
quantity | quantity | Ordered. |
quantity_invoiced | quantity | Already on an invoice that is not cancelled. |
quantity_remaining | quantity | Left to invoice. |
is_fully_invoiced | boolean | Nothing left on it. |
unit | string | each, bay, m and so on. |
bill_price | money | The price agreed: the line total spread over the quantity. |
unit_price | money | The order line's price each. |
visibility | string | How it appears on the customer's copy; a cost_only line is never billable. |
merged_into | integer | For a merged line, the order line_no that carries its price. |
RecordCoverage6 fields
| Field | Type | What it is |
|---|---|---|
net_total | money | The order's net value. |
billed_net | money | Invoiced so far, net, not counting cancelled invoices. |
remaining_net | money | Still to bill, never below zero. |
invoice_count | integer | Invoices raised against it that are not cancelled. |
is_settled | boolean | Fully billed, within a penny. |
percent | integer | How much of it is billed, 0 to 100. |
RecordProduct23 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The product's id. |
revision | string | Its current revision (A, B, C ...), or null for a product never revised. |
kind | string | product; 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. |
code | string | Its code, unique in your price book, or null. |
name | string | Its name. |
description | string | The wording a line starts with. |
unit | string | What it is sold by: each, bay, m and so on. |
dimensions | array | Which of length, width, height a line asks for; empty for one size. |
unit_price | money | Sell price in your currency, or null when priced per job. |
unit_cost | money | Cost, or null when unknown - which is what switches margin reporting off for it. |
category | string | Its category - what an enquiry can be filed under. |
finish | string | Its 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_id | integer | For a service, the company that does it; for a material, the one it is bought from; or null. |
supplier_name | string | That company's name. |
supplier_code | string | For a material, the supplier's own code for it, or null. |
line_visibility | string | How a line made from it starts out on the customer's copy: shown, cost_only or included. |
is_expense | boolean | An expense - delivery, carriage, hire: its lines are charged and invoiced as usual, and left out of every margin. |
notes | string | Notes. |
is_active | boolean | On sale; false once withdrawn. |
times_quoted | integer | Quote lines that came from it. |
times_enquired | integer | Enquiry lines that came from it. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordTask21 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The task's id. |
title | string | What has to be done. |
details | string | More detail. |
due_date | date | When by. |
priority | string | low, normal or high. |
status | string | open, done or cancelled. |
assigned_to_user_id | integer | Whose it is. |
assignee_name | string | Their name. |
company_id | integer | The company it is about, or null. |
company_name | string | That company's name. |
contact_id | integer | The contact, or null. |
contact_name | string | That contact's name. |
enquiry_id | integer | The enquiry, or null. |
enquiry_reference | string | That enquiry's reference. |
order_id | integer | The order, or null. |
order_reference | string | That order's reference. |
completed_at | datetime | When it was done. |
is_overdue | boolean | Open and past its due date. |
created_by | integer | Who made it. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordActivity14 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The entry's id. |
activity_type | string | call, email, meeting, site_visit, note or other. |
subject | string | What it was. |
body | string | The detail. |
occurred_at | datetime | When. |
user_id | integer | Who logged it. |
logged_by | string | Their name. |
company_id | integer | The company, or null. |
company_name | string | That company's name. |
contact_id | integer | The contact, or null. |
contact_name | string | That contact's name. |
enquiry_id | integer | The enquiry, or null. |
enquiry_reference | string | That enquiry's reference. |
created_at | datetime | When it was logged. |
RecordDocument22 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The document's id. |
filename | string | The name it was uploaded with, and downloads as. |
content_type | string | Its media type, from the extension. |
byte_size | integer | Size in bytes. |
checksum | string | SHA-256 of the file. |
description | string | What it is. |
company_id | integer | The customer it is held for. |
company_name | string | That company's name. |
contact_id | integer | The contact it was filed against, or null. |
enquiry_id | integer | The enquiry, or null. |
enquiry_reference | string | That enquiry's reference. |
quote_id | integer | The quotation, or null. |
quote_number | string | That quotation's number. |
order_id | integer | The order, or null. |
order_reference | string | That order's reference. |
record_id | integer | The record on one of your own tabs, or null. |
record_reference | string | That record's reference. |
product_id | integer | The product it was uploaded to, or null. |
product_name | string | That product's name. |
uploaded_by | integer | Who uploaded it. |
uploaded_by_name | string | Their name. |
created_at | datetime | When. |
RecordRecord22 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The record's id. |
module_id | integer | The tab it is on. |
reference | string | Its reference, where the tab numbers its records. |
title | string | Its name. |
company_id | integer | The company it is linked to, or null. |
company_name | string | That company's name. |
contact_id | integer | The contact, or null. |
contact_name | string | That contact's name. |
enquiry_id | integer | The enquiry, or null. |
enquiry_reference | string | That enquiry's reference. |
quote_id | integer | The quote - one revision of it - or null. |
quote_number | string | That quote's number. |
quote_revision | integer | And its revision. |
order_id | integer | The order, or null. |
order_reference | string | That order's reference. |
invoice_id | integer | The invoice, or null. |
invoice_reference | string | That invoice's reference. |
owner_user_id | integer | The person it is linked to, or null. |
owner_name | string | Their name. |
is_archived | boolean | Archived rather than deleted. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordEmail17 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The message's id. |
subject | string | Subject line. |
from_address | string | Who sent it. |
from_name | string | Their name as sent. |
sent_at | datetime | When it was sent. |
received_at | datetime | When it was captured. |
visibility | string | shared, or private to whoever captured it. |
match_rule | string | How it was filed: job, thread, token, contact, domain or none. |
company_id | integer | The company it is filed against, or null. |
company_name | string | That company's name. |
contact_id | integer | The contact, or null. |
enquiry_id | integer | The enquiry, or null. |
enquiry_reference | string | That enquiry's reference. |
quote_id | integer | The quotation, or null. |
order_id | integer | The order, or null. |
invoice_id | integer | The invoice, or null. |
captured_by | string | Whose capture address caught it. |
RecordEmailAttachment6 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The attachment's id. |
filename | string | Its name. |
content_type | string | Its media type. |
byte_size | integer | Size in bytes. |
is_inline | boolean | Part of the message's own layout (a signature image) rather than a file sent. |
refused_reason | string | Why the file was not kept, or null. |
RecordUser7 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The user's id - what owner and assignee fields take. |
full_name | string | Their name. |
email | string | Their address. |
role | string | tenant_admin or standard. |
role_name | string | Administrator, Standard, or the company's own role. |
is_active | boolean | Whether they can sign in. |
last_login_at | datetime | When they last signed in. |
RecordPipeline9 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The pipeline's id. |
entity | string | enquiry, quote, order or invoice. |
name | string | Its name. |
description | string | What it is for. |
is_default | boolean | Where a new record of its kind starts. |
is_active | boolean | Offered on forms and boards. |
sort_order | integer | Its position. |
stages | array | Its stages, in order: id, name, sort_order, outcome, maps_to, default_probability, is_active. |
rules | array | What moves records along it: trigger_key, after_days, target_stage_id, target_name, is_active. |
RecordStage8 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The stage's id. |
pipeline_id | integer | Its pipeline. |
name | string | Its name. |
sort_order | integer | Its position. |
outcome | string | open, won or lost. |
maps_to | string | The 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_probability | integer | The odds a typical enquiry has here. |
is_active | boolean | Still offered. |
RecordSource4 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The source's id. |
name | string | Its name. |
sort_order | integer | Its position. |
is_active | boolean | Still offered. |
RecordRole5 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The role's id. |
name | string | Its name. |
tabs | array | The tab keys it includes. |
people | integer | How many hold it. |
active_people | integer | How many of them are active. |
RecordApiKey11 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The key's id. |
name | string | What it was called. |
key_prefix | string | The start of the key, to tell it apart. |
scope | string | read or write. |
user_id | integer | The account it acts as. |
user_name | string | Their name. |
expires_at | datetime | When it stops, or null. |
last_used_at | datetime | When it was last used. |
use_count | integer | How many requests it has made. |
revoked_at | datetime | When it was revoked, or null. |
created_at | datetime | When it was made. |
RecordFieldDefinition8 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The field's id. |
name | string | Its key - how it is sent and answered under 'fields'. |
label | string | What the form calls it. |
field_type | string | text, textarea, number, money, date, datetime, select, checkbox, or a link type on a tab of your own. |
options | array | The choices of a select field. |
hint | string | The help under the box. |
is_required | boolean | Must be filled in. |
sort_order | integer | Its position. |
RecordTab8 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The tab's id. |
name | string | Its name. |
slug | string | Its address segment - what the records routes take. |
item_name | string | What one record is called. |
reference_prefix | string | The prefix its references take, or null if not numbered. |
description | string | What it is for. |
is_active | boolean | Shown in the menu. |
fields | array | Its fields, each as a FieldDefinition with is_title and show_in_list as well. |
RecordQueue11 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The queue's id. |
name | string | Its name. |
dataset | string | The list it is over: enquiries, quotes, orders, invoices, tasks, companies, contacts, or records:<tab id>. |
filters | object | The list page's arguments it carries. |
filter_text | array | The same, in words. |
columns | array | Its column keys, or null for the list's own. |
description | string | What it is for. |
visibility | string | shared or private. |
owner_user_id | integer | Who made it. |
owner_name | string | Their name. |
count | integer | How many records are in it now. |
RecordSavedReport8 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The report's id. |
name | string | Its name. |
description | string | What it is for. |
kind | string | totals or list. |
spec | object | Its specification: the same keys the report routes take. |
visibility | string | shared or private. |
owner_user_id | integer | Who made it. |
owner_name | string | Their name. |
RecordAutomation14 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The automation's id. |
name | string | Its name. |
sentence | string | What it does, in a line. |
entity | string | The tab it watches. |
event | string | created, updated, archived or date. |
is_active | boolean | Switched on. |
problems | array | What stops it being switched on. |
run_count | integer | How many times it has acted. |
last_run_at | datetime | When it last acted. |
failure_streak | integer | Failures in a row. |
off_reason | string | Why it switched itself off, if it did. |
definition | object | The trigger, conditions and steps, as the builder stores them. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordAutomationRun12 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The run's id. |
automation_id | integer | Which automation. |
automation_name | string | Its name. |
entity | string | The tab of the record it acted on. |
record_id | integer | The record. |
record_label | string | The record's reference or name. |
cause | string | What set it off. |
outcome | string | done, partly, failed or nothing. |
summary | string | What happened, in a line. |
detail | array | What each step did. |
actor_name | string | Who made the change that set it off. |
created_at | datetime | When. |
RecordAuditEntry10 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The entry's id. |
entity | string | The kind of record: company, enquiry, quote, order, invoice, product, task, contact, api_key, tenant_settings. |
record_id | integer | Which record. |
record_label | string | Its reference or name at the time. |
action | string | created, updated, archived, restored, deleted or status_changed. |
actor_user_id | integer | Who, or null for the system. |
actor_name | string | Their name - with the API key's name when it was a program. |
changes | object | Field name to {from, to}. |
summary | string | The change in a line. |
created_at | datetime | When. |
RecordCalendarEvent15 fields
| Field | Type | What it is |
|---|---|---|
kind | string | meeting, note, task, enquiry, quote or order. |
id | integer | The record's id. |
on | date | The day. |
at | datetime | The time, for a call or meeting; null for an all-day item. |
ends_at | datetime | Half an hour on, for a call or meeting. |
title | string | What it is. |
ref | string | The record's reference, where it has one. |
state | string | Its status or stage. |
done | boolean | Already happened or completed. |
value | money | What it is worth, where it is worth something. |
company_id | integer | The company, or null. |
company_name | string | Its name. |
enquiry_id | integer | The enquiry, or null. |
owner_user_id | integer | Whose it is. |
owner_name | string | Their name. |
RecordWebSubmission27 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The submission's id. |
status | string | pending, approved or rejected. |
received_at | datetime | When the website sent it. |
name | string | The sender's name. |
email | string | The sender's address. |
company | string | The company they gave. |
job_title | string | Their job title. |
phone | string | Telephone. |
mobile | string | Mobile. |
address_line1 | string | Address. |
address_line2 | string | Address, second line. |
city | string | Town or city. |
county | string | County. |
postcode | string | Postcode. |
site_postcode | string | Where the work would be. |
product | string | What it is for. |
budget | string | The budget band. |
timescale | string | When it is needed. |
heard_about | string | How they heard of you. |
subject | string | Subject. |
message | string | What they wrote. |
page | string | The page of your site the form was on. |
enquiry_id | integer | The enquiry it became, once approved. |
enquiry_reference | string | That enquiry's reference. |
reviewer_name | string | Who approved or rejected it. |
reviewed_at | datetime | When. |
review_note | string | Why it was rejected. |
RecordPurchaseOrder43 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The purchase order's id. |
reference | string | Its number, in your format or as typed when it was raised. |
purpose | string | job, stock or overheads. |
status | string | draft, awaiting_approval, approved, sent, closed or cancelled. |
receipt_state | string | none, part or full: how much of it has arrived. |
billing_state | string | none, part or full: how much of it the supplier has invoiced. |
company_id | integer | The supplier. |
company_name | string | The supplier's name. |
contact_id | integer | The supplier's contact, or null. |
contact_name | string | That contact's name. |
contact_email | string | That contact's address. |
enquiry_id | integer | The job's enquiry, or null. |
order_id | integer | The job's order it was raised from, or null. |
job_reference | string | The job's reference, or null for stock and overheads. |
job_company_name | string | The customer the job is for. |
order_date | date | Dated. |
required_date | date | Wanted by. |
supplier_ref | string | The supplier's own reference: their quotation number. |
deliver_to | string | Where it is to be delivered. |
notes | string | Printed on it, for the supplier. |
internal_notes | string | For colleagues; never printed or sent. |
currency | string | The order's currency (ISO code). |
fx_rate | number | Units of that currency per one of yours, fixed when it was raised. |
vat_rate | number | VAT rate, per cent. |
net_total | money | Net of VAT. |
vat_amount | money | VAT. |
gross_total | money | Total. |
billed_net | money | What the supplier's invoices against it come to, net. |
billed_variance | money | What those invoices charge beyond the order's prices. |
approved_net | money | The value approved, in your currency, or null. |
approved_by_name | string | Who approved it. |
approved_at | datetime | When. |
submitted_by_name | string | Who submitted it for approval. |
submitted_at | datetime | When. |
sent_at | datetime | When it went to the supplier. |
closed_at | datetime | When it was closed. |
outcome_reason | string | Why it was rejected, closed or cancelled. |
is_late | boolean | Wanted by a date that has passed, with things still to come. |
owner_user_id | integer | Who raised it. |
owner_name | string | Their name. |
is_archived | boolean | Archived rather than deleted. |
created_at | datetime | When the record was made. |
updated_at | datetime | When it last changed. |
RecordPurchaseOrderLine13 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The line's id; deliveries and invoices name it. |
line_no | integer | Its position. |
product_id | integer | The product, or null. |
kind | string | product, 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_code | string | The code to order by. |
description | string | The wording. |
quantity | quantity | How many are ordered. |
unit | string | each, sheet, m and so on. |
unit_price | number | Price each before VAT, to four places. |
line_total | money | quantity × unit_price. |
quantity_received | quantity | How many have arrived. |
quantity_billed | quantity | How many the supplier has invoiced. |
notes | string | A note for the supplier. |
RecordPurchaseReceipt6 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The delivery's id. |
received_on | date | When it arrived. |
delivery_note | string | The supplier's delivery note number. |
notes | string | Anything recorded about it. |
created_by_name | string | Who booked it in. |
lines | array | What arrived: {line_id, description, quantity, unit}. |
RecordPurchaseBill13 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The supplier invoice's id. |
supplier_reference | string | Their invoice number. |
bill_date | date | Their invoice's date. |
due_date | date | When they want paying. |
currency | string | Its currency (ISO code). |
vat_rate | number | VAT rate, per cent. |
net_total | money | Net. |
vat_amount | money | VAT, as their invoice has it. |
gross_total | money | Total. |
expected_net | money | The same quantities at the order's prices. |
variance | money | What it charges beyond the order (net_total - expected_net). |
notes | string | Anything recorded about it. |
lines | array | What it charges: {line_id, description, quantity, unit_price, line_total}; line_id null for a charge not on the order. |
RecordIndex6 fields
| Field | Type | What it is |
|---|---|---|
name | string | ManufactIQ API. |
version | string | The API version in every address. |
application | string | The CRM's own version. |
docs_url | string | The reference. |
openapi_url | string | The OpenAPI document. |
authenticate | string | How to send a key. |
RecordMe7 fields
| Field | Type | What it is |
|---|---|---|
key | object | The key, as an ApiKey. |
user | object | The person the key acts as, as a User. |
company | object | id, name, slug and plan. |
scope | string | read or write. |
rate_limit | object | per_minute, and remaining in this minute. |
server_time | datetime | The server's clock, in its own time. |
version | string | The API version. |
RecordOpenAPI3 fields
| Field | Type | What it is |
|---|---|---|
openapi | string | 3.0.3. |
paths | object | Every route. |
components | object | Every schema. |
RecordNewApiKey6 fields
| Field | Type | What it is |
|---|---|---|
key | string | The key itself - shown here once and never again. |
id | integer | The key's id. |
name | string | What it is for. |
scope | string | read or write. |
user_id | integer | Whom it acts as. |
expires_at | datetime | When it stops, or null. |
RecordNotifications5 fields
| Field | Type | What it is |
|---|---|---|
notify_task_assigned | boolean | A task is assigned to them. |
notify_enquiry_assigned | boolean | An enquiry is assigned to them. |
notify_quote_decision | boolean | A quotation of theirs is accepted or rejected. |
notify_daily_digest | boolean | The daily digest. |
notify_mentioned | boolean | A colleague mentions them in a note. |
RecordDeleted3 fields
| Field | Type | What it is |
|---|---|---|
deleted | boolean | true. |
id | integer | What was deleted. |
name | string | What it was called. |
RecordAction2 fields
| Field | Type | What it is |
|---|---|---|
ok | boolean | true. |
messages | array | What the CRM would have said to a person doing the same thing on screen. |
RecordLinkedRecord8 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The record's id. |
reference | string | Its reference. |
title | string | Its name. |
created_at | datetime | When. |
module_id | integer | The tab it is on. |
module_name | string | That tab's name. |
slug | string | That tab's address segment. |
item_name | string | What one record on that tab is called. |
RecordSearchResult1 fields
| Field | Type | What it is |
|---|---|---|
groups | array | One group per kind with hits: key, label, and items of {id, title, sub, web_url}. |
RecordSalesReport14 fields
| Field | Type | What it is |
|---|---|---|
months | integer | The period, in months. |
owner_id | integer | Whose share, or null for everybody. |
generated_at | datetime | When. |
performance | object | Won, lost and open by month, with win rate, average deal and the sales cycle. |
forecast | array | The open pipeline by expected close month, with weighted values. |
by_owner | array | Won and lost by person. |
by_category | array | Won and lost by product category. |
by_source | array | Won and lost by enquiry source. |
top_customers | array | The customers who bought most. |
quotes | object | Quotation conversion, or null for a role without quotes. |
lost_reasons | array | Why work was lost, by reason. |
lost_total | integer | How many were lost. |
margin | object | The margin quoted, or null for a role without quotes. |
monthly | array | Won value by month. |
RecordKpiHub11 fields
| Field | Type | What it is |
|---|---|---|
period | object | from, to and label. |
comparison | object | The period it is set against, or null. |
compare_label | string | What the comparison is called. |
sales | object | kpis, snapshots, stage_rows, by_product, by_source - or null. |
workshop | object | kpis, snapshots, load, by_area - or null. |
cash | object | kpis, snapshots, aged, aged_total - or null. |
customers | object | kpis and the tables about customers - or null. |
people | object | Each person's figures - or null. |
tabs | array | A block per tab of your own that carries dates. |
fields | array | A block per extra field worth grouping by. |
overview | object | The lead tiles and snapshots from every section. |
RecordDashboard6 fields
| Field | Type | What it is |
|---|---|---|
headline | object | Open 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. |
conversion | object | Won, lost and the rate over twelve months. |
pipeline_by_stage | array | Open enquiries and their value at each stage. |
order_book | object | Open 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_book | object | Drafts, outstanding, overdue and billed this month. |
attention | array | What needs a person today: tone, kind, title, detail, web_url. |
RecordDataset9 fields
| Field | Type | What it is |
|---|---|---|
key | string | What the report routes take as dataset. |
label | string | What it is called. |
dimensions | array | What it can be grouped by: key and label. |
measures | array | Its figures: key, label, format (count, money, pct, days, number) and hint. |
dates | array | The date fields a period can apply to. |
filters | array | The filter arguments it takes (owner, status, pipeline, stage, x_<field>...). |
filter_values | array | Each filter's key, label, the argument that leaves values out (not_<key>) and the values it offers: value and label. |
columns | array | The columns a list of it can show. |
defaults | object | dim, measures, date and columns when none is sent. |
RecordTotalsReport11 fields
| Field | Type | What it is |
|---|---|---|
spec | object | The report, every word checked. |
args | object | The same as query-string arguments. |
title | string | The report in a sentence. |
period | object | from, to and label. |
comparison | object | The period it is set against, or null. |
measures | array | The figures: key, label and format. |
dimension | object | What it is grouped by. |
rows | array | One per group: key, label, each measure's value, its previous value and the change. |
totals | object | The same, added up. |
other | object | Groups beyond the first sixty, folded together, or null. |
web_url | string | The report's own page. |
RecordListReport9 fields
| Field | Type | What it is |
|---|---|---|
spec | object | The list, every word checked. |
args | object | The same as query-string arguments. |
title | string | What it lists. |
period | object | from, to and label, or null for any date. |
columns | array | The columns: key, label and format. |
rows | array | One per record, keyed by column. |
total | integer | How many rows matched. |
truncated | boolean | Whether the limit cut the rows short. |
web_url | string | The list's own page. |
RecordProductCategories2 fields
| Field | Type | What it is |
|---|---|---|
groups | array | Each group's name and its items of {value, label}. |
default | string | The category a new enquiry starts on. |
RecordVocabulary14 fields
| Field | Type | What it is |
|---|---|---|
terms | object | The company's words for each record type: singular and plural. |
company_types | array | key and label. |
activity_types | array | key and label. |
task_priorities | array | key and label. |
task_statuses | array | key and label. |
quote_statuses | array | key and label. |
order_statuses | array | key, the company's label, and whether the step is hidden. |
invoice_statuses | array | key and label. |
stage_outcomes | array | open, won, lost. |
pipeline_entities | array | enquiry, quote, order, invoice. |
submission_statuses | array | pending, approved, rejected. |
field_types | array | The types a field on a tab of your own may have. |
extra_field_types | array | The types an extra field on a shipped tab may have. |
key_scopes | array | read and write. |
RecordSettings13 fields
| Field | Type | What it is |
|---|---|---|
letterhead | object | name, address, phone, email, website, vat_number, company_number. |
settings | object | currency, currency_symbol, default_vat_rate, financial_year_start_month, timezone, date_format, quote_validity_days, quote_quiet_months, quote_footer, order_footer. |
currency | object | base, symbol, and rates by ISO code. |
terms | object | The company's words for each record type. |
modules | object | Which tabs are switched on, by key. |
order_steps | array | The workshop steps in order: key, label, hidden, fixed. |
numbering | object | The reference format. |
example_reference | string | What the next reference would look like. |
defaults | object | payment_days, payment_terms, lead_time, delivery_terms, quote_notes, product_category. |
documents | object | What the quotation and invoice carry; the bank details for a role with invoices. |
plan | object | key, label, trial_ends_on, max_users, used_users, max_storage_mb, used_mb. |
features | object | Each plan feature and whether it is in force. |
api | object | version, rate_limit_per_minute, docs_url. |
RecordPasswordLink3 fields
| Field | Type | What it is |
|---|---|---|
sent | boolean | Whether the email went. |
kind | string | invitation (not yet chosen a password) or reset. |
user_id | integer | Whose. |
RecordTabTemplate6 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The template's id, for POST /tabs/install/{template_id}. |
name | string | Its name. |
slug | string | Its slug. |
item_name | string | What one record is called. |
description | string | What it is for. |
installed | boolean | Whether the company already has it. |
RecordCompanySettings5 fields
| Field | Type | What it is |
|---|---|---|
letterhead | object | name, address, phone, email, website, vat_number, company_number. |
settings | object | The columns of Administration > Company details. |
teams_webhook_set | boolean | Whether a Teams webhook is set; the address itself is never answered. |
teams_events | array | The events posted to Teams, or null for every event. |
fx_rates | object | ISO code to rate. |
RecordWording1 fields
| Field | Type | What it is |
|---|---|---|
<term> | object | singular and plural for each record type. |
RecordModules1 fields
| Field | Type | What it is |
|---|---|---|
<module> | boolean | Whether each part of the CRM is on. |
RecordOrderSteps1 fields
| Field | Type | What it is |
|---|---|---|
<step> | object | label and hidden for each workshop step. |
RecordNumbering3 fields
| Field | Type | What it is |
|---|---|---|
job | object | prefix, suffix, digits, year, year_digits, separator, start. |
revision_start | integer | The revision a job's first quotation takes, 1 or 0. |
example_reference | string | The number the next job will take. |
RecordDefaults6 fields
| Field | Type | What it is |
|---|---|---|
payment_days | integer | . |
payment_terms | string | . |
lead_time | string | . |
delivery_terms | string | . |
quote_notes | string | . |
product_category | string | . |
RecordDocuments1 fields
| Field | Type | What it is |
|---|---|---|
<key> | string | Each document setting; the show_*, quote_email_* and ack_email_* flags are booleans, and ack_terms is null until written. |
RecordWebsiteForm4 fields
| Field | Type | What it is |
|---|---|---|
on | boolean | Whether the website may post. |
endpoint | string | Where it posts to, or null. |
settings | object | Who is told, the owner, the questions, the emails; turnstile_secret_set. |
waiting | integer | Website enquiries waiting for approval. |
RecordBranding6 fields
| Field | Type | What it is |
|---|---|---|
brand_primary | string | Hex colour or null. |
brand_accent | string | Hex colour or null. |
logo_filename | string | The logo's name, or null. |
logo_set | boolean | Whether there is one. |
entitled | boolean | Whether the plan allows changes. |
derived | object | The shades the colours produce. |
RecordEmailCapture6 fields
| Field | Type | What it is |
|---|---|---|
require_known_contact | boolean | The known-contact rule. |
retention_days | integer | How long captured mail is kept. |
capture_mailbox | string | The mailbox in force. |
own_mailbox | string | The company's own, if set. |
default_mailbox | string | The installation's. |
exclusions | array | id, kind, pattern, note, created_at. |
RecordBooks14 fields
| Field | Type | What it is |
|---|---|---|
provider | string | quickbooks, xero or sage. |
label | string | Its name. |
configured | boolean | Whether this installation has an app registered with the provider. |
entitled | boolean | Whether the plan includes it. |
connected | boolean | Whether the connection can be used now. |
status | string | connected, reconnect, disconnected or not_connected. |
name | string | The company, organisation or business connected. |
country | string | Its country. |
base_currency | string | Its currency. |
connected_at | datetime | When. |
payments_checked_at | datetime | When payments were last checked. |
last_error | string | The last problem, if any. |
settings | object | The choices in force. |
activity | array | The latest log entries. |
RecordBooksOptions6 fields
| Field | Type | What it is |
|---|---|---|
provider | string | quickbooks, xero or sage. |
about | object | What the books say about themselves. |
offered | object | The items, accounts and tax codes or rates to choose from, and QuickBooks' custom fields (custom_fields). |
rates | array | The VAT rates in use here. |
chosen | object | The choice in force for each rate. |
settings | object | The choices in force. |
RecordPaymentsChecked3 fields
| Field | Type | What it is |
|---|---|---|
provider | string | quickbooks, xero or sage. |
checked | integer | Invoices asked about. |
paid | integer | Marked paid here. |
RecordBooksSent6 fields
| Field | Type | What it is |
|---|---|---|
provider | string | quickbooks, xero or sage. |
invoice_id | integer | Which invoice. |
created | boolean | A new invoice there (true) or its copy updated (false). |
number | string | Its number in the books. |
state | string | Its state there, where known. |
note | string | Anything worth knowing about what happened. |
RecordImportRun10 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The run's id. |
pod | string | The previous CRM's region. |
status | string | pending, running, done, failed or cancelled. |
dry_run | boolean | Whether it wrote anything. |
started_at | datetime | When. |
finished_at | datetime | When. |
message | string | How it ended. |
totals | object | What it read and wrote, by kind. |
running | boolean | Still going. |
log_tail | string | The last of its log. |
RecordImportRuns4 fields
| Field | Type | What it is |
|---|---|---|
items | array | Recent runs, as ImportRun. |
active | object | The run going now, or null. |
linked | object | Records linked to the previous CRM, by kind. |
pods | object | The regions. |
RecordImportTest2 fields
| Field | Type | What it is |
|---|---|---|
account | string | Whose account the key is. |
found | object | What the account holds, by kind. |
RecordForgotten1 fields
| Field | Type | What it is |
|---|---|---|
forgotten | integer | Links removed. |
RecordAutomationStarters3 fields
| Field | Type | What it is |
|---|---|---|
starters | array | key, name, blurb and tab for each ready-made automation. |
tabs | array | key, label, singular and events for each tab an automation may watch. |
entitled | boolean | Whether the plan includes automations. |
RecordAutomationVocabulary14 fields
| Field | Type | What it is |
|---|---|---|
key | string | The tab. |
label | string | Its name. |
events | array | What it can be watched for. |
watch_fields | array | Fields whose change can set an automation off. |
date_fields | array | Fields a date trigger can wait for. |
fields | array | Every field a condition may test: path, group, label, type, writable, choices. |
operators | object | By field type: the comparisons, each with key and label. |
whens | array | before, on, after. |
steps | array | The step kinds the tab allows. |
modes | array | How a field may be given a value. |
targets | array | What a set_field step may act on. |
stage_targets | array | What a move_stage step may act on. |
limits | object | conditions, actions and days at most. |
step_keys | string | The keys each step kind takes. |
RecordAutomationTest5 fields
| Field | Type | What it is |
|---|---|---|
automation_id | integer | Which. |
record | object | id, label, entity, web_url. |
conditions | array | Each condition's text and whether it holds. |
would_act | boolean | Whether the automation would act on this record. |
steps | array | What each step would do: status and text. |
RecordReviewQueue4 fields
| Field | Type | What it is |
|---|---|---|
held | array | Quarantined messages, as HeldEmail. |
paging | object | page, per_page, total and pages of the held list. |
unfiled | array | Accepted messages filed against nothing, as Email. |
showing_everybody | boolean | Whether the held list is the whole company's. |
RecordHeldEmail11 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The delivery's id, for release and discard. |
received_at | datetime | When it arrived. |
from_address | string | Who sent it. |
subject | string | Subject line. |
verdict | string | quarantine. |
verdict_reason | string | Why it was held. |
dkim | string | pass, fail or none. |
spf | string | pass, fail or none. |
provider | string | How it arrived. |
mailbox_owner | string | Whose address took it. |
mailbox_user_id | integer | Their user id. |
RecordDecided3 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The delivery's id. |
decision | string | released or discarded. |
message | string | What the CRM would have said on screen. |
RecordSavedFiles6 fields
| Field | Type | What it is |
|---|---|---|
ok | boolean | Something was saved, or nothing needed saving. |
saved | array | The files saved, by name. |
already | array | Already there, so not saved again. |
refused | array | Each refusal, in words. |
target | object | key, name, kind and id of the record. |
messages | array | What the CRM would have said on screen. |
RecordCaptureAddress7 fields
| Field | Type | What it is |
|---|---|---|
on | boolean | Whether mail sent to the address is filed. |
address | string | The address to CC, or null before enable. |
status | string | active, paused, revoked or off. |
status_label | string | The same, in words. |
default_visibility | string | What new messages default to: shared or private. |
created_at | datetime | When the address was issued. |
held | integer | Messages waiting for a decision. |
RecordDuplicateMatch8 fields
| Field | Type | What it is |
|---|---|---|
id | integer | The existing record's id. |
label | string | Its name. |
detail | string | Where it is, or who it is at. |
reasons | array | Why it matched, in words. |
strong | boolean | Whether the match is strong enough to refuse a save without confirm_duplicate. |
is_archived | boolean | Whether it is archived. |
company_id | integer | A contact's company, where the match is a contact. |
email | string | A contact's email, where the match is a contact. |
RecordImportedLines3 fields
| Field | Type | What it is |
|---|---|---|
filename | string | The sheet's name. |
lines | array | Each 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. |
summary | object | sheet, header_row, read, usable, and the rows that could not be used. |
RecordBulkResult6 fields
| Field | Type | What it is |
|---|---|---|
action | string | What was done. |
done | array | The ids it was done to. |
unchanged | array | The ids that already were as asked. |
skipped | array | id, label and reason for each record it was not done to. |
notes | array | Anything else worth knowing, in words. |
message | string | What happened, as the list page would say it. |
RecordMergePreview5 fields
| Field | Type | What it is |
|---|---|---|
keep | integer | The record kept unless you say otherwise: the one with most attached. |
records | array | id, label, created_at, is_archived, counts by table, and attached in words. |
fields | array | key, label, values by record id, and default: the record whose value is taken. |
notes | object | Each record's notes, the default, and combine: whether more than one has notes. |
moves | string | Everything a merge moves to the record kept. |
RecordMerged4 fields
| Field | Type | What it is |
|---|---|---|
kept | object | The record kept, as it now is. |
merged | array | id and label of each record merged into it and deleted. |
moved | object | Rows moved to it, by table. |
message | string | What happened, in words. |
Errors
Every refusal is JSON with a status, a code and a message.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_json | The body is not a JSON object. |
| 401 | unauthenticated | No 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. |
| 403 | plan_required | The company's plan does not include the API, or the part of the CRM the route needs. |
| 403 | read_only_key | A read-only key called a route that writes. |
| 403 | administrator_required | The route is for company administrators and the key's user is not one. |
| 403 | not_in_role | The tab the route belongs to is not in the key's user's role. |
| 403 | forbidden | Something only the record's owner, or an administrator, may do. |
| 404 | not_found | No such record in this company, or no such address. |
| 405 | method_not_allowed | A real address called with a method it does not take; Allow lists the ones it does. |
| 409 | duplicate, in_use, quote_decided, order_exists, quote_not_won, invoice_locked, no_lines, order_cancelled, already_decided, storage_full, list_gone, tab_not_ready | The request is well formed but the record's state refuses it; the code says which, and the message says what to do instead. |
| 413 | too_large | The request is bigger than the installation accepts. |
| 415 | unsupported_media_type | Send JSON, with Content-Type: application/json. |
| 422 | validation_failed | A value the form would refuse, in the form's own words; details carries every message. |
| 429 | rate_limited | The key has made its allowance of requests this minute; Retry-After says how many seconds to wait. |
| 500 | server_error | Something went wrong on the server and has been logged. |
| 503 | not_ready | The installation's database has not been brought up to date for the API yet, or the PDF engine is not installed. |