在 Azure 逻辑应用中创建用于跟踪 X12 消息的架构Create schemas for tracking X12 messages in Azure Logic Apps

若要帮助你监视企业到企业 (B2B) 事务的成功、错误和消息属性,可以在集成帐户中使用以下 X12 跟踪架构:To help you monitor success, errors, and message properties for business-to-business (B2B) transactions, you can use these X12 tracking schemas in your integration account:

  • X12 事务集跟踪架构X12 transaction set tracking schema
  • X12 交易集确认跟踪架构X12 transaction set acknowledgment tracking schema
  • X12 交换跟踪架构X12 interchange tracking schema
  • X12 交换确认跟踪架构X12 interchange acknowledgment tracking schema
  • X12 功能组跟踪架构X12 functional group tracking schema
  • X12 功能组确认跟踪架构X12 functional group acknowledgment tracking schema

X12 事务集跟踪架构X12 transaction set tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "senderQualifier": "",
      "senderIdentifier": "",
      "receiverQualifier": "",
      "receiverIdentifier": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "interchangeControlNumber": "",
      "functionalGroupControlNumber": "",
      "transactionSetControlNumber": "",
      "CorrelationMessageId": "",
      "messageType": "",
      "isMessageFailed": "",
      "isTechnicalAcknowledgmentExpected": "",
      "isFunctionalAcknowledgmentExpected": "",
      "needAk2LoopForValidMessages": "",
      "segmentsCount": ""
   }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString X12 消息发送者的合作伙伴名称X12 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString X12 消息接收者的合作伙伴名称X12 message receiver's partner name
senderQualifiersenderQualifier Yes StringString 发送合作伙伴限定符Send partner qualifier
senderIdentifiersenderIdentifier Yes StringString 发送合作伙伴标识符Send partner identifier
receiverQualifierreceiverQualifier Yes StringString 接收合作伙伴限定符Receive partner qualifier
receiverIdentifierreceiverIdentifier Yes StringString 接收合作伙伴标识符Receive partner identifier
agreementNameagreementName No StringString 解析消息的 X12 协议名称Name of the X12 agreement to which the messages are resolved
directiondirection Yes 枚举Enum 消息流的方向,receivesendDirection of the message flow, which is either receive or send
interchangeControlNumberinterchangeControlNumber No StringString 交换控制编号Interchange control number
functionalGroupControlNumberfunctionalGroupControlNumber No StringString 功能控制编号Functional control number
transactionSetControlNumbertransactionSetControlNumber No StringString 交易集控制编号Transaction set control number
CorrelationMessageIdCorrelationMessageId No StringString 关联消息 ID,{AgreementName}{GroupControlNumber}{TransactionSetControlNumber} 的组合 Correlation message ID, which is a combination of {AgreementName}{ GroupControlNumber }{TransactionSetControlNumber}
messageTypemessageType No StringString 交易集或文档类型Transaction set or document type
isMessageFailedisMessageFailed Yes BooleanBoolean X12 消息是否失败Whether the X12 message failed
isTechnicalAcknowledgmentExpectedisTechnicalAcknowledgmentExpected Yes BooleanBoolean 是否已在 X12 协议中配置了技术确认Whether the technical acknowledgment is configured in the X12 agreement
isFunctionalAcknowledgmentExpectedisFunctionalAcknowledgmentExpected Yes BooleanBoolean 是否已在 X12 协议中配置了功能确认Whether the functional acknowledgment is configured in the X12 agreement
needAk2LoopForValidMessagesneedAk2LoopForValidMessages Yes BooleanBoolean 有效的消息是否需要 AK2 循环Whether the AK2 loop is required for a valid message
segmentsCountsegmentsCount No IntegerInteger X12 交易集中的段数Number of segments in the X12 transaction set

