Errors

Stock API

Stock API Errors

ErrorsError DescriptionRemedy
FAILED_TO_BUILD_RESPONSEAn unknown exception occurred while processing the request. Contact: [email protected].If this error is encountered please report it to the API support team([email protected]) in order to get this error investigated.
INCORRECT_INVENTORY_TYPEInvalid inventoryType, possible values are: [ALL, ADULT, MEDICAL]Adjust the query parameter to one of the three possible options: ALL, ADULT, MEDICAL
INDEX_PAGE_MUST_BE_GREATER_THAN_ZERO"The index page can never be negative or 0. It should be a positive value. Please try again."The page used in the call needs to be greater than 0 in order to get a successful response from the endpoint.
INVALID_CATEGORY_TYPE[Incorrect product type used in call] product type not foundAdjust the query parameter to 1 of 13 approved category_type options: BEVERAGE, PLANT, PREROLL, MERCH, NON-INV, TINCTURE, MISC, TOPICAL, CARTRIDGE, FLOWER, PILL, EXTRACT, or EDIBLE.
INVALID_DATE_FORMAT[Invalid date format used] date does not match the expected format i.e. yyyy-MM-dd'T'HH:mm:ss.SSSZAdjust the query parameter to the correct date format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
INVALID_LOCATION_NAMEUnable to find active, sellable [Incorrect location used in call] locationCorrect the location_name query parameter to the available locations that are listed in the response.
INVALID_SEARCH_PARAMETERCannot fetch more than 50 products with ID per requestStock API can only request 50 product IDs at a time in a call. Drop the number
In order to get a successful response the Active query parameter must can only be either True/False or 1/0.
Sellable_quantity query parameter must be filtered for a value that must be equal to or greater than 0
PAGESIZE_MUST_BE_GREATER_THAN_ZEROPage size must be greater than 0The page used in the call needs to be greater than 0 in order to get a successful response from the endpoint.
PAGE_SIZE_IS_TOO_LARGEPage size must be less than or equal to 200Reduce page size to below the limit listed in the error response.
UNABLE_TO_FETCH_DATAIf this error is encountered please report it to the API support team([email protected]) in order to get this error investigated.