Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

License

The Barcode module requires a separate license to be installed before key parts of the functionality are available. This license is disabled by default. Please contact PCR to obtain a license.

Before the Barcode API calls can be sent, the Barcode module must be activated.

Using POST Calls

  • POST requests will ignore parameters supplied as a query string and need any additional parameters in the request Body.
  • To configure the number of Pages/Results returned by the API (this is most useful for the SQL Endpoint), you can send these as additional Parameter's in the Body.

    Parameter

    Data Type

    Default

    Description

    limit

    Interger

    20

    Number of listings to show.

    page

    Interger

    1

    Page number to show.

  • API fields are not case sensitive, and will always be returned in the lower case format.

Write Call

Available Fields

Parameter

Required

Data Type

Options

Notes

transaction_type

Yes

String

sd_eqp_status, whs_bulk_add, whs_bulk_transfer

This field determines how PCR-360 will process the request.

SD Equipment Status

Notes

  • transaction_type must be sd_eqp_status.
  • When setting up the Barcode API in Admin, the Authentication Required box must be true. Barcode requires authentication to work.

Authentication_Required_checkbox_example

Available Fields

Parameter

Required

Data Type

Options

Notes

recid

Yes

Integer


RECID column from SERVICE_DESK_EQP table.
sde_statusYesString

Lists 

The Status of the Equipment.
asset_tagNo*String

Asset Tag on the Equipment.

Conditionally Required if the Equipment is an Asset.

eqp_idNo*String

Equipment ID of the Equipment.

Conditionally Required if the Equipment is Cabling Equipment.

locationNo*Integer

RECID of the Warehouse of the Equipment.

Conditionally Required: see Notes section below.

workerNo*Integer

RECID of the Worker performing the Activity. 

Conditionally Required: see Notes section below.

Notes

  • For sde_statusStaged the following are required.
    • location - must be an active sub-Warehouse of the starting Warehouse
  • For sde_statusPicked Up the following are required.
    • location - must be an active Warehouse
    • worker - Contact RECID - Worker type, Active
  • For sde_statusComplete the following are required.
    • location - if it is blank on the sd_eqp record it must be included, if the Equipment is non-consumable, and must be an existing Location

Request Example

Call
http://DOMAIN/api/API_KEY/barcode.OUTPUT
Headers
KeyValue

Content-Type

application/json

PCR-AUTH-TOKEN

example: e036a785-4d7a-40ed-a04a-c8e339327f55
Body
KeyValue
transaction_typesd_eqp_status
recid53054
sde_status262
asset_tagassettag145
eqp_id39
location87963
worker63045

Results

If the request is successful, then the response will return as:

Service Desk Equipment Status example

Warehouse Bulk Add

Notes

  • transaction_type must be whs_bulk_add.
  • When setting up the Barcode API in Admin, the Authentication Required box must be trueAuthentication Required checkbox example. Barcode requires authentication to work.

Available Fields

Parameter

Required

Data Type

Options

Notes

eqp_catalog

Yes

Integer


RECID of the Equipment's Equipment Catalog.
eqp_statusYesInteger

Lists 

The RECID of the status of the Equipment.
eqp_conditionNoInteger

Lists 

The RECID of the condition of the Equipment.
received_dateNoDate
The date the Equipment was Received. Format "YYYY/MM/DD"
locationYesInteger
RECID of the Warehouse of the Equipment. Must be an active Warehouse.
quantityYesInteger

This represents both Units and Quantity. If the Equipment Catalog Has Units - it is Units - if it is marked as "not units" then it is recorded as Quantity in the application currently.

purchase_priceNoFloat
The purchase price of the Equipment must be greater than or equal to zero.
assetsNoArray
Only valid for Asset or Cabling Equipment, else ignored. If provided the number of entries must match the quantity.
commentsYesString

The reason why the Equipment is being added.

unitsNo*Integer
Must be a positive number that is greater than 0.
Conditionally Required: If the "Has Units" box is checked on the Equipment Catalog.

Notes

  • It must be an active Equipment Catalog.
  • Positive (none-zero) count, cannot be null.
  • Status' that are allowed
    • Unassigned
    • Broken
    • Lost
    • Retired
    • Any custom status for the EQP_STATUS in the List Values table.
    • If the Status is not one of the valid List Values, the API will error.
  • The Warehouse must be an active Warehouse.
  • Asset Array
    • Optional for Asset or Cabling Equipment (flags on Equipment Catalog).
    • Should be ignored (not put in db) if a non-asset or non-cabling equipment is used.
    • The number of entries in the asset array must exactly match the count when provided.
  • If provided, the price must be a positive number or zero, If not provided, the value can be null.
  • Any valid date, past, present, or future, is allowed.