X12 交易集确认跟踪架构X12 transaction set acknowledgment tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "senderQualifier": "",
      "senderIdentifier": "",
      "receiverQualifier": "",
      "receiverIdentifier": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "interchangeControlNumber": "",
      "functionalGroupControlNumber": "",
      "isaSegment": "",
      "gsSegment": "",
      "respondingfunctionalGroupControlNumber": "",
      "respondingFunctionalGroupId": "",
      "respondingtransactionSetControlNumber": "",
      "respondingTransactionSetId": "",
      "statusCode": "",
      "processingStatus": "",
      "CorrelationMessageId": "",
      "isMessageFailed": "",
      "ak2Segment": "",
      "ak3Segment": "",
      "ak5Segment": ""
   }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString X12 消息发送者的合作伙伴名称X12 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString X12 消息接收者的合作伙伴名称X12 message receiver's partner name
senderQualifiersenderQualifier Yes StringString 发送合作伙伴限定符Send partner qualifier
senderIdentifiersenderIdentifier Yes StringString 发送合作伙伴标识符Send partner identifier
receiverQualifierreceiverQualifier Yes StringString 接收合作伙伴限定符Receive partner qualifier
receiverIdentifierreceiverIdentifier Yes StringString 接收合作伙伴标识符Receive partner identifier
agreementNameagreementName No StringString 解析消息的 X12 协议名称Name of the X12 agreement to which the messages are resolved
directiondirection Yes 枚举Enum 消息流的方向,receivesendDirection of the message flow, which is either receive or send
interchangeControlNumberinterchangeControlNumber No StringString 功能确认的交换控制编号Interchange control number of the functional acknowledgment. 只有发送方已收到发送给合作伙伴的消息的功能确认时,才会为发送方填充此值。The value populates only for the send side where functional acknowledgment is received for the messages sent to partner.
functionalGroupControlNumberfunctionalGroupControlNumber No StringString 功能确认的功能组控制编号Functional group control number of the functional acknowledgment. 只有发送方已收到发送给合作伙伴的消息的功能确认时,才会为发送方填充此值The value populates only for the send side where functional acknowledgment is received for the messages sent to partner
isaSegmentisaSegment No StringString 消息的 ISA 段。ISA segment of the message. 只有发送方已收到发送给合作伙伴的消息的功能确认时,才会为发送方填充此值The value populates only for the send side where functional acknowledgment is received for the messages sent to partner
gsSegmentgsSegment No StringString 消息的 GS 段。GS segment of the message. 只有发送方已收到发送给合作伙伴的消息的功能确认时,才会为发送方填充此值The value populates only for the send side where functional acknowledgment is received for the messages sent to partner
respondingfunctionalGroupControlNumberrespondingfunctionalGroupControlNumber No StringString 响应交换控制编号The responding interchange control number
respondingFunctionalGroupIdrespondingFunctionalGroupId No StringString 确认中映射到 AK101 的响应功能组 IDThe responding functional group ID, which maps to AK101 in the acknowledgment
respondingtransactionSetControlNumberrespondingtransactionSetControlNumber No StringString 响应交易集控制编号The responding transaction set control number
respondingTransactionSetIdrespondingTransactionSetId No StringString 确认中映射到 AK201 的响应交易集 IDThe responding transaction set ID, which maps to AK201 in the acknowledgment
statusCodestatusCode Yes BooleanBoolean 交易集确认状态代码Transaction set acknowledgment status code
segmentsCountsegmentsCount Yes 枚举Enum 确认状态代码,其允许值为:AcceptedRejectedAcceptedWithErrorsAcknowledgment status code with these permitted values: Accepted, Rejected, and AcceptedWithErrors
processingStatusprocessingStatus Yes 枚举Enum 确认的处理状态,其允许值为:ReceivedGeneratedSentProcessing status of the acknowledgment with these permitted values: Received, Generated, and Sent
CorrelationMessageIdCorrelationMessageId No StringString 关联消息 ID,{AgreementName}{GroupControlNumber}{TransactionSetControlNumber} 的组合 Correlation message ID, which is a combination of {AgreementName}{ GroupControlNumber }{TransactionSetControlNumber}
isMessageFailedisMessageFailed Yes BooleanBoolean X12 消息是否失败Whether the X12 message failed
ak2Segmentak2Segment No StringString 对接收的功能组内的交易集的确认Acknowledgment for a transaction set within the received functional group
ak3Segmentak3Segment No StringString 报告数据段中的错误Reports errors in a data segment
ak5Segmentak5Segment No StringString 报告是否接受或拒绝 AK2 段中标识的交易集及其原因Reports whether the transaction set identified in the AK2 segment is accepted or rejected, and why

