Locale parameter in Order Checkout - Draft Order

Highlighted
Tourist
4 0 1

Hello,
we have a problem regarding passing the language parameter (complet method).

For orders with the "manual" method, the default instance language is called in the summary, but we want to present it in the one the customer chooses. We need to add the "locale" parameter ex. locale = de.

How can we call the complete method on DraftOrder?

 

PUT /admin/api/2020-04/draft_orders/#{draft_order_id}/complete.json

 

In the case of an ex call
eu.xyz.com/ABC/order/DEF/authenticate?key=XXX&locale=de


the locale parameter is not passed, we get eu.xyz.com/ABC/order/DEF

 

It is necessary that we receive a url with a parameter like:
eu.xyz.com/ABC/order/DEF?locale=de

How can this be obtained?

1 Like