Add stock keys
POST methodhttps://api.anyshop.io/v1/products/{id}/stock_items
Duplicates within the upload and keys already in stock are left out and counted.
Path parameters
idstring required
Body
application/json1 required, 0 optionalkeysarray of strings requiredThe keys, one per item: 1 to 10,000, each up to 500 characters. They go into the stock of your API key's mode1 to 10,000 items
Headers
Idempotency-Keystring Up to 255 characters. A retry with the same key and request gets the first answer, without running twice (24 hours).
Returns
The stock_upload object.
Errors
Status and error.type400invalid_requestThe request is not valid;error.paramnames the field401authenticationNo API key, or it is not valid403permissionThe key does not have the scope this needs, it is a test key where only a live key may act (the catalog), or the store is suspended (store_suspended)404not_foundNot found in the key's store and mode409conflictConflicts with the object's state (type conflict), or an Idempotency-Key reused for another request (type idempotency, code idempotency_key_reused)429rate_limitedToo many requests; see Retry-After