To authorise your requests, make sure to include your unique user id as a header in each request.
Endpoint: GET https://stockapi.rjpconnect.com/v1/checkstock/:productcode
The :productcode parameter should be replaced with the actual stock code of the product you want to check.
To check the stock information for a product with the stock code "S008801", make a GET request to the following URL:
Behavior for Partial and Full Product Codes
If you provide a partial product code consisting of the first 5 characters, the API will return all available colour options for products that match the provided partial code. The response will include multiple items with different colour codes but the same first 5 characters.
If you provide the full 7-digit product code, the API will return information for the specific product with the exact matching code.
The API endpoint will respond with a JSON object or an array of JSON objects containing the stock information for the specified product(s).