Errors
Stock API
Stock API Errors
Errors | Error Description | Remedy |
---|---|---|
FAILED_TO_BUILD_RESPONSE | An 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_TYPE | Invalid 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 found | Adjust 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.SSSZ | Adjust the query parameter to the correct date format: yyyy-MM-dd'T'HH:mm:ss.SSSZ |
INVALID_LOCATION_NAME | Unable to find active, sellable [Incorrect location used in call] location | Correct the location_name query parameter to the available locations that are listed in the response. |
INVALID_SEARCH_PARAMETER | Cannot fetch more than 50 products with ID per request | Stock 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_ZERO | Page size must be greater than 0 | The 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_LARGE | Page size must be less than or equal to 200 | Reduce page size to below the limit listed in the error response. |
UNABLE_TO_FETCH_DATA | If this error is encountered please report it to the API support team([email protected]) in order to get this error investigated. |
Updated over 2 years ago