A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
we have prices, for products, in different currencies, where are these accessible via REST API
Solved! Go to the solution
This is an accepted solution.
found the solution, it required a magic header in the request
Requires the header 'X-Shopify-Api-Features': 'include-presentment-prices'.
Wouldn't that be in the product variant?
/admin/api/2022-01/variants/{id}.json
product->variant->presentment_prices[]
This is an accepted solution.
found the solution, it required a magic header in the request
Requires the header 'X-Shopify-Api-Features': 'include-presentment-prices'.
Hi, According to the documentation you don't need to include that header. As I mentioned in my post the presentment prices are automatically returned using the REST API,
The linke below even indicates that.
if you don't specify which presentment currencies you want it should always return all.
/admin/api/2022-01/products/632910392/variants.json?presentment_currencies=USD,CAD
Hi, what if you don't have presentment prices and you just have 1 price.
Rest api (/admin/api/2023-07/products.json) returns this variant object:
{
product_id: 8547966910779,
id: 45891642589499,
title: S,
price: 75000.00,
sku: ,
position: 1,
inventory_policy: deny,
compare_at_price: null,
fulfillment_service: manual,
inventory_management: shopify,
option1: S,
option2: null,
option3: null,
created_at: 2023-07-24T10:35:14-05:00,
updated_at: 2023-07-24T10:35:14-05:00,
taxable: false,
barcode: ,
grams: 1000,
image_id: 42429068542267,
weight: 1,
weight_unit: kg,
inventory_item_id: 47938406547771,
inventory_quantity: 2,
old_inventory_quantity: 2,
requires_shipping: true,
admin_graphql_api_id: gid://shopify/ProductVariant/45891642589499}
How can I get the currency of that price with rest api?