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 producers

Do not call this API regularly without populating this parameter. It should only be used this way for example once during a daily update and will result in the connection being blocked if not used in this way.

Optional

BAROLO,CHABLIS


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.