How to get each line item's conversion price when created draft order in multi currency via API

Tester5
Shopify Partner
4 0 0

Hello,

Can you please guide me as for our App, I need to setup multi currency wise draft order creation functionality in which draft order is being created for market specific region but it missing to return converted price for each line item used in draft order creation. API returns total price converted value but not returning prices for each line item then how can I get converted price for each line item after draft order created in another currency specific to market region?

I have used below query >

mutation draftOrderCreate($input: DraftOrderInput!) {
draftOrderCreate(input: $input) {
draftOrder {
# DraftOrder fields
email,
marketRegionCountryCode,
presentmentCurrencyCode,
lineItems(first: 250){
nodes {
quantity
title
originalUnitPrice
variant{
id

}
}
}
}
userErrors {
field
message
}
}
}

Here, you can see in "Line items" you can only supply > "originalUnitPrice" in base currency of client and it will automatically converted price for e.g. in "EURO" when country code supply will be "ES" (Spain) then it will return total price amount in EURO but not returning each line item's price in EURO. I need this for our App.

Can you please let us know 


Replies 0 (0)