Sortly
App · 27 actions
Track Sortly items and folders, stock moves, alerts, jobs and purchase orders.
Actions
| Action | What it does |
|---|---|
| Change a job's status | Move a job to in progress or completed. |
| Change a purchase order's status | Move a purchase order to a new status, such as approved or ordered. |
| Create a job | Create a job, and its job folder, to track the items it uses. |
| Create a low stock alert | Create an alert that notifies your team when an item's stock crosses a level. |
| Create a purchase order | Create a draft purchase order for an item. |
| Create an item or folder | Create an item to track, or a folder to hold items. |
| Delete a job | Delete a job, its folder and the items inside it. |
| Delete a purchase order | Delete a purchase order. |
| Delete an alert | Delete an alert. |
| Delete an item or folder | Permanently delete an item or folder. |
| Get a job | Get one job's details, status and item counts. |
| Get a purchase order | Get one purchase order with its lines, notes, terms and totals. |
| Get a purchase order's receive status | Check whether the latest delivery recorded against a purchase order has finished. |
| Get an item or folder | Get one item's or folder's details. |
| List alerts | List stock-level and date reminder alerts, and whether each has gone off. |
| List items and folders | List items and folders, newest first. |
| List jobs | List jobs, most recently updated first. |
| List purchase orders | List purchase orders, most recently updated first. |
| List recently updated items | List items and folders changed since a given time. |
| List units of measure | List the units of measure items and purchase order lines can use. |
| Move an item | Move some or all of an item's quantity to another folder. |
| Pull an item into a job | Move a quantity of an item into a job's folder. |
| Receive a purchase order line | Record that part or all of an order line has arrived and add it to stock. |
| Return an item from a job | Move a quantity of an item off a job and back into a folder. |
| Search items | Search your inventory by name, optionally within chosen folders. |
| Update a job | Change a job's name, dates, notes or link. |
| Update an item or folder | Change an item's or folder's details. |
Change a job's status
Move a job to in progress or completed.
Inputs
- Job
job_idnumberRequired - The job to use.At least 1.
- Status
statustextRequired - The new status. A job can only move forward, and completing it locks its folder.One of:
not_started(Not started),in_progress(In progress),completed.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"completed_at": "example",
"created_at": "example",
"created_by": {
"name": "example"
},
"custom_field_values": [],
"end_date": "example",
"external_job_link": "example",
"folder_id": 1.0,
"id": 1.0,
"name": "example",
"notes": "example",
"start_date": "example",
"started_at": "example",
"status": "example",
"updated_at": "example",
"updated_by": {
"name": "example"
},
"version": 1.0
}
}
}Change a purchase order's status
Move a purchase order to a new status, such as approved or ordered.
Inputs
- Purchase order
purchase_order_idnumberRequired - The purchase order to use.At least 1.
- Status
statustextRequired - The new status. From Ordered an order can only be voided or closed.One of:
draft,ready_for_review(Ready for review),approved,ordered,voided,closed.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"approved_by": "example",
"approved_date": "example",
"bill_to": {
"city": "example",
"country": "example",
"line1": "example",
"line2": "example",
"name": "example",
"state": "example",
"zip_code": "example"
},
"charges": {
"discount": "example",
"shipping_cost": "example",
"tax": "example"
},
"created_at": "example",
"created_by": "example",
"currency_code": "example",
"expected_delivery_date": "example",
"id": 1.0,
"line_items": [],
"notes": "example",
"ordered_by": "example",
"ordered_date": "example",
"purchase_order_number": "example",
"received_by": "example",
"received_date": "example",
"ship_to": {
"city": "example",
"country": "example",
"line1": "example",
"line2": "example",
"name": "example",
"state": "example",
"zip_code": "example"
},
"status": "example",
"sub_total": "example",
"submitted_by": "example",
"submitted_date": "example",
"terms": "example",
"total": "example",
"updated_at": "example",
"updated_by": "example",
"vendor": {
"city": "example",
"country": "example",
"email": "example",
"line1": "example",
"line2": "example",
"name": "example",
"phone": "example",
"state": "example",
"zip_code": "example"
},
"version": 1.0
}
}
}Create a job
Create a job, and its job folder, to track the items it uses.
Inputs
- Name
nametextRequired - The job's name. It must be unique in your account.
- Notes
notestext - Notes about the job, up to 4,000 characters.
- Start date
start_datedate - The day the job starts.
- End date
end_datedate - The day the job should be finished by.
- External job link
external_job_linktext - A link to the job in another system, such as your field service app.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"completed_at": "example",
"created_at": "example",
"created_by": {
"name": "example"
},
"custom_field_values": [],
"end_date": "example",
"external_job_link": "example",
"folder_id": 1.0,
"id": 1.0,
"name": "example",
"notes": "example",
"start_date": "example",
"started_at": "example",
"status": "example",
"updated_at": "example",
"updated_by": {
"name": "example"
},
"version": 1.0
}
}
}Create a low stock alert
Create an alert that notifies your team when an item's stock crosses a level.
Inputs
- Item
item_idnumberRequired - The item to watch.At least 1.
- Threshold method
threshold_methodtextRequired - When the alert goes off: below or above a number, or at or below the item's minimum level.One of:
less_than_or_equal_to_min_quantity(Less than or equal to min quantity),quantity_less_than(Quantity less than),quantity_less_than_equal_to(Quantity less than equal to),quantity_greater_than(Quantity greater than),quantity_greater_than_equal_to(Quantity greater than equal to). - Threshold value
threshold_valuenumber - The quantity the alert compares the item's stock with.
- Recipient groups
recipient_groupslist - Who to notify when the alert goes off. Defaults to the account's owners.One or more of:
owners,admins,members.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"custom_attribute_id": 1.0,
"is_deleted": false,
"is_fired": false,
"item_id": 1.0,
"recipient_groups": [],
"threshold_interval": "example",
"threshold_method": "example",
"threshold_value": 1.0,
"type": "example"
}
}
}Create a purchase order
Create a draft purchase order for an item.
Inputs
- Currency code
currency_codetextRequired - The three-letter currency code, such as USD.
- Item
item_idnumberRequired - The item to order.At least 1.
- Line name
line_nametextRequired - The name to show on the order line, usually the item's name.
- Quantity
quantitynumberRequired - How many to order.At least 0.
- Unit of measure
unit_of_measuretextRequired - The unit the quantity is in, such as units, ft or kg.
- Unit rate
unit_ratenumber - The price of one unit. Leave blank for a line with no price.At least 0.
- Purchase order number
purchase_order_numbertext - The order's number, up to 20 characters. Leave blank to have Sortly number it.
- Vendor name
vendor_nametext - The vendor's name.
- Vendor email
vendor_emailtext - The vendor's email address.
- Expected delivery date
expected_delivery_datedate and time - When the order is expected to arrive.
- Notes
notestext - Notes for the order, up to 4,000 characters.
- Terms
termstext - The order's terms, up to 4,000 characters.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"approved_by": "example",
"approved_date": "example",
"bill_to": {
"city": "example",
"country": "example",
"line1": "example",
"line2": "example",
"name": "example",
"state": "example",
"zip_code": "example"
},
"charges": {
"discount": "example",
"shipping_cost": "example",
"tax": "example"
},
"created_at": "example",
"created_by": "example",
"currency_code": "example",
"expected_delivery_date": "example",
"id": 1.0,
"line_items": [],
"notes": "example",
"ordered_by": "example",
"ordered_date": "example",
"purchase_order_number": "example",
"received_by": "example",
"received_date": "example",
"ship_to": {
"city": "example",
"country": "example",
"line1": "example",
"line2": "example",
"name": "example",
"state": "example",
"zip_code": "example"
},
"status": "example",
"sub_total": "example",
"submitted_by": "example",
"submitted_date": "example",
"terms": "example",
"total": "example",
"updated_at": "example",
"updated_by": "example",
"vendor": {
"city": "example",
"country": "example",
"email": "example",
"line1": "example",
"line2": "example",
"name": "example",
"phone": "example",
"state": "example",
"zip_code": "example"
},
"version": 1.0
}
}
}Create an item or folder
Create an item to track, or a folder to hold items.
Inputs
- Name
nametextRequired - The item's or folder's name, up to 190 characters.
- Type
record_typetextRequired - Whether to create an item you track, or a folder that holds items.One of:
item,folder. - Quantity
quantitynumber - How many you have. Use 0 to empty an item.
- Min quantity
min_quantitynumber - The level at which a quantity alert on the item can notify your team.
- Price
pricenumber - The price of one unit.At least 0.
- Notes
notestext - Free-text notes.
- Parent
parent_idnumber - The folder to put it in. Leave blank for the top level.At least 1.
- Tags
tagslist - Tag names to put on it.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"created_at": "example",
"custom_attribute_values": [],
"id": 1.0,
"label_url": "example",
"label_url_extra": "example",
"label_url_extra_type": "example",
"label_url_type": "example",
"measured_quantity": {
"name": "lbs",
"scale": 1.0,
"type": "weight",
"value": 1.0
},
"min_quantity": 1.0,
"name": "example",
"notes": "example",
"parent_id": 1.0,
"photo_ids": [],
"photos": [],
"price": 1.0,
"quantity": 1.0,
"sid": "example",
"tag_names": [],
"tags": [],
"type": "item",
"updated_at": "example"
}
}
}Delete a job
Delete a job, its folder and the items inside it. This can't be undone.
Inputs
- Job
job_idnumberRequired - The job to delete. Its folder and any items in it are deleted too.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {}
}Delete a purchase order
Delete a purchase order. Stock already received stays received.
Inputs
- Purchase order
purchase_order_idnumberRequired - The purchase order to use.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {}
}Delete an alert
Delete an alert.
Inputs
- Alert
alert_idnumberRequired - The alert to delete.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {}
}Delete an item or folder
Permanently delete an item or folder. This can't be undone.
Inputs
- Item
item_idnumberRequired - The item or folder to delete. Deleting a folder deletes everything inside it.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {}
}Get a job
Get one job's details, status and item counts.
Inputs
- Job
job_idnumberRequired - The job to use.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"completed_at": "example",
"created_at": "example",
"created_by": {
"name": "example"
},
"custom_field_values": [],
"end_date": "example",
"external_job_link": "example",
"folder_id": 1.0,
"id": 1.0,
"name": "example",
"notes": "example",
"start_date": "example",
"started_at": "example",
"status": "example",
"updated_at": "example",
"updated_by": {
"name": "example"
},
"version": 1.0
}
}
}Get a purchase order
Get one purchase order with its lines, notes, terms and totals.
Inputs
- Purchase order
purchase_order_idnumberRequired - The purchase order to use.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"approved_by": "example",
"approved_date": "example",
"bill_to": {
"city": "example",
"country": "example",
"line1": "example",
"line2": "example",
"name": "example",
"state": "example",
"zip_code": "example"
},
"charges": {
"discount": "example",
"shipping_cost": "example",
"tax": "example"
},
"created_at": "example",
"created_by": "example",
"currency_code": "example",
"expected_delivery_date": "example",
"id": 1.0,
"line_items": [],
"notes": "example",
"ordered_by": "example",
"ordered_date": "example",
"purchase_order_number": "example",
"received_by": "example",
"received_date": "example",
"ship_to": {
"city": "example",
"country": "example",
"line1": "example",
"line2": "example",
"name": "example",
"state": "example",
"zip_code": "example"
},
"status": "example",
"sub_total": "example",
"submitted_by": "example",
"submitted_date": "example",
"terms": "example",
"total": "example",
"updated_at": "example",
"updated_by": "example",
"vendor": {
"city": "example",
"country": "example",
"email": "example",
"line1": "example",
"line2": "example",
"name": "example",
"phone": "example",
"state": "example",
"zip_code": "example"
},
"version": 1.0
}
}
}Get a purchase order's receive status
Check whether the latest delivery recorded against a purchase order has finished.
Inputs
- Purchase order
purchase_order_idnumberRequired - The purchase order to use.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"created_at": "example",
"error": "example",
"errors": [],
"pending_line_item_ids": [],
"received_line_item_ids": [],
"status": "example",
"updated_at": "example"
}
}
}Get an item or folder
Get one item's or folder's details.
Inputs
- Item
item_idnumberRequired - The item or folder to use.At least 1.
- Include
includelist - Extra details to include with each item: custom field values, photos or both.One or more of:
custom_attributes(Custom attributes),photos.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"created_at": "example",
"custom_attribute_values": [],
"id": 1.0,
"label_url": "example",
"label_url_extra": "example",
"label_url_extra_type": "example",
"label_url_type": "example",
"min_quantity": 1.0,
"name": "example",
"notes": "example",
"parent_id": 1.0,
"photos": [],
"price": 1.0,
"quantity": 1.0,
"sid": "example",
"tag_names": [],
"tags": [],
"type": "example",
"updated_at": "example"
}
}
}List alerts
List stock-level and date reminder alerts, and whether each has gone off.
Inputs
- Page
pagenumber - The page of results to return, starting at 1.At least 1.
- Per page
per_pagenumber - How many records to return on each page, up to 1,000.From 1 to 1000.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": [],
"meta": {
"next_page_url": "example",
"page": 1.0,
"total_count": 1.0,
"total_pages": 1.0
}
}
}List items and folders
List items and folders, newest first.
Inputs
- Folder
folder_idnumber - List what is directly inside this folder. Leave blank for the top level.At least 1.
- Include subfolders
include_subfolderstrue/false - Also list everything inside folders within the chosen folder.
- Include
includelist - Extra details to include with each item: custom field values, photos or both.One or more of:
custom_attributes(Custom attributes),photos. - Page
pagenumber - The page of results to return, starting at 1.At least 1.
- Per page
per_pagenumber - How many records to return on each page, up to 1,000.From 1 to 1000.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": [],
"meta": {
"next_page_url": "example",
"page": 1.0,
"total_count": 1.0,
"total_pages": 1.0
}
}
}List jobs
List jobs, most recently updated first.
Inputs
- Name
nametext - Only list jobs whose name starts with this text.
- Status
statuslist - Only list jobs in these statuses.One or more of:
not_started(Not started),in_progress(In progress),completed. - Sort by
sort_bytext - The field to sort by. Defaults to when the job was last updated.One of:
name,status,start_date(Start date),end_date(End date),created_by_name(Created by name),updated_at(Updated at). - Sort direction
sort_directiontext - Ascending or descending. Defaults to descending.One of:
asc,desc. - Page
pagenumber - The page of results to return, starting at 1.At least 1.
- Per page
per_pagenumber - How many records to return on each page, up to 100.From 1 to 100.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": [],
"meta": {
"pagination": {
"has_next": false,
"has_prev": false,
"page": 1.0,
"per_page": 1.0
}
}
}
}List purchase orders
List purchase orders, most recently updated first. Get one to see its lines.
Inputs
- Purchase order number
purchase_order_numbertext - Only list purchase orders whose number contains this text.
- Status
statuslist - Only list purchase orders in these statuses.One or more of:
draft,ready_for_review(Ready for review),approved,ordered,partially_received(Partially received),received,voided,closed. - Sort by
sort_bytext - The field to sort by. Defaults to when the order was last updated.One of:
purchase_order_number(Purchase order number),created_by(Created by),submitted_by(Submitted by),status,updated_at(Updated at),total,ordered_date(Ordered date),expected_delivery_date(Expected delivery date),received_date(Received date). - Sort direction
sort_directiontext - Ascending or descending. Defaults to descending.One of:
asc,desc. - Page
pagenumber - The page of results to return, starting at 1.At least 1.
- Per page
per_pagenumber - How many records to return on each page, up to 100.From 1 to 100.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": [],
"meta": {
"pagination": {
"has_next": false,
"has_prev": false,
"page": 1.0,
"per_page": 1.0
}
}
}
}List recently updated items
List items and folders changed since a given time.
Inputs
- Updated since
updated_sincedate and time - Only list items and folders changed after this time.
- Folder
folder_idnumber - Only look in this folder. Leave blank for the top level.At least 1.
- Include subfolders
include_subfolderstrue/false - Also look inside folders within the chosen folder.
- Include
includelist - Extra details to include with each item: custom field values, photos or both.One or more of:
custom_attributes(Custom attributes),photos. - Page
pagenumber - The page of results to return, starting at 1.At least 1.
- Per page
per_pagenumber - How many records to return on each page, up to 100.From 1 to 100.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": [],
"meta": {
"next_page_url": "example",
"page": 1.0,
"total_count": 1.0,
"total_pages": 1.0
}
}
}List units of measure
List the units of measure items and purchase order lines can use.
Inputs
None.
Outputs
datalist- Units available to your account. This endpoint answers with a bare array, not the data envelope the other list endpoints use, and it is not paginated.
Example output
{
"data": []
}Move an item
Move some or all of an item's quantity to another folder.
Inputs
- Item
item_idnumberRequired - The item to move. Folders can't be moved this way; change a folder's parent folder instead.At least 1.
- Quantity
quantitynumberRequired - How many to move. Moving part of the quantity creates a separate item in the destination.
- Folder
folder_idnumber - The folder to move it to. Leave blank for the top level.At least 1.
- Leave zero quantity
leave_zero_quantitytrue/false - Keep an empty record in the original folder when the whole quantity moves.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"created_at": "example",
"id": 1.0,
"name": "example",
"notes": "example",
"parent_id": 1.0,
"price": 1.0,
"quantity": 1.0,
"sid": "example",
"tag_names": [],
"tags": [],
"type": "example",
"updated_at": "example"
}
}
}Pull an item into a job
Move a quantity of an item into a job's folder.
Inputs
- Job
job_idnumberRequired - The job to use.At least 1.
- Item
item_idnumberRequired - The item to move onto the job.At least 1.
- Quantity
quantitynumberRequired - How many to move onto the job.At least 0.
- Leave zero quantity
leave_zero_quantitytrue/false - Keep an empty record in the original folder when the whole quantity moves.
- Notes
notestext - A note to keep in the item's history.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"added_item_ids": [],
"errors": []
}
}
}Receive a purchase order line
Record that part or all of an order line has arrived and add it to stock. Sortly finishes the work in the background.
Inputs
- Purchase order
purchase_order_idnumberRequired - The purchase order to use.At least 1.
- Line item ID
line_item_idnumberRequired - The ID of the order line that arrived, from the purchase order's line items.At least 1.
- Received quantity
received_quantitynumberRequired - How much of the line has arrived now, on top of anything received before.At least 0.
- Folder
folder_idnumber - The folder to receive the stock into. Leave blank for the top level.At least 1.
- Notes
notestext - A note to keep against this delivery.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"created_at": "example",
"error": "example",
"errors": [],
"pending_line_item_ids": [],
"received_line_item_ids": [],
"status": "example",
"updated_at": "example"
}
}
}Return an item from a job
Move a quantity of an item off a job and back into a folder.
Inputs
- Job
job_idnumberRequired - The job to use.At least 1.
- Item ID
item_idnumberRequired - The ID of the item on the job to move off it.At least 1.
- Quantity
quantitynumberRequired - How many to return.At least 0.
- Destination folder
destination_folder_idnumber - The folder to return it to. Leave blank for All Items.At least 1.
- Leave zero quantity
leave_zero_quantitytrue/false - Keep an empty record in the job's folder when the whole quantity returns.
- Notes
notestext - A note to keep in the item's history.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"errors": [],
"returned_item_ids": []
}
}
}Search items
Search your inventory by name, optionally within chosen folders.
Inputs
- Name
nametext - The text to search item and folder names for, up to 190 characters.
- Type
record_typetext - Search items, folders or both. Defaults to both.One of:
all,item,folder. - Folder IDs
folder_idslist - Only search inside these folders.
- Include subfolders
include_subfolderstrue/false - Also search folders inside the chosen folders.
- Page
pagenumber - The page of results to return, starting at 1.At least 1.
- Per page
per_pagenumber - How many results to return on each page. Defaults to 100.At least 1.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": [],
"meta": {
"next_page_url": "example",
"page": 1.0,
"total_count": 1.0,
"total_pages": 1.0
}
}
}Update a job
Change a job's name, dates, notes or link. Fields left blank keep their current values.
Inputs
- Job
job_idnumberRequired - The job to use.At least 1.
- Name
nametext - The job's new name. It must be unique in your account.
- Notes
notestext - Notes about the job, up to 4,000 characters.
- Start date
start_datedate - The day the job starts.
- End date
end_datedate - The day the job should be finished by.
- External job link
external_job_linktext - A link to the job in another system.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {
"data": {
"completed_at": "example",
"created_at": "example",
"created_by": {
"name": "example"
},
"custom_field_values": [],
"end_date": "example",
"external_job_link": "example",
"folder_id": 1.0,
"id": 1.0,
"name": "example",
"notes": "example",
"start_date": "example",
"started_at": "example",
"status": "example",
"updated_at": "example",
"updated_by": {
"name": "example"
},
"version": 1.0
}
}
}Update an item or folder
Change an item's or folder's details. Fields left blank keep their current values.
Inputs
- Item
item_idnumberRequired - The item or folder to use.At least 1.
- Name
nametext - The new name, up to 190 characters.
- Quantity
quantitynumber - How many you have. Use 0 to empty an item.
- Min quantity
min_quantitynumber - The level at which a quantity alert on the item can notify your team.
- Price
pricenumber - The price of one unit.At least 0.
- Notes
notestext - Free-text notes.
- Parent
parent_idnumber - The folder to move it to.At least 1.
- Tags
tagslist - Tag names to put on it. Replaces any tags it has.
Outputs
dataobject- The response from Sortly.
Example output
{
"data": {}
}