Factor (0.108.0)

Download OpenAPI specification:Download

Factor Api

factor

Public API Documentation for factor.io

organizations

Get one organization by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "name": "string",
  • "created": "string",
  • "updated": "string"
}

Update one organization by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string
Request Body schema: application/json
name
string or null

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "name": "string",
  • "created": "string",
  • "updated": "string"
}

get organization by sid for non-org users

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "name": "string",
  • "logo100x100": "string"
}

users

List users (employee only)

Authorizations:
BearerAuth
query Parameters
organizationSid
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "users": [
    ],
  • "page": {
    }
}

Get one user by sid or email

Authorizations:
BearerAuth
path Parameters
sidOrEmail
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "email": "string",
  • "organizationSid": "string",
  • "firstName": "string",
  • "lastName": "string",
  • "phoneNumber": "string",
  • "employee": true,
  • "password": true
}

Update one user by sid

Authorizations:
BearerAuth
path Parameters
sidOrEmail
required
string
header Parameters
authorization
string
Request Body schema: application/json
firstName
string or null

first name of the user

lastName
string or null

last name of the user

phoneNumber
string or null

optional phone number for the user

newPassword
string or null

the new password to be used for the account

currentPassword
string or null

the user's current password, must be provided if user is changing their password and has a current password

Responses

Request samples

Content type
application/json
{
  • "firstName": "string",
  • "lastName": "string",
  • "phoneNumber": "string",
  • "newPassword": "string",
  • "currentPassword": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "email": "string",
  • "organizationSid": "string",
  • "firstName": "string",
  • "lastName": "string",
  • "phoneNumber": "string",
  • "employee": true,
  • "password": true
}

return user's public profile

Authorizations:
BearerAuth
path Parameters
sidOrEmail
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "name": "string"
}

orders

List orders

Authorizations:
BearerAuth
query Parameters
organizationSid
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "orders": [
    ],
  • "page": {
    }
}

Create order

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string or null
vendorSid
string or null

selling factor organization sid. at least one of vendorSid or vendorName is required

vendorName
string or null

the name of the company the order is placed with. at least one of vendorSid or vendorName is required

uniqueName
string or null

an optional uniqueName that is unique per organization. this can act as the order's external unique id, or more friendly uniqueName than the sid

title
string or null

an optional title that can be used if uniqueName is not unique across your organization (e.g. if you want to have orders with the same title across multiple vendors)

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "vendorSid": "string",
  • "vendorName": "string",
  • "uniqueName": "string",
  • "title": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "vendorSid": "string",
  • "vendorName": "string",
  • "organizationSid": "string",
  • "uniqueName": "string",
  • "title": "string"
}

Get one order

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string

the order sid or order unique name

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "vendorSid": "string",
  • "vendorName": "string",
  • "organizationSid": "string",
  • "uniqueName": "string",
  • "title": "string"
}

Update one order

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string

the order sid or order unique name

header Parameters
authorization
string
Request Body schema: application/json
uniqueName
string or null
title
string or null

an optional title that can be used if uniqueName is not unique across your organization (e.g. if you want to have orders with the same title across multiple vendors)

Responses

Request samples

Content type
application/json
{
  • "uniqueName": "string",
  • "title": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "vendorSid": "string",
  • "vendorName": "string",
  • "organizationSid": "string",
  • "uniqueName": "string",
  • "title": "string"
}

Delete an order. This is not recoverable

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string

the order sid or order unique name

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

orderEvents

List order events

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string

the order sid or order unique name

query Parameters
eventTimeOnOrAfter
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "orderEvents": [
    ],
  • "page": {
    }
}

orderMembers

List order members

Authorizations:
BearerAuth
query Parameters
messageThreadSid
string or null

required for all users of the application, an employee app would not need to supply this

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create an order member

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string
orderSid
string
memberSid
string

a UserSid

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "orderSid": "string",
  • "memberSid": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "orderSid": "string",
  • "memberSid": "string"
}

Delete one order member by sid - must be done by an Owner role

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

orderInvites

List order invites

