Skip to main content

MailboxX12Delimiters

Sets the X12 EDI delimiters (element, sub-element, and segment) used for outbound EDI from a mailbox.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

MailboxIDInfo MailboxX12Delimiters(string SessionID, int MailboxID, string ElementDelimiter, string SubElementDelimiter, string SegmentTerminator)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login() with MailboxAdmin or higher authority
MailboxIDintYesNumeric identifier of the mailbox to configure
ElementDelimiterstringYesSingle character used to separate data elements (typically *)
SubElementDelimiterstringYesSingle character used to separate sub-elements (typically : or >)
SegmentTerminatorstringYesSingle character used to end segments (typically ~)

Response Object — MailboxIDInfo

Returns the updated MailboxIDInfo record with the new delimiter configuration applied.

FieldTypeDescription
MailboxIDintNumeric identifier of the mailbox
NetworkIDintNumeric identifier of the parent network
UniqueIDstringUnique string identifier of the mailbox
CompanyNamestringDisplay name of the mailbox
StatusStatusCurrent status of the mailbox
CreateddateTimeOriginal creation timestamp
ModifieddateTimeUTC timestamp of the delimiter configuration change
<!-- Example response XML -->
<MailboxIDInfo>
<MailboxID>100</MailboxID>
<NetworkID>1</NetworkID>
<UniqueID>MYMAILBOX</UniqueID>
<CompanyName>My Mailbox Company</CompanyName>
<Status>Active</Status>
<Created>2021-03-20T00:00:00</Created>
<Modified>2026-05-07T14:00:00</Modified>
</MailboxIDInfo>

:::note X12 Standard Defaults Standard X12 delimiters are: Element=*, SubElement=>, Segment=~. These defaults work with most trading partners. Only change delimiters when a specific trading partner requires non-standard characters. :::

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Apply standard X12 delimiters to mailbox 100
var updated = await client.MailboxX12DelimitersAsync(
sessionID,
mailboxId: 100,
elementDelimiter: "*",
subElementDelimiter: ">",
segmentTerminator: "~");

Console.WriteLine($"X12 delimiters set for: {updated.CompanyName}");

// Non-standard example for a partner that requires pipe-delimited elements
// var updated = await client.MailboxX12DelimitersAsync(sessionID, 100, "|", ":", "~");

REST Equivalent

See X12 DelimitersPOST /v2/mailboxes/x12-delimiters.