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_KEY
02 / Endpoints

What you can call.

All endpoints live under https://edi.ohres-inc.com/api/v1 and return JSON.

GET/api/v1/partners

List your trading partners.

curl -H "Authorization: Bearer YOUR_KEY" https://edi.ohres-inc.com/api/v1/partners
GET/api/v1/partners/:id

Get one partner's details.

curl -H "Authorization: Bearer YOUR_KEY" https://edi.ohres-inc.com/api/v1/partners/PARTNER_ID
POST/api/v1/edi/validate

Validate an EDI document.

curl -X POST -H "Authorization: Bearer YOUR_KEY" --data-binary @document.edi https://edi.ohres-inc.com/api/v1/edi/validate
POST/api/v1/edi/translate

Convert a document to EDI.

curl -X POST -H "Authorization: Bearer YOUR_KEY" -F "file=@po.pdf" https://edi.ohres-inc.com/api/v1/edi/translate
POST/api/v1/as2/send

Send a document over AS2.

curl -X POST -H "Authorization: Bearer YOUR_KEY" --data-binary @edi.txt https://edi.ohres-inc.com/api/v1/as2/send
GET/api/v1/transactions

Your transaction history.

curl -H "Authorization: Bearer YOUR_KEY" https://edi.ohres-inc.com/api/v1/transactions
GET/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.