• 0
smatiz

Problemas al actualizar cantidad de un productos

Question

Al actualizar el available_quantity de un producto que esta activo mediante

PUT /items/MCOxxxxx

{
  "available_quantity": 20
}

, me esta sacando el siguiente error. Aclaro que el item tiene variantes

 

{"message":"Cannot update item MCOxxxxx [status:active, has_bids:true]","error":"validation_error","status":400,"cause":[{"department":"items","cause_id":240,"type":"error","code":"field_not_updatable","references":["available_quantity"],"message":"available_quantity is not modifiable."}]}
 

 

Que podrá ser?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
2 hours ago, smatiz said:

Al actualizar el available_quantity de un producto que esta activo mediante

PUT /items/MCOxxxxx

{
  "available_quantity": 20
}

, me esta sacando el siguiente error. Aclaro que el item tiene variantes

 

{"message":"Cannot update item MCOxxxxx [status:active, has_bids:true]","error":"validation_error","status":400,"cause":[{"department":"items","cause_id":240,"type":"error","code":"field_not_updatable","references":["available_quantity"],"message":"available_quantity is not modifiable."}]}
 

 

Que podrá ser?

Si tiene variaciones (variantes) no vas a poder hacerlo de esa forma sino directamente en la variación en especifico con su ID. Saludos cordiales.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now