Authorizations:
BearerAuth
query Parameters
orderSid
string or null
email
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "orderInvites": [
    ],
  • "page": {
    }
}

items

List order items

Authorizations:
BearerAuth
query Parameters
buyerSid
string or null

only show items from orders that have this buyer sid

vendorSid
string or null

only show items from orders that have this vendor sid

orderSid
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "page": {
    }
}

Create order items

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
uniqueName
string or null

an identifier that is unique within an order

title
string or null

an optional non-unique description if the unique is not descriptive enough

orderSid
string or null

the factor sid for the order. at least one of orderSid and orderUniqueName must be present. if both are provided they must refer to the same object

orderUniqueName
string or null

the unique name for the order. at least one of orderSid and orderUniqueName must be present. if both are provided they must refer to the same object

sid
string or null

optional item sid as idempotency token

status
string or null

optional item status which indicates if active or canceled

quantity
string
pricePerUnit
string or null
nonRecurringCost
string or null
leadTime
integer or null
shipTime
integer or null

Responses

Request samples

Content type
application/json
{
  • "uniqueName": "string",
  • "title": "string",
  • "orderSid": "string",
  • "orderUniqueName": "string",
  • "sid": "string",
  • "status": "string",
  • "quantity": "string",
  • "pricePerUnit": "string",
  • "nonRecurringCost": "string",
  • "leadTime": 0,
  • "shipTime": 0
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "orderSid": "string",
  • "uniqueName": "string",
  • "title": "string",
  • "status": "active",
  • "quantity": "string",
  • "pricePerUnit": "string",
  • "nonRecurringCost": "string",
  • "leadTime": 0,
  • "shipTime": 0,
  • "organizationSid": "string"
}

Get one item

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "orderSid": "string",
  • "uniqueName": "string",
  • "title": "string",
  • "status": "active",
  • "quantity": "string",
  • "pricePerUnit": "string",
  • "nonRecurringCost": "string",
  • "leadTime": 0,
  • "shipTime": 0,
  • "organizationSid": "string"
}

Update one item

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

header Parameters
authorization
string
Request Body schema: application/json
uniqueName
string or null

the new unique name. supply null to remove the unique name

title
string or null

an optional non-unique description if the unique name is not descriptive enough. supply null to remove the title

status
integer or null
quantity
string or null
pricePerUnit
string or null
nonRecurringCost
string or null
leadTime
integer or null
shipTime
integer or null

Responses

Request samples

Content type
application/json
{
  • "uniqueName": "string",
  • "title": "string",
  • "status": 0,
  • "quantity": "string",
  • "pricePerUnit": "string",
  • "nonRecurringCost": "string",
  • "leadTime": 0,
  • "shipTime": 0
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "orderSid": "string",
  • "uniqueName": "string",
  • "title": "string",
  • "status": "active",
  • "quantity": "string",
  • "pricePerUnit": "string",
  • "nonRecurringCost": "string",
  • "leadTime": 0,
  • "shipTime": 0,
  • "organizationSid": "string"
}

Delete an item. This is not recoverable

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

itemEvents

List events related to a specific item

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
eventTimeOnOrAfter
string or null
pageToken
string or null
pageSize
integer or null
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "itemEvents": [
    ],
  • "page": {
    }
}

itemGroups

List item groups

Authorizations:
BearerAuth
query Parameters
itemSid
string or null
statusNot
string or null

If provided, return item groups whose status are not equal to this value

title
string or null

the item name that corresponds to the item group

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "itemGroups": [
    ],
  • "page": {
    }
}

Create item group

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string or null

optional order item sid as idempotency token

itemSid
string or null

the factor sid for the item this item group belongs to. when creating item groups a unique reference to an item must be supplied. unique item references include itemSid, orderSid + itemUniqueName, or orderUniqueName + itemUniqueName. if multiple item references are provided they all must be consistent

itemUniqueName
string or null

the unique name of the item this item group belongs to. when creating item groups a unique reference to an item must be supplied. unique item references include itemSid, orderSid + itemUniqueName, or orderUniqueName + itemUniqueName. if multiple item references are provided they all must be consistent

orderSid
string or null

