Checkout API / DraftOrder API - Presentment currency not applied

Highlighted
Shopify Partner
87 1 20

I have Shopify Payments set up in my development store.

The checkout is configured to support multiple currencies, which works well when checking out via the standard checkout. The shop is configured in EUR, and I'm able to check out in USD after changing the currency via the currency switcher built in to the Debut theme.

 

However, when I create a checkout via the Checkout API I'm unable to get the checkout to show in a presentment currency. It always shows in the default shop currency.

 

The payload includes a presentment_currency.

Here's the anonymized POST for a shop with default currency set to EUR.

I'm attempting to request a checkout in USD, but it generates a link to a checkout in EUR:

 

POST https://[shop].myshopify.com/admin/checkouts.json HTTP/1.1
X-Shopify-Access-Token: [ACCESSTOKEN]
Accept: application/json
Content-Type: application/json
Host: [shop].myshopify.com
Cookie: __cfduid=db46f8a2697c32efd861be690364e65591570279904
Request-Context: appId=cid-v1:[APP]
Request-Id: |a766b2d3-4bf8d561e71d2d78.
Content-Length: 101
Expect: 100-continue

{"checkout":{"line_items":[{"quantity":3,"variant_id":28327434256477}],"presentment_currency":"USD"}}

 

I'm using the presentment_currency in line with the documentation found here:

https://help.shopify.com/en/api/reference/sales-channels/checkout 

 

I've also tried to do the same using the Draft Order API, setting the currency field.

This also fails to display in USD, and also displays in EUR:

 

POST https://[SHOP]/admin/draft_orders.json HTTP/1.1
X-Shopify-Access-Token: [ACCESS TOKEN]
Accept: application/json
Content-Type: application/json
Host: [SHOP].myshopify.com
Cookie: __cfduid=db46f8a2697c32efd861be690364e65591570279904
Request-Context: appId=cid-v1:[APP]
Request-Id: |a766b2ec-4bf8d561e71d2d78.
Content-Length: 129
Expect: 100-continue

{"draft_order":{"currency":"USD","line_items":[{"quantity":3,"variant_id":28327434256477}],"use_customer_default_address":false}}

 

What am I missing?

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016
2 Likes
Highlighted
Shopify Partner
87 1 20

Any news on this?

According to the documentation this should work.

I'm probably missing something.

Can anyone point me in the right direction?

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016
2 Likes
Highlighted
Shopify Staff
Shopify Staff
1555 81 271

This does not appear to be working as intended, so thank you for the report. I've logged this as an issue internally and will keep this thread posted on any significant developments.

 

Cheers.

1 Like
Highlighted
Tourist
7 0 4

Hello,

 

We have the same problem.

Do you have any idea when the problem will be fixed? It is very important for us.

 

Thanks.

1 Like
Highlighted

One of our Shopify apps is also affected by this problem. Is there a time frame until when the problem will be fixed?

1 Like
Highlighted
Tourist
12 0 2

Hello,

 

Is there any update or timeframe on this? I'm also facing the same issue & couldn't pass the currency value.

1 Like
Highlighted
Tourist
12 0 2

Hey @DiscountNinja 

 

Did you find any solution to pass the currency value?

 

Best regards,

-Arun

0 Likes
Highlighted
Shopify Partner
87 1 20

@aruninnoppl Shopify confirmed this is a bug on their end (see above). We're waiting for feedback from the Shopify team now.

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016
0 Likes
Highlighted
Tourist
12 0 2

Thanks @DiscountNinja.

 

-Arun

0 Likes
Highlighted
Shopify Expert
141 0 24

Any update/fix yet? 
@DiscountNinja were you able to solve this?
Checkout API is still restricted to Shopify Plus, right?

0 Likes