API
EDI from your own code.
Validate, translate and send documents, and read your partners and history, over a simple REST API.
01 / Authentication
One header.
Send your API key as a bearer token with every request. Keep it on your server, never in a browser.
Authorization: Bearer YOUR_API_KEY02 / Endpoints
What you can call.
All endpoints live under https://edi.ohres-inc.com/api/v1 and return JSON.
GET
/api/v1/partnersList your trading partners.
curl -H "Authorization: Bearer YOUR_KEY" https://edi.ohres-inc.com/api/v1/partnersGET
/api/v1/partners/:idGet one partner's details.
curl -H "Authorization: Bearer YOUR_KEY" https://edi.ohres-inc.com/api/v1/partners/PARTNER_IDPOST
/api/v1/edi/validateValidate an EDI document.
curl -X POST -H "Authorization: Bearer YOUR_KEY" --data-binary @document.edi https://edi.ohres-inc.com/api/v1/edi/validatePOST
/api/v1/edi/translateConvert a document to EDI.
curl -X POST -H "Authorization: Bearer YOUR_KEY" -F "file=@po.pdf" https://edi.ohres-inc.com/api/v1/edi/translatePOST
/api/v1/as2/sendSend a document over AS2.
curl -X POST -H "Authorization: Bearer YOUR_KEY" --data-binary @edi.txt https://edi.ohres-inc.com/api/v1/as2/sendGET
/api/v1/transactionsYour transaction history.
curl -H "Authorization: Bearer YOUR_KEY" https://edi.ohres-inc.com/api/v1/transactionsGET
/api/v1/Lists the available API resources. Answers 200 when the service is up.
curl https://edi.ohres-inc.com/api/v1/Get an API key.
Ask for a key when you sign up and we will set it up with your plan. Meanwhile, the validator runs document checks in your browser.