the factor sid for the order. when creating item groups a unique reference to an item must be supplied. unique item references include itemSid, orderSid + itemUniqueName, or orderUniqueName + itemUniqueName. if multiple item references are provided they all must be consistent

orderUniqueName
string or null

the unique name for the order. when creating item groups a unique reference to an item must be supplied. unique item references include itemSid, orderSid + itemUniqueName, or orderUniqueName + itemUniqueName. if multiple item references are provided they all must be consistent

quantity
string

how many quantity from the line item are in this group

dueDate
string or null

the most recent agreed upon date of delivery between buyer and seller

shipDate
string or null

estimated or actual ship date

deliveryDate
string or null

estimated or actual delivery date

shipped
boolean

has this shipped?

delivered
boolean

has this been delivered?

trackingNumber
string or null
lastUpdateDate
string or null

last time item group was updated or confirmed

uniqueName
string or null

optional identifier that is unique within the item

status
string or null

optional identifier denoting item group status of either active or canceled

organizationSid
string or null

only used with Internal Robots to search for orders by order unique name. will throw an exception if it finds any other auth using this

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "itemSid": "string",
  • "itemUniqueName": "string",
  • "orderSid": "string",
  • "orderUniqueName": "string",
  • "quantity": "string",
  • "dueDate": "string",
  • "shipDate": "string",
  • "deliveryDate": "string",
  • "shipped": true,
  • "delivered": true,
  • "trackingNumber": "string",
  • "lastUpdateDate": "string",
  • "uniqueName": "string",
  • "status": "string",
  • "organizationSid": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemSid": "string",
  • "quantity": "string",
  • "dueDate": "string",
  • "shipDate": "string",
  • "deliveryDate": "string",
  • "shipped": true,
  • "delivered": true,
  • "trackingNumber": "string",
  • "version": 0,
  • "lastUpdateDate": "string",
  • "estimatedArrivalDate": "string",
  • "uniqueName": "string",
  • "orderSid": "string",
  • "organizationSid": "string",
  • "status": "active"
}

Get one item group

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

itemSid
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

itemUniqueName
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemSid": "string",
  • "quantity": "string",
  • "dueDate": "string",
  • "shipDate": "string",
  • "deliveryDate": "string",
  • "shipped": true,
  • "delivered": true,
  • "trackingNumber": "string",
  • "version": 0,
  • "lastUpdateDate": "string",
  • "estimatedArrivalDate": "string",
  • "uniqueName": "string",
  • "orderSid": "string",
  • "organizationSid": "string",
  • "status": "active"
}

Update one item group

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

itemSid
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

itemUniqueName
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

header Parameters
authorization
string
Request Body schema: application/json
quantity
string or null

optional: new quantity value

trackingNumber
string or null

optional: new tracking number value. can be provided as null to remove tracking number

dueDate
string or null

optional: most recent agreed upon date of delivery between buyer and seller. can be provided as null to remove due date

shipDate
string or null

optional: estimated or actual ship date. can be provided as null to remove ship date

shipped
boolean or null

optional: controls whether the item has been shipped or not; should override ship date

deliveryDate
string or null

optional: estimated or actual delivery date. can be provided as null to remove delivery date

delivered
boolean or null

optional: controls whether the item has been delivered or not; takes precedence over delivery date if delivery date is null

lastUpdateDate
string or null

optional: last time item group was updated or confirmed. can be provided as null to remove last update date

uniqueName
string or null

optional: new unique name. can be provided as null to remove unique name

confirmed
boolean or null
Default: false

allows callers to confirm dates are accurate without providing new dates

Responses

Request samples

Content type
application/json
{
  • "quantity": "string",
  • "trackingNumber": "string",
  • "dueDate": "string",
  • "shipDate": "string",
  • "shipped": true,
  • "deliveryDate": "string",
  • "delivered": true,
  • "lastUpdateDate": "string",
  • "uniqueName": "string",
  • "confirmed": false
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemSid": "string",
  • "quantity": "string",
  • "dueDate": "string",
  • "shipDate": "string",
  • "deliveryDate": "string",
  • "shipped": true,
  • "delivered": true,
  • "trackingNumber": "string",
  • "version": 0,
  • "lastUpdateDate": "string",
  • "estimatedArrivalDate": "string",
  • "uniqueName": "string",
  • "orderSid": "string",
  • "organizationSid": "string",
  • "status": "active"
}

