Skip to main content

Comm Pair

Returns the communication path between two ECGrid IDs, showing which Comm channels are used for routing EDI traffic from one trading partner to another.

Endpoint​

POST /v2/comms/pair

Request Body​

FieldTypeRequiredConstraintsDescription
ecGridIdFromintegerYesMust be a valid ECGrid IDThe source ECGrid ID (sender)
ecGridIdTointegerYesMust be a valid ECGrid IDThe destination ECGrid ID (receiver)
{
"ecGridIdFrom": 100001,
"ecGridIdTo": 200002
}

Response​

Returns an array of CommIDInfo objects representing the communication path between the two ECGrid IDs.

{
"success": true,
"data": [
{
"commId": 5001,
"mailboxId": 101,
"commType": "as2",
"identifier": "MYCOMPANY-AS2",
"status": "Active",
"useType": "Production",
"privateKeyRequired": true,
"withCerts": true
},
{
"commId": 5099,
"mailboxId": 202,
"commType": "as2",
"identifier": "PARTNER-AS2",
"status": "Active",
"useType": "Production",
"privateKeyRequired": true,
"withCerts": true
}
]
}

Code Examples​

curl -X POST "https://rest.ecgrid.io/v2/comms/pair" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "ecGridIdFrom": 100001, "ecGridIdTo": 200002 }'

See Also​