X12 交换跟踪架构X12 interchange tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "senderQualifier": "",
      "senderIdentifier": "",
      "receiverQualifier": "",
      "receiverIdentifier": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "interchangeControlNumber": "",
      "isaSegment": "",
      "isTechnicalAcknowledgmentExpected": "",
      "isMessageFailed": "",
      "isa09": "",
      "isa10": "",
      "isa11": "",
      "isa12": "",
      "isa14": "",
      "isa15": "",
      "isa16": ""
   }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString X12 消息发送者的合作伙伴名称X12 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString X12 消息接收者的合作伙伴名称X12 message receiver's partner name
senderQualifiersenderQualifier Yes StringString 发送合作伙伴限定符Send partner qualifier
senderIdentifiersenderIdentifier Yes StringString 发送合作伙伴标识符Send partner identifier
receiverQualifierreceiverQualifier Yes StringString 接收合作伙伴限定符Receive partner qualifier
receiverIdentifierreceiverIdentifier Yes StringString 接收合作伙伴标识符Receive partner identifier
agreementNameagreementName No StringString 解析消息的 X12 协议名称Name of the X12 agreement to which the messages are resolved
directiondirection Yes 枚举Enum 消息流的方向,receivesendDirection of the message flow, which is either receive or send
interchangeControlNumberinterchangeControlNumber No StringString 交换控制编号Interchange control number
isaSegmentisaSegment No StringString 消息 ISA 段Message ISA segment
isTechnicalAcknowledgmentExpectedisTechnicalAcknowledgmentExpected BooleanBoolean 是否已在 X12 协议中配置了技术确认Whether the technical acknowledgment is configured in the X12 agreement
isMessageFailedisMessageFailed Yes BooleanBoolean X12 消息是否失败Whether the X12 message failed
isa09isa09 No StringString X12 文档交换日期X12 document interchange date
isa10isa10 No StringString X12 文档交换时间X12 document interchange time
isa11isa11 No StringString X12 交换控制标准标识符X12 interchange control standards identifier
isa12isa12 No StringString X12 交换控制版本号X12 interchange control version number
isa14isa14 No StringString 请求了 X12 确认X12 acknowledgment is requested
isa15isa15 No StringString 表示测试或生产的指示符Indicator for test or production
isa16isa16 No StringString 元素分隔符Element separator

X12 交换确认跟踪架构X12 interchange acknowledgment tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "senderQualifier": "",
      "senderIdentifier": "",
      "receiverQualifier": "",
      "receiverIdentifier": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "interchangeControlNumber": "",
      "isaSegment": "",
      "respondingInterchangeControlNumber": "",
      "isMessageFailed": "",
      "statusCode": "",
      "processingStatus": "",
      "ta102": "",
      "ta103": "",
      "ta105": ""
   }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString X12 消息发送者的合作伙伴名称X12 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString X12 消息接收者的合作伙伴名称X12 message receiver's partner name