Delete an item group. This is not recoverable

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

itemSid
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

itemUniqueName
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

Bulk update items

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
Array
sid
string

item group sid

quantity
string or null

optional: new quantity value

trackingNumber
string or null

optional: new tracking number value. can be provided as null to remove tracking number

dueDate
string or null

the most recent agreed upon date of delivery between buyer and seller

shipDate
string or null

optional: estimated or actual ship date. can be provided as null to remove ship date

shipped
boolean or null

optional: controls whether the item has been shipped or not; should override ship date

deliveryDate
string or null

optional: estimated or actual delivery date. can be provided as null to remove delivery date

delivered
boolean or null

optional: controls whether the item has been delivered or not; takes precedence over delivery date if delivery date is null

lastUpdateDate
string or null

optional: last time item group was updated or confirmed. can be provided as null to remove last update date

uniqueName
string or null

optional: new unique name. can be provided as null to remove unique name

confirmed
boolean or null
Default: false

allows callers to confirm dates are accurate without providing new dates

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
[
  • {
    }
]

itemGroupEvents

List item group events

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
eventTimeOnOrAfter
string or null
pageToken
string or null
pageSize
integer or null
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

itemSid
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

itemUniqueName
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "itemGroupEvents": [
    ],
  • "page": {
    }
}

applications

Get one application

Authorizations:
BearerAuth
path Parameters
sid
required
string

apikey

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "name": "string",
  • "organization": "string"
}

openOrderUploads

list open order uploads

Authorizations:
BearerAuth
query Parameters
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "openOrderUploads": [
    ],
  • "page": {
    }
}

Upload an open order file

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: multipart/form-data
sid
string or null

optionally include a sid as an idempotency token

file
string <binary>

file content

fieldMappingSid
string or null

optional field mapping sid to support custom csv columns

orderMemberEmails
string or null

list of emails that should be added as order members or order invites

orderMemberSids
string or null

list of user sids that should be added as order members

forceItemGroupsNotPresentDelivered
boolean or null

nullable value, default is false. if true, item groups not present in upload will be marked as delivered

fileType
string or null

file type of order upload. may be csv, xlsx, or xls. csv by default

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "organization": "string",
  • "status": "processing",
  • "fileSid": "string",
  • "fieldMappingSid": "string",
  • "orderMemberUserSids": [
    ],
  • "orderMemberEmails": [
    ],
  • "forceItemGroupsNotPresentDelivered": true,
  • "rowCountSuccess": 0,
  • "rowCountFailure": 0,
  • "fileType": "string"
}

Get one open order upload by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string

open order upload sid

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "organization": "string",
  • "status": "processing",
  • "fileSid": "string",
  • "fieldMappingSid": "string",
  • "orderMemberUserSids": [
    ],
  • "orderMemberEmails": [
    ],
  • "forceItemGroupsNotPresentDelivered": true,
  • "rowCountSuccess": 0,
  • "rowCountFailure": 0,
  • "fileType": "string"
}

Hard delete an open order upload by sid. this removes the file too

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

Retrieve a temporary url to download the original file behind an open order upload

Authorizations:
BearerAuth
path Parameters
sid
required
string

open order upload sid

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "url": "string"
}

openOrderUploadLogs

list open order upload logs

Authorizations:
BearerAuth
query Parameters
openOrderUploadSid
required
string

open order upload sid, optional for internal. required for public api identities

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "openOrderUploadLogs": [
    ],
  • "page": {
    }
}

flags

List flags you have access to

Authorizations:
BearerAuth
query Parameters
itemGroupSid
Array of strings
status
string or null
flag
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "flags": [
    ],
  • "page": {
    }
}

get flag by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "dismissed": "string",
  • "status": "active",
  • "itemGroupSid": "string",
  • "itemSid": "string",
  • "orderSid": "string",
  • "message": "string",
  • "type": "newDelay"
}

