Skip to main content

Update Data Email

Sets or updates the data delivery email address and email delivery options for a trading partner ECGrid ID.

Endpoint​

POST /v2/ids/tp-update-data-email

Request Body​

FieldTypeRequiredConstraintsDescription
ecGridIdintegerYesMust be a valid ECGrid IDThe ECGrid ID to update
emailstringYesValid email addressEmail address for data delivery notifications
emailSystemstringNoSee EMailSystem enumEmail protocol to use
emailPayloadstringNoSee EMailPayload enumHow EDI data is delivered in the email
{
"ecGridId": 123456,
"email": "edi@acmecorp.com",
"emailSystem": "smtp",
"emailPayload": "Attachment"
}

Response​

Returns a success boolean confirming the email configuration update.

{
"success": true,
"data": true
}

ENUMs​

EMailSystem​

ValueDescription
smtpStandard SMTP email delivery
x400X.400 messaging system

EMailPayload​

ValueDescription
BodyEDI data delivered inline in the email body
AttachmentEDI data delivered as an email attachment

See Enums reference for complete enum definitions.

Code Examples​

curl -X POST "https://rest.ecgrid.io/v2/ids/tp-update-data-email" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "ecGridId": 123456, "email": "edi@acmecorp.com", "emailSystem": "smtp", "emailPayload": "Attachment" }'

See Also​