Locale parameter in Order Checkout - Draft Order

4 0 1

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

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:

How can this be obtained?

1 Like