Documentation

How to validate EDI files

Article author
Admin
  • Updated

Validate EDI resources with the HTTP POST Method

In order to validate EDI documents according to the implementation guide for each standard and version use the following resources with the POST method:

You can validate EDI transactions for the following EDI standards. To do so, execute HTTP POST to the resource URL, with the request body being the relevant EdiNation resource.

  • The request body must be an X12Interchange. Execute HTTP POST to the resource URL, with the request included as application/json content.

    1. URL: https://api.edination.com/v2/x12/validate
    2. Header: Ocp-Apim-Subscription-Key: {API key}
    3. Request: X12Interchange
    4. Response: OperationDetails

    The response will contain validation details, encoded in application/json format.

  • The request body must be an EdifactInterchange. Execute HTTP POST to the resource URL, with the request included as application/json content.

    1. URL: https://api.edination.com/v2/edifact/validate
    2. Header: Ocp-Apim-Subscription-Key: {API key}
    3. Request: EdifactInterchange
    4. Response: OperationDetails

    The response will contain validation details, encoded in application/json format.

  • The request body must be an Hl7Interchange. Execute HTTP POST to the resource URL, with the request included as application/json content.

    1. URL: https://api.edination.com/v2/hl7/validate
    2. Header: Ocp-Apim-Subscription-Key: {API key}
    3. Request: Hl7Interchange
    4. Response: OperationDetails

    The response will contain validation details, encoded in application/json format.

  • The request body must be an FlatMessage. Execute HTTP POST to the resource URL, with the request included as application/json content.

    1. URL: https://api.edination.com/v2/vda/validate
    2. Header: Ocp-Apim-Subscription-Key: {API key}
    3. Request: FlatMessage
    4. Response: OperationDetails

    The response will contain validation details, encoded in application/json format.

  • The request body must be an NcpdpTransmission. Execute HTTP POST to the resource URL, with the request included as application/json content.

    1. URL: https://api.edination.com/v2/ncpdp/validate
    2. Header: Ocp-Apim-Subscription-Key: {API key}
    3. Request: NcpdpTransmission
    4. Response: OperationDetails

    The response will contain validation details, encoded in application/json format.

Example with Postman:

validate-x12.png

Share this:

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.