Update flag by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string
Request Body schema: application/json
message
string or null
status
string or null
dismissed
string or null

dismissed date time in RFC3339 format

Responses

Request samples

Content type
application/json
{
  • "message": "string",
  • "status": "string",
  • "dismissed": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "dismissed": "string",
  • "status": "active",
  • "itemGroupSid": "string",
  • "itemSid": "string",
  • "orderSid": "string",
  • "message": "string",
  • "type": "newDelay"
}

updateRequests

List updateRequests

Authorizations:
BearerAuth
query Parameters
itemGroupSid
string or null

get the update requests for this itemGroupSid

organizationSid
string or null

only used with Robots. will throw an exception if it finds any other auth using this.

sortOrder
string or null

maps to Factor enum type Sort

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "updateRequests": [
    ],
  • "page": {
    }
}

Create updateRequest

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
itemGroupSid
string

the item this update request maps to

note
string or null

the note corresponding to this update request

Responses

Request samples

Content type
application/json
{
  • "itemGroupSid": "string",
  • "note": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemGroupSid": "string",
  • "organizationSid": "string",
  • "note": "string"
}

updateRequestConfigs

List updateRequestConfigs

Authorizations:
BearerAuth
query Parameters
nextUpdateOnOrBefore
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "updateRequestConfigs": [
    ],
  • "page": {
    }
}

Create updateRequest

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
itemGroupSid
string

the item this update request configuration maps to

nextUpdate
string

the date for the next time we perform an update request

startDate
string or null

the date for when the automatic update request cycle begins

cadenceSid
string or null

the cadence sid corresponding to this update request

Responses

Request samples

Content type
application/json
{
  • "itemGroupSid": "string",
  • "nextUpdate": "string",
  • "startDate": "string",
  • "cadenceSid": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemGroupSid": "string",
  • "organizationSid": "string",
  • "startDate": "string",
  • "nextUpdate": "string",
  • "cadenceSid": "string"
}

Get updateRequestConfig

Authorizations:
BearerAuth
path Parameters
sid
required
string

can either be a UpdateRequestConfigSid or an ItemGroupSid

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemGroupSid": "string",
  • "organizationSid": "string",
  • "startDate": "string",
  • "nextUpdate": "string",
  • "cadenceSid": "string"
}

Update updateRequestConfig

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string
Request Body schema: application/json
nextUpdate
string or null

the date for the next time we perform an update request

startDate
string or null

the date for when the automatic update request cycle begins

cadenceSid
string or null

the cadence sid corresponding to this update request

Responses

Request samples

Content type
application/json
{
  • "nextUpdate": "string",
  • "startDate": "string",
  • "cadenceSid": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemGroupSid": "string",
  • "organizationSid": "string",
  • "startDate": "string",
  • "nextUpdate": "string",
  • "cadenceSid": "string"
}

itemCustomFields

list item custom fields

Authorizations:
BearerAuth
query Parameters
itemSid
required
string
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "itemCustomFields": [
    ],
  • "page": {
    }
}

Create a item custom field

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string or null

optional sid as idempotency token

itemSid
string
name
string

name must be unique for an item

value
string

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "itemSid": "string",
  • "name": "string",
  • "value": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "itemSid": "string",
  • "name": "string",
  • "value": "string"
}

messages

Create message

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string or null

optional user sid as idempotency token

content
string
orderSids
Array of strings or null
itemSids
Array of strings or null
itemGroupSids
Array of strings or null

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "content": "string",
  • "orderSids": [
    ],
  • "itemSids": [
    ],
  • "itemGroupSids": [
    ]
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "organizationSid": "string",
  • "outboundEmailReplySid": "string",
  • "created": "string",
  • "updated": "string",
  • "author": "string",
  • "content": "string"
}

Get one message by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "organizationSid": "string",
  • "outboundEmailReplySid": "string",
  • "created": "string",
  • "updated": "string",
  • "author": "string",
  • "content": "string"
}

messagesForOrders

List messages you have access to filtered by order sid

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "page": {
    }
}

