Send currency in "Create Product Mutation"

Hi
Is it not possible to send the Currency while Creating a product using API.

(My case: I have my products while have currencies INR and they are being converted to $ after product create mutation).

Thanks in advance :slight_smile:

Hi @khungersumit!
Are you using the value_currency field on the warehouse_products connection?
Something like this:

mutation {
  product_create(
    data: {
      name: "Test Currency"
      sku: "testSKUCurrency"
      price: "23.00"
      warehouse_products: {
        warehouse_id: "V2FyZWhvdXNlOjEzMTc0"
        on_hand: 0
        custom: false
        value_currency: "USD"
      }
    }
  ) {
    request_id
    complexity
  }
}

Thanks in advance!
Tom

Hi @tomasw

I Can see that currency which I sent in product mutation request in value_currency field, but with product Price it is shwoing $ always.

Oh I see, then you might be referring to the setting of the account, at https://app.shiphero.com/dashboard/settings

Screen Shot 2020-09-24 at 09.40.18

That is set to be in USD, that is why it is displaying that way in the UI.
Let me know if by changing that setting it still won’t show with the desired currency.

Thanks again!
Tom

Thanks, @tomasw for helping.

1 Like