You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This api is used for updating stock status of product via sku list.

  • Get admin token

Using for authentication, we need token from an admin with roles allowed for Magento_Catalog::products or admin user with all resources.

Api Call:

  • End Point: /V1/integration/admin/token (example: https://eztoro.com/rest/V1/integration/admin/token)
  • Method: POST
  • Authentication: None
  • Parameters: username (Admin username) and password (Admin user password)

For more information, please read more in this link (Magento token-based authentication).

Notes: Admin token has expiration time or being clear in admin portal, afterthat you need to get new token for all usages.

  • Update stock status

This api allow user to update stock status of product in Magento with specified skus list.

  • End Point: /V1/products/status/update (example: https://eztoro.com/rest/V1/products/status/update)
  • Method: POST
  • Authentication: Bearer Token
  • Parameters:
    • skus: List sku for update, using in array
    • status: Status that need to update. Accepted Value: 1 (Available) or 0 (Not Available)


  • No labels