VC Stock Availability v1

VC Stock Availability v1

Introduction

The purpose of this service is to get stock availability from vision database.

Request

API GET:  https://<pathtoapi>/StockAvailability

Input parameters

Parameter (Query Param)

Details

Required

Example

Parameter (Query Param)

Details

Required

Example

response_type

Can supply with JSON OR XML

Default is JSON

Optional

 XML

product_codes

Comma separated values to retrieve multiple products.

Maximum 20 products (however may work with higher but generally most orders are not containing more than about 4-6 lines).

Do not call this API regularly without populating this parameter.
Without the product code should be restricted to 6 times per day to call this without any product codes specified.

Optional

BAROLO,CHABLIS

To grab the daily stock use this without specifying the product codes.
To check stock on an order supply the products to have the system only check for the individual order.


Response

Element

 

 

Element

 

 

PUID

Product Unique Identifier

 

PrdCd

Product Code

 

ACs

Available Cases

 

ASg

Available Single Items

 

ATSg

Available Total Single Items

This is (available cases x quantity per case ) + available singles

JSON Response sample

[ { "PUID": 30116, "PrdCd": "BAROLO", "ACs": 80077, "ASg": 6, "ATSg": 960930 }, { "PUID": 30117, "PrdCd": "CHABLIS", "ACs": 92957, "ASg": 8, "ATSg": 1115492 } ]

XML Response sample

<AvailableStocks> <Stock> <PUID>30116</PUID> <PrdCd>BAROLO</PrdCd> <ACs>80074</ACs> <ASg>6</ASg> <ATSg>960894</ATSg> </Stock> <Stock> <PUID>30117</PUID> <PrdCd>CHABLIS</PrdCd> <ACs>92955</ACs> <ASg>8</ASg> <ATSg>1115468</ATSg> </Stock> </AvailableStocks>

 



Copyright Ontech Solutions 2017-2024. All rights reserved, no part may be replicated or distributed without the express permission of the owner.