Response Object – StockAvailabilityResponse
StockAvailabilityResponse
Field | Type | Description |
SupplierId | int | The unique PharmX ID of the supplier for the given products' stock availability check. |
AccountNumber | string (50) | The supplier allocated account number that identifies the pharmacy. |
BillingAccountNumber | string (50) | The supplier allocated account number for billing. |
LineCount | int | The number of StockAvailabilityResponseLine in |
Lines | An array of StockAvailabilityResponseLines (max allowed 50). |
StockAvailabilityResponseLine
Field | Type | Description |
ReorderNumber | string (50) | The supplier product code for the item (PDE code). |
Ean | string (50) | The EAN/GTIN code for the product. |
UOM | string (50) | The Unit of measure, currently defined values are: Default will be EA (each’s) if not provided by the supplier. This defines what is meant by a supply unit of “1”. |
AvailabilityByLocation | An array of StockAvailabilityByLocationLine |
StockAvailabilityByLocationLine
Field | Type | Description |
Warehouse | string (50) | The supplier reference to the warehouse to which this applies. |
WarehouseRole | string (50) | Whether primary or secondary warehouse (an indicator to the POS user regarding expected delivery date). |
Available | boolean | The flag indicating if the product is in stock. |
StockAvailable | int (nullable) | The quantity in units of stock at the supplier. If no data is available, this value will not be set. |
Cost | decimal (nullable) | The cost for this line item (if no data available this will be set to 0.00). |
ETA | DateTime (nullable) | A date value the supplier expects the item to be available. May not be available from all suppliers. Should be ignored if value is less than current datetime. |
Status | string (50) | A user-friendly description of the stock status at that location, e.g. “In Stock”, “Out of stock”, etc. |