messagesForItems

List messages you have access to filtered by item

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
pageToken
string or null
pageSize
integer or null
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "page": {
    }
}

messagesForItemGroups

List messages you have access to filtered by item group sid

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
pageToken
string or null
pageSize
integer or null
orderSid
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

orderUniqueName
string or null

order the item is from if supplying item unique name in the path. this is not needed if using item sid in the path

itemSid
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

itemUniqueName
string or null

item the item group is from if supplying item group unique name in the path. this is not needed if using item group sid in the path

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "page": {
    }
}

events

List events

Authorizations:
BearerAuth
query Parameters
eventTimeOnOrAfter
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "events": [
    ],
  • "page": {
    }
}

fileExports

list file exports

Authorizations:
BearerAuth
query Parameters
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "fileExports": [
    ],
  • "page": {
    }
}

create a file export

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string or null

optional sid to use as an idempotency token

object (FileExportQuery)

selections for the data

fieldMappingSid
string or null

optional field mapping sid to support custom csv columns

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "query": {
    },
  • "fieldMappingSid": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "deleteAfter": "string",
  • "status": "string",
  • "fileType": "string",
  • "fieldMappingSid": "string",
  • "query": {
    }
}

get file export

Authorizations:
BearerAuth
path Parameters
sid
required
string

file export sid

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "deleteAfter": "string",
  • "status": "string",
  • "fileType": "string",
  • "fieldMappingSid": "string",
  • "query": {
    }
}

delete a file export

Authorizations:
BearerAuth
path Parameters
sid
required
string

file export sid

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

Retrieve a temporary url to download the file

Authorizations:
BearerAuth
path Parameters
sid
required
string

file export sid

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "url": "string"
}

fieldMappings

list field mappings

Authorizations:
BearerAuth
query Parameters
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "fieldMappings": [
    ],
  • "page": {
    }
}

Create a new field mapping

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string or null

optional sid as idempotency token

name
string or null

optional name of the mapping group

importAllowed
boolean or null

when true this field map can be used to import data into factor

exportAllowed
boolean or null

when true this field map can be used to export data from factor

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "name": "string",
  • "importAllowed": true,
  • "exportAllowed": true
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "organizationSid": "string",
  • "name": "string",
  • "importAllowed": true,
  • "exportAllowed": true
}

Get one field mapping by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string

field mapping sid

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "organizationSid": "string",
  • "name": "string",
  • "importAllowed": true,
  • "exportAllowed": true
}

Hard delete a field mapping by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

mappedFields

list mapped fields

Authorizations:
BearerAuth
query Parameters
fieldMappingSid
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "mappedFields": [
    ],
  • "page": {
    }
}

Create a new mapped field

Authorizations:
BearerAuth
header Parameters
authorization
string
Request Body schema: application/json
sid
string or null

optional sid as idempotency token

fieldMappingSid
string
name
string

the column name as it exists in the customer's csv

mappedFieldType
string

the column's meaning when it is imported into factor

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "fieldMappingSid": "string",
  • "name": "string",
  • "mappedFieldType": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "fieldMappingSid": "string",
  • "name": "string",
  • "mappedFieldType": "string"
}

Get one mapped field by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string

mapped field sid

header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "fieldMappingSid": "string",
  • "name": "string",
  • "mappedFieldType": "string"
}

Hard delete a mapped field by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

boms

list bom

Authorizations:
BearerAuth
query Parameters
sid
Array of strings or null

a repeatable query param to fetch one or many boms by sid. this is a fast way to do a bulk fetch. max allowed is 100

uniqueName
Array of strings or null

a repeatable query param to fetch one or many boms by unique name. this is a fast way to do a bulk fetch. max allowed is 100

ctbLessThanEqualTo
string or null

optional parameter that will return boms that have associated clear to builds with today's date with a build quantity less than or equal to the given integer

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "boms": [
    ],
  • "page": {
    }
}

create a bom

Authorizations:
BearerAuth
header Parameters
authorization
required
string
Request Body schema: application/json
sid
string or null

optional sid to use as an idempotency token

uniqueName
string

