Trading Partners

Manage the trading partners with whom you exchange AS2 messages.

POST /api/v1/partners

Get the list of trading partners configured for your stations.

Request body (optional)
FieldTypeDescription
stationintegerFilter by station
Ejemplo Python
response = requests.post(
    f"{BASE_URL}/partners",
    headers=headers,
    json={"station": 54}
)
POST /api/v1/partners/detail

Return extended details for a specific partner.

FieldTypeRequired
idintegerYes
POST /api/v1/partners/create

Create a new trading partner to exchange AS2 messages.

Request body
FieldTypeRequiredDescription
stationintegerYesYour station ID
as2_idstringYesPartner AS2 identifier
namestringYesPartner name
emailstringYesContact email
endpoint_urlstringPartner AS2 endpoint
mdnintegerMDN type
certificate_idintegerPublic certificate associated with the partner
encryptionintegerPreferred encryption algorithm
signatureintegerPreferred signature algorithm
authbooleanEnable outbound authentication
auth_userstringHTTP authentication user
auth_passwordstringHTTP authentication password
firewallbooleanEnable additional firewall rules
Ejemplo Python
response = requests.post(
    f"{BASE_URL}/partners/create",
    headers=headers,
    json={
        "station": 62,
        "as2_id": "AS2:CLIENTE_001",
        "name": "Primary Customer",
        "endpoint_url": "https://cliente.com/as2",
        "email": "as2@cliente.com",
        "certificate_id": 129
    }
)
Response
{
  "status": "success",
  "msg": "Partner created",
  "data": {
    "id": 107,
    "partner_id": 107,
    "station_id": 62,
    "name": "Primary Customer",
    "as2_id": "AS2:CLIENTE_001",
    "url": "https://cliente.com/as2"
  }
}
POST Partner trust lifecycle

Partner creation is only the first step. In product, each partner can also carry a governed trust lifecycle with current certificate, next certificate, rollover window, TSA evidence, and event timeline.

Operator surfaceWhat it solves
Trust LifecycleDefine current and next certificates and keep rollover dates coherent.
CemScheduleRolloverPersist the approved rollover window before activation.
CemActivatePromote the next certificate to current with auditable evidence.
CemRetireRetire the old trust material after the overlap window closes.
CemEventsRead the partner timeline as operational evidence during pilot and release review.