Get the barcode collection

get

/api/v1/barcodes/collection

{basePath}/barcodes/collection?OrgShortName=tfoinc&LocRef=fdmnh144&RvcRef=42

Get barcodes configuration for menu item.

Supported only for STS Gen2 cloud integrations.

Request

Supported Media Types
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

A collection of barcodes
Headers
  • The current entity-tag for the selected representation. See RFC 7232 Section 2.3
  • A timestamp indicating the date and time at which the origin server believes the selected representation was last modified. See RFC 7232 Section 2.2
Body ()
Root Schema : BarcodeCollection
Type: object
A collection of BarcodeItems for a revenue center
Show Source
Nested Schema : BarcodeItem
Type: object
Show Source
Nested Schema : OrgLocRvcProperties
Type: object
A collection of properties for orgShortName, locRef and rvcRef
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : BarcodeItem
Type: object
Definition of a Barcode object
Show Source
  • Minimum Length: 1
    Maximum Length: 8192
    Pattern: ^[0-9]+$
    The value of the barcode
    Example: 000123456890
  • Minimum Value: 1
    Identifier for the barcode item
  • Minimum Value: 1
    The menu item definition identifier for the barcode
  • Minimum Value: 1
    The menu item identifier for the barcode
    Example: 32
  • Minimum Value: 0
    Minimum Value: > true
    The alternate preparation cost for the barcode
    If
    minimum: 0
    exclusiveMinimum: true
    This means that the allowed values excludes the value of minimum, 0. So 0.000001 would be valid, but 0 would not.
    If exclusiveMinimum: false then 0 and 0.000001 would be valid.
    Zero price, preparationCost, definitionSequence or priceSequence are not allowed.
  • Minimum Value: 0
    Minimum Value: > true
    The alternate price for the barcode
    If
    minimum: 0
    exclusiveMinimum: true
    This means that the allowed values excludes the value of minimum, 0. So 0.000001 would be valid, but 0 would not.
    If exclusiveMinimum: false then 0 and 0.000001 would be valid.
    Zero price, preparationCost, definitionSequence or priceSequence are not allowed.
  • Minimum Value: 1
    The price sequence for the barcode

304 Response

304 Not Modified

400 Response

400 Bad Request
Body ()
Root Schema : ConfigurationApiProblemDetails
Type: object
Problem details is used as standard model for reporting details when HTTP error status code is returned. This definition is defined by [RFC7807](https://tools.ietf.org/html/rfc7807). The content type for this response is `application/problem+json`
Show Source
  • A human-readable explanation specific to this occurrence of the problem.
    Example: The OrgShortName value is required.
  • A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
    Example: required_value_missing
  • A short, human-readable summary of the problem type.
    Example: Required value not specified.
  • A URI reference that identifies the problem type. When this member is not present, its value is assumed to be "about:blank".
    Example: error:validation
Example:
{
    "type":"error:validation",
    "title":"Required value not specified.",
    "details":"The OrgShortName value is required.",
    "instance":"required_value_missing"
}
Back to Top

Examples

Example Request Body

Not applicable for this endpoint.

Example Response Body

The following example shows the contents of the response body in JSON format:


{
  "orgShortName": "mymeal",
  "locRef": "store66",
  "rvcRef": 2,
  "items": [
    {
      "barcodeId": 1,
      "barcode": "000123456890",
      "menuItemId": 32,
      "definitionSequence": 1,
      "price": 1,
      "priceSequence": 1,
      "preparationCost": 1
    }
  ]
}
Back to Top