a unique name for this bom

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "uniqueName": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "uniqueName": "string",
  • "version": "string"
}

get a bom

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string

bom sid or unique name

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "uniqueName": "string",
  • "version": "string"
}

delete a bom

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string

bom sid or unique name

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

bomLines

List bom lines

Authorizations:
BearerAuth
query Parameters
bomSid
string or null
includeTotalCount
boolean or null
orderBy
string or null

order the list by any one of the following values: ctb, requiredQuantity, orderedQuantity, inventoryQuantity

sortOrder
string or null

order of the result set: 'Asc' or 'Desc'. default 'Asc'

uniqueName
string or null

the unique name of the bom line

inventoryCountLessThanEqualTo
string or null

inventory count equals or less than

orderedQuantityLessThanEqualTo
string or null

ordered quantity equals or less than

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "bomLines": [
    ],
  • "page": {
    }
}

Create bom line

Authorizations:
BearerAuth
header Parameters
authorization
required
string
Request Body schema: application/json
sid
string

bom line sid

bomSid
string or null

the factor sid for the bom. at least one of bomSid and bomUniqueName must be present. if both are provided they must refer to the same object

uniqueName
string

unique name of bom line

requiredQuantity
string

the required quantity of this bom line to make the bom

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "bomSid": "string",
  • "uniqueName": "string",
  • "requiredQuantity": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "bomSid": "string",
  • "uniqueName": "string",
  • "requiredQuantity": "string",
  • "version": "string"
}

Get bom line by sid or unique name

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
bomSid
string or null

bom the bom line is from if supplying bom line unique name in the path. this is not needed if using bom line sid in the path

bomUniqueName
string or null

unique name of the bom the bom line is from if supplying bom line unique name in the path. this is not needed if using bom line sid in the path

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "bomSid": "string",
  • "uniqueName": "string",
  • "requiredQuantity": "string",
  • "version": "string"
}

Update one bom line by sid

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
bomSid
string or null

Bom the bom line is from if supplying bom unique name in the path. This is not needed if using bom sid in the path

bomUniqueName
string or null

unique name of the bom the bom line is from if supplying bom line unique name in the path. this is not needed if using bom line sid in the path

header Parameters
authorization
required
string
Request Body schema: application/json
requiredQuantity
string

the required quantity of this bom line to make the bom

Responses

Request samples

Content type
application/json
{
  • "requiredQuantity": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "bomSid": "string",
  • "uniqueName": "string",
  • "requiredQuantity": "string",
  • "version": "string"
}

Hard delete a bom line

Authorizations:
BearerAuth
path Parameters
sidOrUniqueName
required
string
query Parameters
bomSid
string or null

Bom the bom line is from if supplying bom unique name in the path. This is not needed if using bom sid in the path

bomUniqueName
string or null

unique name of the bom the bom line is from if supplying bom line unique name in the path. this is not needed if using bom line sid in the path

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

inventoryCounts

list inventory counts

Authorizations:
BearerAuth
query Parameters
organizationSid
string or null

grabs inventory counts for all parts within an org

dateBefore
string or null

grabs inventory counts for all parts with recording dates on or before this date

dateAfter
string or null

grabs inventory counts for all parts with recording dates after this date

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "inventoryCounts": [
    ],
  • "page": {
    }
}

create a new inventory count

Authorizations:
BearerAuth
header Parameters
authorization
required
string
Request Body schema: application/json
sid
string or null

optional inventory count sid as idempotency token

recordingDate
string or null

date of the recording of this part in RFC3339 format. if nullable, current time will be assumed

count
integer

the number of this particular part that's in inventory

uniqueName
string

a unique name for this part that's in inventory

title
string or null

a non-unique name referring to the inventory count

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "recordingDate": "string",
  • "count": 0,
  • "uniqueName": "string",
  • "title": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "recordingDate": "string",
  • "count": 0,
  • "uniqueName": "string",
  • "title": "string"
}

get an inventory count

Authorizations:
BearerAuth
path Parameters
sidOrName
required
string

