Introduction
In this article, we explain what causes the error: "Invalid value for availability" (Error ID: 25604) and how to resolve it quickly.
This error occurs when a product is pushed to eBay without an active stock quantity. eBay requires an explicit availability value to publish a listing, and if the stock field is left empty or unmanaged, the API request fails.
The exact error message is:
{"errors":
[{"errorId":25604,"domain":"API_INVENTORY","subdomain":"Selling","category":"Request","message":"Invalid value for availability.","parameters":[]}]}
How to resolve the availability error
To fix this issue, you must enable stock management in WooCommerce and assign a valid stock quantity to the product:
Log into your WordPress backend and navigate to Products.
Click on the affected product to open the product edit page.
Scroll down to the Product Data box and select the Inventory tab.
Check the box next to Manage stock?.
Set the Quantity field to 1 or more.
Click the Update button on the right side of the screen to save your changes.
Republishing your product
Once you have verified that the product has a valid stock quantity, you can re-submit it to eBay:
Return to your WooCommerce Products overview.
Select the checkbox next to the updated product(s).
Click on the Bulk Actions dropdown menu at the top of the list.
Select Ebay: Publish/Update.
Click Apply.
The error will be resolved, and your product will publish successfully to eBay!
