POST
check_stock
Check current stock quantity of the product and returns available amount.
Query parameters
item
object
attributes
array[object]
Response
application/json
error
integer
Error code 0 means no error.
required
error_text
string or null
Error text; null means no error. Example: " “Username or password is invalid.”"
required
shopgate_library_version
string
Shopgate Library version. Example: “2.5.0”
required
plugin_version
string
Plugin version. Example: “2.5.3”
required
trace_id
string
Request trace-ID, needed as reference for contact.
Example: “sma-4f99573d74ae1”
required
items
array[object]
Error Codes
Code | Description |
---|---|
2 | cannot open/create logfile(s) |
10 | invalid value in configuration |
11 | error reading or writing configuration |
20 | no action specified |
21 | unknown action requested |
22 | disabled action requested |
23 | wrong response format |
83 | database error |
100 | no connection to server |
101 | Unknown action |
102 | error code received from merchant API |
120 | authentication failed |
300 | product is not in stock |
301 | product not found |
302 | less stock available than requested |
999 | Unknown error |