# Retrieve SendingEvent Based on ID

Retrieve SendingEvent based on ID

Endpoint: GET /sending-events/{id}
Version: 1.0.0
Security: api_key

## Security:

  - `api_key` (unknown)
    apiKey in header x-api-key

## Path parameters:

  - `id` (string, required)
    Unique identifier of the SendingEvent to be retrieved

## Header parameters:

  - `x-managed-company-id` (string)
    Optional: the ID of the managed company on behalf of which the request is made

## Response 200:

  - `200` (unknown)
    Successful response with the SendingEvent

## Response 200 fields (application/json):

  - `id` (string, required)
    SendingEvent's identifier

  - `jobId` (string, required)
    Identifier of the SendingEvent's Job

  - `jobName` (string, required)
    Name of the SendingEvent's Job

  - `sendingSourceFileReference` (string)
    Identifies the source file that produced this sending: its path within the uploaded ZIP, or its original submitted filename for a direct upload.
    Example: documents/document.pdf

  - `jobAuthor` (string)
    Username of the author of the SendingEvent's Job

  - `startDate` (string, required)
    The Datetime denoting the moment of Job creation

  - `endDate` (string)
    The Datetime denoting the moment the sending event reached a final status

  - `executionDateUtc` (string)
    Datetime of the scheduled SendingEvent execution in UTC

  - `properties` (array, required)
    SendingEvent's properties

  - `properties.kind` (string, required)
    Type of property (channel)
    Enum: "ADDRESS", "ADDRESS_FIRST_NAME", "ADDRESS_LAST_NAME", "ADDRESS_COMPANY_NAME", "ADDRESS_STREET", "ADDRESS_STREET_NUMBER", "ADDRESS_BOX", "ADDRESS_PO_BOX", "ADDRESS_POSTAL_CODE", "ADDRESS_CITY", "ADDRESS_COUNTRY_CODE", "EMAIL_ADDRESS", "PHONE_NUMBER", "LAST_NAME", "FIRST_NAME", "BIRTH_DATE", "INVOICE_AMOUNT", "INVOICE_DESCRIPTION", "INVOICE_DUE_DATE", "INVOICE_PAY_LINK", "INVOICE_PAY_LINK_SHORT", "INVOICE_COMMUNICATION", "INVOICE_PAYMENT_DATE", "POM_OPT_IN_EMAIL", "COMPANY_IDENTIFICATION_NUMBER", "NATIONAL_REGISTER_NUMBER", "EBOX_RECIPIENT_PARTITION", "INVOICE_REFERENCE", "DOCCLE_TOKEN_SET_VALUE1", "DOCCLE_TOKEN_SET_VALUE2", "DOCCLE_RECEIVER_ID", "DOCCLE_TOKEN_SET_START_DATE", "DOCCLE_TOKEN_SET_END_DATE", "PEPPOL_SENDER_PARTICIPANT_ID", "PEPPOL_RECEIVER_PARTICIPANT_ID", "PEPPOL_DOCUMENT_ID", "PEPPOL_ISSUE_DATE", "PEPPOL_DOCUMENT_TYPE"

  - `properties.value` (string, required)
    Value of the property

  - `properties.isEncrypted` (boolean)
    Whether the property is encrypted

  - `extraInfo` (array, required)
    SendingEvent's extra information

  - `extraInfo.name` (string, required)
    Name of the extra info

  - `extraInfo.value` (string, required)
    Value of the extra info

  - `extraInfo.isEncrypted` (boolean)
    Whether the extra info is encrypted

  - `workflowName` (string, required)
    Name of the Workflow used to create the SendingEvent's Job

  - `status` (string, required)
    TechnicalStatus of the SendingEvent
    Enum: "IN_PROGRESS", "SUCCESS", "WARNING", "FAILURE"

  - `businessStatus` (string, required)
    BusinessStatus of the SendingEvent
    Enum: "NOT_STARTED", "SCHEDULED_FOR_EXECUTION", "IN_PROGRESS", "SUCCESS", "FAILURE", "REJECTED"

  - `approval` (object)
    Approval information for the SendingEvent

  - `approval.userId` (string, required)
    Identifier of the approver

  - `approval.username` (string, required)
    Username of the approver

  - `approval.timestamp` (string, required)
    Datetime when the Job receives approval

  - `errorList` (array, required)
    SendingEvent's error list

  - `errorList.code` (string, required)
    Error code representing the type of error

  - `errorList.message` (string, required)
    Error message providing more details about the error

  - `errorList.timestamp` (string, required)
    Timestamp when the error occurred

  - `warningList` (array, required)
    SendingEvent's warning list

  - `invoiceId` (string)
    Identifier of the invoice if the SendingEvent has been built using a Workflow Collection

  - `dataRetention` (object, required)
    Data retention policy for the SendingEvent

  - `dataRetention.periodInSeconds` (number, required)
    Retention period in seconds

  - `workflowId` (string, required)
    Identifier of the Workflow used to create the SendingEvent's Job

  - `documents` (array, required)
    SendingEvent's documents

  - `documents.fileReference` (string, required)
    Reference of the file. Use it with GET /sending-events/{id}/files/{fileReference}/download-url to download the document

  - `documents.documentType` (string, required)
    Type of the document
    Enum: "pdf", "json", "xml", "other"

  - `documents.channels` (array, required)
    Channels the document is sent through

  - `taskDetails` (array, required)
    Details of tasks associated with the SendingEvent

  - `taskDetails.id` (string, required)
    Task identifier in the Workflow used to process the SendingEvent

  - `taskDetails.externalId` (string)
    Identifier of the SendingEvent as known in external supplier API

  - `taskDetails.name` (string, required)
    Name of the Task in the Workflow used to process the SendingEvent

  - `taskDetails.maxDurationInSeconds` (number, required)
    Maximum amount of seconds a Task can be in status IN_PROGRESS without reaching a terminal status. After that period it gets the status TIMEOUT

  - `taskDetails.startDate` (string)
    The Datetime denoting the moment when the Sending is started using the channel configured in the Task

  - `taskDetails.endDate` (string)
    The Datetime denoting the moment when the Sending via the Task is in final state

  - `taskDetails.warningList` (array, required)
    List of warnings

  - `taskDetails.errorList` (array, required)
    List of errors

  - `taskDetails.statusHistory` (array, required)
    Status history

  - `taskDetails.statusHistory.value` (string, required)
    Status

  - `taskDetails.statusHistory.date` (string, required)
    Date the task went into this status

  - `taskDetails.documentHash` (string)
    Base64 encoded SHA256 checksum of the SendingEvent file

  - `taskDetails.documentSizeInBytes` (number)
    Size of the document file in bytes

  - `taskDetails.documentPageCount` (number)
    Number of pages in the document file

  - `taskDetails.order` (number, required)
    Order of the Task in the Workflow

  - `taskDetails.submitAttempts` (number, required)
    Number of submission attempts

  - `taskDetails.status` (string, required)
    Technical status of the Task
    Enum: "NOT_STARTED", "IN_PROGRESS", "SUCCESS", "FAILURE", "ERROR", "TIMEOUT", "MAX_ATTEMPTS_EXCEEDED"

  - `taskDetails.businessStatus` (string, required)
    Business status of the Task
    Enum: "NOT_STARTED", "IN_PROGRESS", "SUCCESS", "FAILURE"

  - `taskDetails.recipient` (string, required)
    Address used in the context of the Task to reach the recipient

  - `taskDetails.isRecipientEncrypted` (boolean)
    Whether the recipient is encrypted

  - `taskDetails.expirationTimeUtc` (string)
    Absolute Datetime (UTC) at which the Task expires

  - `taskDetails.taskType` (string, required)
    Type of an EASY_PRINT Task
    Enum: "EASY_PRINT", "EASY_PRINT_FR"

  - `taskDetails.departmentAddress` (object, required)
    Department postal address

  - `taskDetails.departmentAddress.street` (string, required)

  - `taskDetails.departmentAddress.streetNr` (string, required)

  - `taskDetails.departmentAddress.postalCode` (string, required)

  - `taskDetails.departmentAddress.box` (string)

  - `taskDetails.departmentAddress.city` (string, required)

  - `taskDetails.departmentAddress.countryCode` (string, required)

  - `taskDetails.departmentAddress.addressAdditionalLine` (string)

  - `taskDetails.addressRawData` (string)
    Address of the recipient used with the Mailing Distribution third-party (BPost in Belgium)

  - `taskDetails.structuredAddress` (object)
    Structured address used for Easyprint when provided as payload channel identifiers

  - `taskDetails.structuredAddress.firstName` (string)
    Recipient first name

  - `taskDetails.structuredAddress.lastName` (string)
    Recipient last name

  - `taskDetails.structuredAddress.companyName` (string)
    Recipient company name

  - `taskDetails.structuredAddress.street` (string)
    Street name

  - `taskDetails.structuredAddress.streetNumber` (string)
    Street number

  - `taskDetails.structuredAddress.box` (string)
    Address box/unit

  - `taskDetails.structuredAddress.poBox` (string)
    PO Box

  - `taskDetails.structuredAddress.postalCode` (string, required)
    Postal code

  - `taskDetails.structuredAddress.city` (string, required)
    City

  - `taskDetails.structuredAddress.countryCode` (string, required)
    ISO country code

  - `taskDetails.format` (string)
    Describe the format of the envelope
    Enum: "SMALL", "LARGE"

  - `taskDetails.deliveryType` (string)
    Delivery type
    Enum: "PRIOR", "NON_PRIOR", "REGISTERED"

  - `taskDetails.mailID` (string)
    Id from the Mailing Distribution third-party (BPost in Belgium)

  - `taskDetails.barcode` (string)
    Barcode from the Mailing Distribution third-party (BPost in Belgium)

  - `taskDetails.hasRegisteredMailRPFlag` (boolean)
    Registered mail RP flag

  - `taskDetails.connectReference` (string)
    Connect reference

  - `taskDetails.epodLocation` (string)
    EPOD location

  - `taskDetails.trackAndTraceUrl` (string)
    Url from third-party to track the sending when it is of type registered mail

  - `taskDetails.location` (string, required)

  - `taskDetails.taskType` (string, required)
    Type of an EMAIL Task
    Enum: "EMAIL"

  - `taskDetails.taskType` (string, required)
    Type of a ERDS Task
    Enum: "ERDS"

  - `taskDetails.submissionReportLocation` (string)
    Submission report location

  - `taskDetails.deliveryReportLocation` (string)
    Delivery report location

  - `taskDetails.taskType` (string, required)
    Type of a QERDS Task
    Enum: "QERDS"

  - `taskDetails.evidenceReportLocation` (string)
    Evidence report location

  - `taskDetails.notificationReportLocation` (string)
    Notification report location

  - `taskDetails.retraction` (object)
    Retraction details

  - `taskDetails.retraction.userId` (string, required)
    Identifier of the user who performed the retraction

  - `taskDetails.retraction.username` (string, required)
    Username of the user performed the retraction

  - `taskDetails.retraction.timestamp` (string, required)
    Datetime of the moment the retraction was performed

  - `taskDetails.recipientDetails` (object, required)
    Recipient details

  - `taskDetails.recipientDetails.recipientType` (string)
    The type of recipient the SendingEvent is intended for

  - `taskDetails.recipientDetails.companyIdentificationNumber` (object)
    Company Identifier Number

  - `taskDetails.recipientDetails.companyIdentificationNumber.value` (string)
    String value

  - `taskDetails.recipientDetails.companyIdentificationNumber.isEncrypted` (boolean)
    Whether the value is encrypted

  - `taskDetails.recipientDetails.emailAddress` (object, required)
    Email address of the recipient

  - `taskDetails.recipientDetails.firstName` (object)
    Firstname of the recipient

  - `taskDetails.recipientDetails.lastName` (object)
    Lastname of the recipient

  - `taskDetails.recipientDetails.birthDate` (object)
    Birth date of the recipient

  - `taskDetails.recipientDetails.postalCode` (object)
    Postal code of the recipient

  - `taskDetails.recipientDetails.houseNumber` (object)
    House number of the recipient

  - `taskDetails.modelVersion` (string, required)
    Model version
    Enum: "v2"

  - `taskDetails.taskType` (string, required)
    Type of a EBOX Task
    Enum: "EBOX"

  - `taskDetails.recipientInfo` (object, required)
    Recipient info

  - `taskDetails.recipientInfo.eboxIdValue` (string, required)
    The CBE number in 10 digits if the eboxType is enterprise or the NRN if the eboxType is citizen

  - `taskDetails.isRegisteredMail` (boolean, required)
    Is registered mail

  - `taskDetails.taskType` (string, required)
    Type of a EBOX_ENTERPRISE Task
    Enum: "EBOX_ENTERPRISE"

  - `taskDetails.subject` (string, required)
    Subject of the eBox Enterprise message

  - `taskDetails.language` (string, required)
    Language of the eBox Enterprise message
    Enum: "nl", "fr", "de"

  - `taskDetails.messageId` (string)
    Identifier of the message in the eBox Enterprise platform

  - `taskDetails.messageExpirationTime` (string)
    Datetime at which the eBox Enterprise message expires

  - `taskDetails.taskType` (string, required)
    Type of a DOCCLE Task
    Enum: "DOCCLE"

  - `taskDetails.tokenSet` (object, required)
    Token set

  - `taskDetails.tokenSet.token1` (object, required)
    Token 1

  - `taskDetails.tokenSet.token2` (object, required)
    Token 2

  - `taskDetails.tokenSet.startDate` (string, required)
    Start date

  - `taskDetails.tokenSet.endDate` (string)
    End date

  - `taskDetails.receiverId` (object, required)
    Receiver ID

  - `taskDetails.taskType` (string, required)
    Type of a PEPPOL Task
    Enum: "PEPPOL"

  - `taskDetails.documentId` (string, required)
    Document identifier in the Peppol network

  - `taskDetails.issueDate` (string)
    Issue date of the document

  - `taskDetails.senderParticipantId` (string, required)
    Participant identifier of the sender

  - `taskDetails.receiverParticipantId` (string, required)
    Participant identifier of the receiver

## Response 400:

  - `400` (unknown)
    Invalid sending event public ID format

## Response 403:

  - `403` (unknown)
    Sending event cannot be accessed with the current API client permissions

## Response 404:

  - `404` (unknown)
    Sending event with the specified ID not found

