AS2 Incoming Messages

An AS2IncomingMessage is a single record created for each individual AS2 file transfer incoming from a Partner. It contains the message details and tracks the lifecycle status with milestones of the transfer.

Replaying a retained message creates a new incoming message. Its replayed_from_message_id identifies the incoming-message record that was replayed. The original AS2 message_id is preserved. The source record ID remains available after that record is removed by message retention.

Data Source Schema

Required

PropertyDescription
id
Int64
ID of this AS2 incoming message record.

Read Only

PropertyDescription
replayed_from_message_id
Int64
ID of the incoming message record this message was replayed from. Empty for messages received directly from a trading partner.
workspace_id
Int64
ID of the Workspace associated with this AS2 Incoming Message.
as2_partner_id
Int64
Id of the AS2 Partner associated with this message.
as2_station_id
Int64
Id of the AS2 Station associated with this message.
uuid
String
UUID assigned to this message.
content_type
String
Content Type header of the incoming message.
http_headers
Dynamic
HTTP Headers sent with this message.
processing_result
String
Result of processing.
Possible values: not_started, unable_to_find_station, unable_to_find_partner, unable_to_validate_signature, decrypt_fail, file_save_fail, success
processing_result_description
String
Result of processing description.
mic
String
AS2 Message Integrity Check
mic_algo
String
AS2 Message Integrity Check Algorithm Used
as2_to
String
AS2 TO header of message
as2_from
String
AS2 FROM header of message
message_id
String
AS2 Message Id
subject
String
AS2 Subject Header
date
String
Date Header
body_size
String
Encrypted Payload Body Size
attachment_filename
String
Filename of the file being received.
ip
String
IP Address of the Sender
created_at
String
Message creation date/time
http_response_code
String
HTTP Response Code sent for this message
http_response_headers
Dynamic
HTTP Headers sent for this message.
recipient_serial
String
Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
hex_recipient_serial
String
Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
recipient_issuer
String
Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
message_received
Bool
Message body received?
message_decrypted
Bool
Message decrypted successfully?
message_signature_verified
Bool
Message signature verified?
message_processing_success
Bool
Message processed successfully?
message_mdn_returned
Bool
MDN returned?
encrypted_uri
String
URL to download the encrypted signed smime that is to sent as AS2 body
smime_signed_uri
String
URL to download the file contents as smime with signature
smime_uri
String
URL to download the file contents encoded as smime
raw_uri
String
URL to download the original file contents
mdn_response_uri
String
URL to download the http response body

Example Data Source

data "files_as2_incoming_message" "example_as2_incoming_message" {
  id = 1
}