Request Example

Call
http://DOMAIN/api/API_KEY/barcode.OUTPUT
Headers
KeyValue

Content-Type

application/json

PCR-AUTH-TOKEN

example: e036a785-4d7a-40ed-a04a-c8e339327f55

Body
KeyValue
transaction_type

whs_bulk_add

eqp_catalog533
eqp_status94
location86201
quantity3
purchase_price$1.74
commentsJohnny Test
received_date

2020/11/06 

assets[0][ASSET_TAG]assettag145
assets[0][SERIAL_NUM]serialnum145
assets[0][EQUIPMENT_ID]equipmentid145
units11

Results

If the request is successful, then the response will return as:

Warehouse bulk add example

Warehouse Bulk Transfer

Notes

  • transaction_type must be whs_bulk_transfer.
  • When setting up the Barcode API in Admin, the Authentication Required box must be true Authentication Required checkbox example. Barcode requires authentication to work.

Available Fields

Parameter

Required

Data Type

Options

Notes

eqp_catalog

Yes

Integer


RECID of the Equipment's Equipment Catalog.
quantityNoInteger
This represents both Units and Quantity. If the Equipment Catalog Has Units - it is Units - if it is marked as "not units" then it is recorded as Quantity in the application currently.
from_locationYesInteger
Location RECID of the Warehouse of the Equipment is from.
to_locationYesInteger
Location RECID of the Warehouse of the Equipment is going to.
recidsNo*Array
Conditionally Required if the Equipment is an Asset. An array of Asset Tags, Serial Numbers and/or Equipment IDs (id # on the equipment record). See the Notes section below.
commentsYesString
The reason why the Equipment is being transferred.

Notes

  • It must be an active Equipment Catalog.
  • Positive (none-zero) count, cannot be null.
  • Status' that are allowed
    • Unassigned
    • Broken
    • Lost
    • Retired
    • Any custom status
    • If the Status is not one of the valid List Values, the API will error.
  • The Warehouse must be an active Warehouse.
  • Equipment RecIDs array
    • Required for Asset or Cabling Equipment (flags on Equipment Catalog).
    • should be ignored (not put in db) if a non-asset or non-cabling equipment is used.
    • The number of entries in the Equipment RecIDs array must exactly match the count when provided.

Request Example

Call
http://DOMAIN/api/API_KEY/barcode.OUTPUT
Headers
KeyValue

Content-Type

application/json

PCR-AUTH-TOKEN

example: e036a785-4d7a-40ed-a04a-c8e339327f55

Body
KeyValue

transaction_type

whs_bulk_transfer
eqp_catalog533
quantity23
from_location86201
to_location86200
recids53054
commentsJohnny Test

Results

If the request is successful, then the response will return as:

Warehouse bulk transfer example

Receive Purchase Order

Notes

  • transaction_type must be po_receive.
  • When setting up the Barcode API in Admin, the Authentication Required box must be true Authentication Required checkbox example. Barcode requires authentication to work.

Available Fields

Parameter

Required

Data Type

Options

Notes

recid YesInteger
Purchase Order RECID, Status must be Open
eqp_catalogYesInteger
Equipment Catalog RECID
priceYesFloat
Price of Equipment
unitsNoInteger
Units of Equipment,
Note: that this will default to 1 for units catalogs. It is ignored for non-unit catalogs
quantityYesInteger
Quantity to Receive
locationYesInteger
Valid Active Warehouse RECID to receive Equipment
received_dateNoDate
Received Date
assetsNoArray
Only valid for Asset or Cabling Equipment, else ignored. If provided the number of entries must match the quantity.


Request Example

Call
http://DOMAIN/api/API_KEY/barcode.OUTPUT
Headers
KeyValue

Content-Type

application/json

PCR-AUTH-TOKEN

example: e036a785-4d7a-40ed-a04a-c8e339327f55

Body
KeyValue
recid 12874
eqp_catalog346
price9.99
quantity4
location694

Results

If the request is successful, then the response will return as:

Receiving a PO example

Locating Data related to Barcodes

When the Barcode Module is enabled, the Barcode is stored on the Equipment Catalog (Main > Catalogs > Equipment) for the Equipment expected to be scanned.

To locate Equipment data navigate to Main > Inventory > Equipment, to view actual Equipment records.

To locate Location data navigate to Main > Catalogs > Location, to view actual Location records.

To locate Service Desk data navigate to Main > Service Desk > My Service Desk > Equipment, to view actual Service Desk records related to Equipment.

All grids have the option to show the ROW ID column, which is also the RECID for that particular record.



  • No labels