senderQualifiersenderQualifier Yes StringString 发送合作伙伴限定符Send partner qualifier
senderIdentifiersenderIdentifier Yes StringString 发送合作伙伴标识符Send partner identifier
receiverQualifierreceiverQualifier Yes StringString 接收合作伙伴限定符Receive partner qualifier
receiverIdentifierreceiverIdentifier Yes StringString 接收合作伙伴标识符Receive partner identifier
agreementNameagreementName No StringString 解析消息的 X12 协议名称Name of the X12 agreement to which the messages are resolved
directiondirection Yes 枚举Enum 消息流的方向,receivesendDirection of the message flow, which is either receive or send
interchangeControlNumberinterchangeControlNumber No StringString 从合作伙伴收到的技术确认的交换控制编号Interchange control number of the technical acknowledgment that's received from partners
isaSegmentisaSegment No StringString 从合作伙伴收到的技术确认的 ISA 段ISA segment for the technical acknowledgment that's received from partners
respondingInterchangeControlNumberrespondingInterchangeControlNumber No StringString 从合作伙伴收到的技术确认的交换控制编号Interchange control number for the technical acknowledgment that's received from partners
isMessageFailedisMessageFailed Yes BooleanBoolean X12 消息是否失败Whether the X12 message failed
statusCodestatusCode Yes 枚举Enum 交换确认状态代码,其允许值为:AcceptedRejectedAcceptedWithErrorsInterchange acknowledgment status code with these permitted values: Accepted, Rejected, and AcceptedWithErrors
processingStatusprocessingStatus Yes 枚举Enum 确认状态,其允许值为:ReceivedGeneratedSentAcknowledgment status with these permitted values: Received, Generated, and Sent
ta102ta102 No StringString 交换日期Interchange date
ta103ta103 No StringString 交换时间Interchange time
ta105ta105 No StringString 交换注释代码Interchange note code

X12 功能组跟踪架构X12 functional group tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "senderQualifier": "",
      "senderIdentifier": "",
      "receiverQualifier": "",
      "receiverIdentifier": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "interchangeControlNumber": "",
      "functionalGroupControlNumber": "",
      "gsSegment": "",
      "isTechnicalAcknowledgmentExpected": "",
      "isFunctionalAcknowledgmentExpected": "",
      "isMessageFailed": "",
      "gs01": "",
      "gs02": "",
      "gs03": "",
      "gs04": "",
      "gs05": "",
      "gs07": "",
      "gs08": ""
   }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString X12 消息发送者的合作伙伴名称X12 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString X12 消息接收者的合作伙伴名称X12 message receiver's partner name
senderQualifiersenderQualifier Yes StringString 发送合作伙伴限定符Send partner qualifier
senderIdentifiersenderIdentifier Yes StringString 发送合作伙伴标识符Send partner identifier
receiverQualifierreceiverQualifier Yes StringString 接收合作伙伴限定符Receive partner qualifier
receiverIdentifierreceiverIdentifier Yes StringString 接收合作伙伴标识符Receive partner identifier
agreementNameagreementName No StringString 用于解析消息的 X12 协议的名称The name of the X12 agreement to which the messages are resolved
directiondirection Yes 枚举Enum 消息流的方向,receive 或 sendDirection of the message flow, either receive or send
interchangeControlNumberinterchangeControlNumber No StringString 交换控制编号Interchange control number
functionalGroupControlNumberfunctionalGroupControlNumber No StringString 功能控制编号Functional control number
gsSegmentgsSegment No StringString 消息 GS 段Message GS segment
isTechnicalAcknowledgmentExpectedisTechnicalAcknowledgmentExpected Yes BooleanBoolean 是否已在 X12 协议中配置了技术确认Whether the technical acknowledgment is configured in the X12 agreement
isFunctionalAcknowledgmentExpectedisFunctionalAcknowledgmentExpected Yes BooleanBoolean 是否已在 X12 协议中配置了功能确认Whether the functional acknowledgment is configured in the X12 agreement
isMessageFailedisMessageFailed Yes BooleanBoolean X12 消息是否失败Whether the X12 message failed
gs01gs01 No StringString 功能标识符代码Functional identifier code
gs02gs02 No StringString 应用程序发送者的代码Application sender's code
gs03gs03 No StringString 应用程序接收者的代码Application receiver's code
gs04gs04 No StringString 功能组日期Functional group date
gs05gs05 No StringString 功能组时间Functional group time
gs07gs07 No StringString 责任代理代码Responsible agency code
gs08gs08 No StringString 版本、发行版或行业的标识符代码Identifier code for the version, release, or industry

