Skip to main content

Set Pair

Sets or updates the preferred communication channel pairing between two ECGrid IDs, directing how EDI traffic is routed between them.

Endpoint

POST /v2/comms/set-pair

Request Body

FieldTypeRequiredConstraintsDescription
ecGridIdFromintegerYesMust be a valid ECGrid IDThe source ECGrid ID (sender)
ecGridIdTointegerYesMust be a valid ECGrid IDThe destination ECGrid ID (receiver)
commIdintegerNoMust be a valid Comm IDPreferred Comm channel to use for this pairing
{
"ecGridIdFrom": 100001,
"ecGridIdTo": 200002,
"commId": 5001
}

Response

Returns an updated array of CommIDInfo objects reflecting the new pairing.

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

Code Examples

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

See Also