Update "value_currency" in update product mutation

Hi

Can’t we update “value_currency” field while updating the product (update product mutation).

I checked we can set this field while creating product but couldn’t find any field to set the currency while updating the product.

Hi @khungersumit!
You can find that field on the warehouse_product_update mutation, something like this:

mutation {
  warehouse_product_update(
    data: {
      sku: "1122334455"
      warehouse_id: "V2FyZWhvdXNlOjExNzkw"
      value_currency: "USD"
    }
  ) {
    request_id
    complexity
  }
} 

This is because it is warehouse specific, so it needs to be changed at a warehouse level and not a product level.
Let me know if this doesn’t help.
Thanks!
Tom

Hi @tomasw
It seems like not working here

I tried to update the value_currency as you suggested but neither the currency updated nor I got any response, That’s strange
Can you please check it :slight_smile:

Hi @khungersumit!
That might be because your account is a 3PL account. You might need to add the customer_account_id
that you can get if from this query:

query {
  account {
    request_id
    complexity
    data {
      id
      customers {
        edges {
          node {
            id
            legacy_id
          }
        }
      }
    }
  }
} 

And then send it on the body as:

mutation {
  warehouse_product_update(
    data: {
      customer_account_id:"V2FyZWhvdXNlOjExNes2"
      sku: "1122334455"
      warehouse_id: "V2FyZWhvdXNlOjExNzkw"
      value_currency: "USD"
    }
  ) {
    request_id
    complexity
  }
} 

Let me know if this doesn’t help.
Thanks again!
Tom