inventory count sid or unique name

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "recordingDate": "string",
  • "count": 0,
  • "uniqueName": "string",
  • "title": "string"
}

clearToBuilds

list clear to builds

Authorizations:
BearerAuth
query Parameters
organizationSid
string or null

the organization that owns the clear to build

startDate
string or null

grabs clear to builds on or after this date

endDate
string or null

grabs clear to builds on or before this date

sid
Array of strings or null

a repeatable query param to fetch one or many clear to builds by bom or bom line sid. this is a fast way to do a bulk fetch. max allowed is 100

buildQuantityLessThanEqualTo
string or null

optional parameter that will return clear to builds with a build quantity less than or equal to the given integer

pageToken
string or null
pageSize
integer or null
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "clearToBuilds": [
    ],
  • "page": {
    }
}

create a clear to build

Authorizations:
BearerAuth
header Parameters
authorization
required
string
Request Body schema: application/json
sid
string or null

optional clear to build sid as idempotency token

organizationSid
string

organization that owns the clear to build

referenceSid
string

bom or bom line the clear to build reflects

buildDate
string

the date the boms or bom lines can be built in RFC3339 format

buildQuantity
string

the number of boms or bom lines that can be built

type
string

denotes the type of clear to build, expected or actual

Responses

Request samples

Content type
application/json
{
  • "sid": "string",
  • "organizationSid": "string",
  • "referenceSid": "string",
  • "buildDate": "string",
  • "buildQuantity": "string",
  • "type": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "organizationSid": "string",
  • "referenceSid": "string",
  • "buildDate": "string",
  • "buildQuantity": "string",
  • "type": "string"
}

update a clear to build

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
required
string
Request Body schema: application/json
buildQuantity
string

the number of boms or bom lines that can be built

Responses

Request samples

Content type
application/json
{
  • "buildQuantity": "string"
}

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "organizationSid": "string",
  • "referenceSid": "string",
  • "buildDate": "string",
  • "buildQuantity": "string",
  • "type": "string"
}

deletes a clear to build

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

bomUploads

list bom uploads

Authorizations:
BearerAuth
query Parameters
organizationSid
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "bomUploads": [
    ],
  • "page": {
    }
}

Get one bom upload by sid

Authorizations:
BearerAuth
path Parameters
sid
required
string

bom upload sid

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "version": "string",
  • "organizationSid": "string",
  • "fieldMappingSid": "string",
  • "status": "string",
  • "fileType": "string",
  • "rowCountSuccess": 0,
  • "rowCountFailure": 0,
  • "rowCountTotal": 0
}

Hard delete a bom upload by sid. this removes the file too

Authorizations:
BearerAuth
path Parameters
sid
required
string
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "code": "string",
  • "message": "string"
}

Retrieve a temporary url to download the original file behind a bom upload

Authorizations:
BearerAuth
path Parameters
sid
required
string

bom upload sid

header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json
{
  • "url": "string"
}

bomUploadsCreate

Upload a bom file

Authorizations:
BearerAuth
header Parameters
authorization
required
string

due to difficulties in uploading files in api gateway this route supports public api auth headers in addition to internal auth headers

Request Body schema: multipart/form-data
sid
string or null

optionally include a sid as an idempotency token

file
string <binary>

file content

organizationSid
string or null

optional org sid, only used for internal applications / phoenix users. all other user types take the org from the auth header

fieldMappingSid
string or null

optional field mapping map sid to support custom csv columns

fileType
string or null

file type of order upload. may be csv, xlsx, or xls. csv by default

Responses

Response samples

Content type
application/json
{
  • "sid": "string",
  • "created": "string",
  • "updated": "string",
  • "version": "string",
  • "organizationSid": "string",
  • "fieldMappingSid": "string",
  • "status": "string",
  • "fileType": "string",
  • "rowCountSuccess": 0,
  • "rowCountFailure": 0,
  • "rowCountTotal": 0
}

inventoryUploads

list inventory uploads

Authorizations:
BearerAuth
query Parameters
organizationSid
string or null
pageToken
string or null
pageSize
integer or null
header Parameters
authorization
required
string

Responses

Response samples

Content type
application/json