Barcodes
Query
barcodes — Returns ConnectionType of ProductBarcode
Scopes Required: see_products
Sortable Fields
Fields from ProductBarcode that can be used to sort the connection items
- createdAt
- lastStocktakedAt
- lastSoldAt
- code
| Arguments | Type | Description |
|---|---|---|
|
templates |
Boolean |
Whether to return the barcodes that have templates or not (defaults to |
|
createdAtStart |
Filter barcodes of products created after provided timestamp |
|
|
createdAtEnd |
Filter barcodes of products created before provided timestamp |
|
|
lastStocktakedAtStart |
Filter barcodes that have been used in a stocktake after a provided timestamp |
|
|
lastStocktakedAtEnd |
Filter barcodes that have been used in a stocktake before a provided timestamp |
|
|
lastSoldAtStart |
Filter barcodes that have been used in a sale after a provided timestamp |
|
|
lastSoldAtEnd |
Filter barcodes that have been used in a sale before a provided timestamp |
|
|
inventoryLevel |
Filter barcodes of products that match the inventory level filter |
|
|
showHostFileDeleted |
Boolean |
Whether to show the barcodes that have been deleted by a host file |
|
onlyDuplicates |
Boolean |
Whether to only show barcodes that have been used multiple times |
|
barcode |
String |
Filter for barcodes that exactly matches the provided barcode |
Example Query
query GetBarcodes($createdAtStart: DateTime) {
barcodes(createdAtStart: $createdAtStart) {
edges {
node {
quantity,
code,
lastSoldAt,
lastStocktakedAt,
hostDeletedAt
}
},
pageInfo {
hasNextPage,
endCursor
}
}
}
# Example variables
{
"createdAtStart": "<CREATED_AT_START>"
}