How to convert array/object of order data to EDI 850 format?
<p>I need to build an integration process between a website (Magento in this case) and a warehouse/logistics API.
The warehouse needs to get the data as EDI (850 for order-requests, other numbers for other things).
I know how to prepare the data in other known formats (xml/json/...), but I never used EDI before, so.. how exactly am I supposed to prepare the data?</p>

<p>Thanks in advance!</p>

<p>*I downloaded <a href="https://github.com/sabas/edifact" rel="nofollow noreferrer">sabas/edifact</a> which seems to have a way of converting arrays to EDI, but still, I need to know what to put in that array..</p>

<p>**Here are some specifications from the API docs, how should I use/read that table?
<a href="https://i.stack.imgur.com/BrZIC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BrZIC.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/JyWOx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JyWOx.png" alt="enter image description here"></a></p>