This quick-start uses Postman to consume the EDI API, get Postman here.
In this tutorial we'll show how to validate EDIFACT functional group header - UNG segment.
Set the Headers
If you'd like to receive XML-encoded responses, set Accept to application/xml.
If you'd like to send XML-encoded requests, set Content-Type to application/xml.
Set the API key to the key that you generated in the developer portal (the one above is for evaluation purposes only).
Set the Body
The validate request model (API Reference) can be encoded either as JSON or XML (set the Content-Type header):
TIP: You can use any of the sample requests we have included in the API portal:
Set the body in Postman:
Hit the Send button
Use the following URL:
Inspect the response
The response is an array of SegmentErrorContext objects:
If the response is an empty array then the segment is valid