OpenAS2 edict order to Woo order how?

76 Views Asked by At

we have successfully setup the OpenAS2 (https://github.com/OpenAS2/OpenAs2App)to send messages between our partners. We are receiving orders from our partner in the EDI (edifact) format. Does anyone have an suggestion how to best translate this order and get it into our WooCommerce server as an order. Woo has an api to place orders: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order but not sure how to go from edifact order to Woo order. Any suggestions ?

1

There are 1 best solutions below

4
Andrew On

What programming languages are in your tech stack? You need to convert the segments/elements into XML/JSON that the API requires. EDI is just text formatted a specific way. If you have Python, you might give BOTS a try. There are a lot of open source parsers for EDIFACT. Or, you could go the commercial translator route.