X12 功能组确认跟踪架构X12 functional group acknowledgment tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "senderQualifier": "",
      "senderIdentifier": "",
      "receiverQualifier": "",
      "receiverIdentifier": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "interchangeControlNumber": "",
      "functionalGroupControlNumber": "",
      "isaSegment": "",
      "gsSegment": "",
      "respondingfunctionalGroupControlNumber": "",
      "respondingFunctionalGroupId": "",
      "isMessageFailed": "",
      "statusCode": "",
      "processingStatus": "",
      "ak903": "",
      "ak904": "",
      "ak9Segment": ""
   }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString X12 消息发送者的合作伙伴名称X12 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString X12 消息接收者的合作伙伴名称X12 message receiver's partner name
senderQualifiersenderQualifier Yes StringString 发送合作伙伴限定符Send partner qualifier
senderIdentifiersenderIdentifier Yes StringString 发送合作伙伴标识符Send partner identifier
receiverQualifierreceiverQualifier Yes StringString 接收合作伙伴限定符Receive partner qualifier
receiverIdentifierreceiverIdentifier Yes StringString 接收合作伙伴标识符Receive partner identifier
agreementNameagreementName No StringString 解析消息的 X12 协议名称Name of the X12 agreement to which the messages are resolved
directiondirection Yes 枚举Enum 消息流的方向,receivesendDirection of the message flow, which is either receive or send
interchangeControlNumberinterchangeControlNumber No StringString 交换控制编号,当从合作伙伴收到了技术确认时,会为发送方填充此值Interchange control number, which populates for the send side when a technical acknowledgment is received from partners
functionalGroupControlNumberfunctionalGroupControlNumber No StringString 技术确认的功能组控制编号,当从合作伙伴收到了技术确认时,会为发送方填充此值Functional group control number of the technical acknowledgment, which populates for the send side when a technical acknowledgment is received from partners
isaSegmentisaSegment No StringString 与交换控制编号相同,但仅在特定情况下填充Same as interchange control number, but populated only in specific cases
gsSegmentgsSegment No StringString 与功能组控制编号相同,但仅在特定情况下填充Same as functional group control number, but populated only in specific cases
respondingfunctionalGroupControlNumberrespondingfunctionalGroupControlNumber No StringString 原始功能组的控制编号Control number of the original functional group
respondingFunctionalGroupIdrespondingFunctionalGroupId No StringString 在确认功能组 ID 中映射到 AK101Maps to AK101 in the acknowledgment functional group ID
isMessageFailedisMessageFailed BooleanBoolean X12 消息是否失败Whether the X12 message failed
statusCodestatusCode Yes 枚举Enum 确认状态代码,其允许值为:AcceptedRejectedAcceptedWithErrorsAcknowledgment status code with these permitted values: Accepted, Rejected, and AcceptedWithErrors
processingStatusprocessingStatus Yes 枚举Enum 确认的处理状态,其允许值为:ReceivedGeneratedSentProcessing status of the acknowledgment with these permitted values: Received, Generated, and Sent
ak903ak903 No StringString 收到的交易集的数量Number of transaction sets received
ak904ak904 No StringString 在标识的功能组中接受的交易集的数量Number of transaction sets accepted in the identified functional group
ak9Segmentak9Segment No StringString 是接受还是拒绝 AK1 段中标识的功能组,以及原因是什么Whether the functional group identified in the AK1 segment is accepted or rejected, and why

B2B 协议跟踪架构B2B protocol tracking schemas

有关 B2B 协议跟踪架构的信息,请参阅:For information about B2B protocol tracking schemas, see: