Bins

A bin identifies a specific location within a warehouse where items are or can be stored. Bins make it easier to find items during transaction processing.

List bins

get/objects/inventory-control/bin

Returns up to 100 objects from the collection with a key, ID, and link for each bin. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.

Permissions and other requirements
SubscriptionInventory Control
ConfigurationAdvanced workflows is enabled.
User ypeBusiness, CRM, Employee, Warehouse
PermissionsList, View Bins
SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "12",
      • "id": "Z4-A2-R3a-BF2-B10",
      • "href": "/objects/inventory-control/bin/122"
      },
    • {
      • "key": "32",
      • "id": "Z4-A2-R3a-BF2-B11",
      • "href": "/objects/inventory-control/bin/132"
      },
    • {
      • "key": "44",
      • "id": "Z4-A2-R3a-BF2-B12",
      • "href": "/objects/inventory-control/bin/44"
      },
    • {
      • "key": "13",
      • "id": "Z4-A2-R3a-BF2-B13",
      • "href": "/objects/inventory-control/bin/13"
      }
    ],
  • "ia::meta": {
    • "totalCount": 4,
    • "start": 1,
    • "pageSize": 100,
    • "next": 2,
    • "previous": 0
    }
}

Create a bin

post/objects/inventory-control/bin

Creates a new bin.

Permissions and other requirements
SubscriptionInventory Control
ConfigurationAdvanced workflows is enabled.
User ypeBusiness
PermissionsList, View, Add Bins
SecurityOAuth2
Request
Request Body schema: application/json
id
required
string <= 30 characters

Name or other unique identifier for the bin. The identifier should make it easy to find the bin. For example, if bin 10 is in zone 4, aisle 2, row 3a, and bin face 2, Z4-A2-R3a-BF2-B10 would be a good ID.

Example: "Z4-A2-R3a-BF2-B10"
description
string <= 100 characters

Description of the bin.

Example: "Bin of wrenches 02"
object
key
string

System-assigned key for the warehouse.

Example: "2"
id
string

Name or other unique identifier for the warehouse.

Example: "WA2"
object
key
string

System-assigned key for the aisle.

Example: "13"
id
string

Name or other unique identifier for the aisle.

Example: "A2"
object
key
string

System-assigned key for the row.

Example: "23"
id
string

Name or other unique identifier for the row.

Example: "R3a"
object
key
string

System-assigned key for the zone.

Example: "12"
id
string

Name or other unique identifier for the zone.

Example: "Z4"
object
key
string

System-assigned key for the bin face.

Example: "3"
id
string

Name or other unique identifier for the bin face.

Example: "BF2"
object
key
string

System-assigned key for the Bin Size

Example: "5"
id
string

Name or other unique identifier for the bin size.

Example: "B10"
sequenceNumber
string <= 10 characters ^-{0,1}[0-9]*\.{0,1}[0-9]*$

Sequence number for the bin. Sequence numbering supports more efficient picking, packing, and cycle counts.

Example: "1233"
isPortable
boolean
Default: false

Set to true if the bin can be moved to another location, otherwise set to false.

Example: true
status
string
Default: "active"

Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced.

Enum: "active" "inactive"
Example: "active"
Responses
201

Created

400

Bad Request

Request samples
application/json
{
  • "id": "Z4-A2-R3a-BF2-B10",
  • "description": "Bin Adapters 2",
  • "sequenceNumber": "4432",
  • "isPortable": true,
  • "warehouse": {
    • "id": "WA2"
    }
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "111",
    • "id": "Z4-A2-R3a-BF2-B10",
    • "href": "/objects/inventory-control/bin/111"
    },
  • "ia::meta": {
    • "totalCount": 1
    }
}

Get a bin

get/objects/inventory-control/bin/{key}

Returns detailed information for a specified bin.

Permissions and other requirements
SubscriptionInventory Control
ConfigurationAdvanced workflows is enabled.
User ypeBusiness, CRM, Employee, Warehouse
PermissionsList, View Bins
SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the bin.

Example: 111
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "111",
    • "id": "Z4-A2-R3a-BF2-B10",
    • "description": "Bin of adapters 2",
    • "warehouse": {
      • "key": "2",
      • "id": "WA2",
      • "href": "/objects/inventory-control/warehouse/2"
      },
    • "aisle": {
      • "key": "13",
      • "id": "A2",
      • "href": "/objects/inventory-control/aisle/13"
      },
    • "row": {
      • "key": "23",
      • "id": "R3a",
      • "href": "/objects/inventory-control/row/23"
      },
    • "zone": {
      • "key": "12",
      • "id": "Z4",
      • "href": "/objects/inventory-control/zone/12"
      },
    • "binFace": {
      • "key": "3",
      • "id": "BF2",
      • "href": "/objects/inventory-control/bin-face/3"
      },
    • "binSize": {
      • "key": "5",
      • "id": "B10",
      • "href": "/objects/inventory-control/bin-size/5"
      },
    • "href": "/objects/inventory-control/bin/111",
    • "sequenceNumber": "1221",
    • "status": "active",
    • "isPortable": false,
    • "audit": {
      • "createdDateTime": "2021-05-07T21:30:03Z",
      • "modifiedDateTime": "2021-05-07T21:30:03Z",
      • "createdBy": "13",
      • "modifiedBy": "13"
      }
    },
  • "ia::meta": {
    • "totalCount": 1
    }
}

Update a bin

patch/objects/inventory-control/bin/{key}

Updates an existing bin by setting field values. Any fields not provided remain unchanged.

Permissions and other requirements
SubscriptionInventory Control
ConfigurationAdvanced workflows is enabled.
User ypeBusiness
PermissionsList, View, Edit Bins
SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the bin.

Example: 111
Request Body schema: application/json
id
string <= 30 characters

Name or other unique identifier for the bin. The identifier should make it easy to find the bin. For example, if bin 10 is in zone 4, aisle 2, row 3a, and bin face 2, Z4-A2-R3a-BF2-B10 would be a good ID.

Example: "Z4-A2-R3a-BF2-B10"
description
string <= 100 characters

Description of the bin.

Example: "Bin of wrenches 02"
object
key
string

System-assigned key for the warehouse.

Example: "2"
id
string

Name or other unique identifier for the warehouse.

Example: "WA2"
object
key
string

System-assigned key for the aisle.

Example: "13"
id
string

Name or other unique identifier for the aisle.

Example: "A2"
object
key
string

System-assigned key for the row.

Example: "23"
id
string

Name or other unique identifier for the row.

Example: "R3a"
object
key
string

System-assigned key for the zone.

Example: "12"
id
string

Name or other unique identifier for the zone.

Example: "Z4"
object
key
string

System-assigned key for the bin face.

Example: "3"
id
string

Name or other unique identifier for the bin face.

Example: "BF2"
object
key
string

System-assigned key for the Bin Size

Example: "5"
id
string

Name or other unique identifier for the bin size.

Example: "B10"
sequenceNumber
string <= 10 characters ^-{0,1}[0-9]*\.{0,1}[0-9]*$

Sequence number for the bin. Sequence numbering supports more efficient picking, packing, and cycle counts.

Example: "1233"
isPortable
boolean
Default: false

Set to true if the bin can be moved to another location, otherwise set to false.

Example: true
status
string
Default: "active"

Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced.

Enum: "active" "inactive"
Example: "active"
Responses
200

OK

400

Bad Request

Request samples
application/json
{
  • "description": "Bin of adapters 3"
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "2",
    • "id": "Z4-A2-R3a-BF2-B10",
    • "href": "/objects/inventory-control/bin/2"
    },
  • "ia::meta": {
    • "totalCount": 1
    }
}

Delete a bin

delete/objects/inventory-control/bin/{key}

Deletes a bin. You can delete a bin if it is not being used and you no longer need it.

Permissions and other requirements
SubscriptionInventory Control
ConfigurationAdvanced workflows is enabled.
User ypeBusiness
PermissionsList, View, Delete Bins
SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the bin.

Example: 111
Responses
204

No Content

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::error": {
    • "code": "invalidRequest",
    • "message": "Malformed URL",
    • "supportId": "sQrM9%7EYdh5oDEWVb80mrn9xuHjoAAAABBQ",
    • "details": [
      • {
        }
      ]
    }
}

Query bins

post/services/core/query

Queries an object for filtered data.

SecurityOAuth2
Request
Request Body schema: application/json
object
string

Object type to query, in the form <application-name>/<object name>. For custom objects use platform-apps/nsp::<object-name>.

Example: "inventory-control/bin"
fields
Array of strings

List of fields to include in the response. Can be any combination of these:

  • The name of a field in the object that you are querying, such as id.

  • The name of a field in a related object, using the form relatedObjectName.fieldName, such as vendor.id.

  • The result of an aggregate function run against the values in the returned objects. Use the form function:fieldName, such as min:startDate to return the earliest starting date. Valid function names are:

    • count
    • avg
    • sum
    • min
    • max
  • The result of an aggregate function run against the values in related objects, using the form function:relatedObjectName.fieldName, such as max:vendor.creditLimit. The same functions are supported as for object fields.

Example: ["key","id","max:vendor.creditLimit"]
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object)

Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as {"$eq":{"status":"active"}} to select objects in which status is equal to "active".

Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}]
Array
Any of:

Field value must be equal to this specified value.

For date fields, you can use these macro values that are relative to the current date or the asOfDate in filterParameters, if set:

  • today
  • currentWeek
  • currentMonth
  • currentQuarter
  • currentYear
  • yesterday
  • lastWeek
  • priorMonth
  • priorQuarter
  • priorYear

These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the asOfDate each time to retrieve the same data set for different time periods.

For example, {"eq":{"postingDate":"priorYear"}}.

object

The field name and value to be compared with object values.

Example: {"status":"active"}
filterExpression
string
Default: "and"

Logical operators to apply when there are multiple filter conditions. The conditions in the filters array are implicitly numbered starting at 1. Supports and, or, and grouping with parentheses.

Shortcuts:

  • and by itself means that all conditions must be true.
  • or by itself means that at least one condition must be true.
Example: "(1 and 2) or 3"
object

Pre-defined filter options.

asOfDate
string <date>

The "as of" date to use with any relative date comparisons in filters. For example, if asOfDate is set to "2022-04-01" then priorMonth will be "03".

The current date is used if asOfDate is not set.

Example: "2022-04-01"
includeHierarchyFields
boolean
Default: false

Set to true to include hierarchical structure information with each object in the response.

Example: false
caseSensitiveComparison
boolean
Default: true

Queries are case-sensitive by default. Set to false to ignore case in a query.

Example: true
includePrivate
boolean
Default: false

By default, in a multi-entity company, queries from the top-level entity do not access data in private entities. Set includePrivate to true if you want to query data in private entities.

Example: false
Array of objects

Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order.

Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}]
Array
property name*
additional property
string
Enum: "asc" "desc"
start
integer

First record of the result set to include in the response.

Example: 1
size
integer

Number of records to include in the response.

Example: 100
Responses
200

OK

400

Bad Request

Request samples
application/json
{
  • "object": "inventory-control/bin",
  • "filters": [
    • {
      • "$eq": {
        }
      }
    ],
  • "fields": [
    • "key",
    • "id",
    • "description",
    • "href"
    ],
  • "orderBy": [
    • {
      • "id": "asc"
      }
    ]
}
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "1",
      • "id": "1",
      • "description": "Cam lock nuts",
      • "href": "/objects/inventory-control/bin/1"
      },
    • {
      • "key": "2",
      • "id": "B0001",
      • "description": "Cam lock screws",
      • "href": "/objects/inventory-control/bin/2"
      },
    • {
      • "key": "3",
      • "id": "B0002",
      • "description": "Shelf pins",
      • "href": "/objects/inventory-control/bin/3"
      },
    • {
      • "key": "4",
      • "id": "Bin 20",
      • "description": "Primary slats",
      • "href": "/objects/inventory-control/bin/4"
      },
    • {
      • "key": "6",
      • "id": "WEast-AA001-RR0001-BB0001",
      • "description": "Primary dividers",
      • "href": "/objects/inventory-control/bin/6"
      },
    • {
      • "key": "7",
      • "id": "WEast-AA001-RR0002-BB0001",
      • "description": "Secondary dividers",
      • "href": "/objects/inventory-control/bin/7"
      },
    • {
      • "key": "5",
      • "id": "West-B1",
      • "description": "Spur gears",
      • "href": "/objects/inventory-control/bin/5"
      },
    • {
      • "key": "8",
      • "id": "Z2-A2a-R4-BF2-B2",
      • "description": "Bevel gears",
      • "href": "/objects/inventory-control/bin/8"
      }
    ],
  • "ia::meta": {
    • "totalCount": 8,
    • "start": 1,
    • "pageSize": 100,
    • "next": null,
    • "previous": null
    }
}