# Retrieve Incoming Peppol Document Based on ID

Retrieve Incoming Peppol Document based on ID

Endpoint: GET /peppol-incoming-documents/sender/{senderId}/document/{id}
Version: 1.0.0
Security: api_key

## Security:

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

## Path parameters:

  - `senderId` (string, required)
    Peppol sender participant identifier

  - `id` (string, required)
    Unique identifier of the Peppol Document 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 fields (application/json):

  - `id` (string, required)
    Unique identifier of the Peppol Document

  - `companyId` (string, required)
    Company identifier

  - `issueDate` (string, required)
    Issue Date of the Peppol Document

  - `senderParticipantId` (string, required)
    Sender Participant identification

  - `receiverParticipantId` (string, required)
    Receiver Participant identification

  - `createdAt` (string, required)
    Datetime of the Peppol Document creation

  - `lastModifiedAt` (string, required)
    Datetime of the last modification

  - `lastModifiedBy` (string, required)
    User who last modified the document

  - `direction` (string, required)
    Direction of the Peppol Document
    Enum: "INCOMING"

  - `senderLegalPartyRegistrationName` (string)
    Sender name

  - `status` (string, required)
    Processing status set in the portal or through the Public API. NOT_STARTED until it is first changed
    Enum: "NOT_STARTED", "IN_PROGRESS", "ON_HOLD", "DONE"

  - `lastStatusChange` (object)
    Most recent status change. Absent when the status was never changed

  - `lastStatusChange.from` (string, required)
    Enum: "NOT_STARTED", "IN_PROGRESS", "ON_HOLD", "DONE"

  - `lastStatusChange.to` (string, required)
    Enum: "NOT_STARTED", "IN_PROGRESS", "ON_HOLD", "DONE"

  - `lastStatusChange.changedAt` (string, required)

  - `lastStatusChange.changedBy` (object, required)

  - `lastStatusChange.changedBy.type` (string, required)
    Who changed the status: a portal user, EasyPost support or an integration through the Public API
    Enum: "USER", "EASYPOST_SUPPORT", "PUBLIC_API"

  - `lastStatusChange.changedBy.name` (string)
    Name of the portal user. Only present when type is USER

  - `documentType` (string, required)
    Enum: "INVOICE_RESPONSE_3_0", "BIS_BILLING_CREDIT_NOTE_V3", "BIS_BILLING_INVOICE_V3", "BIS_SELF_BILLING_INVOICE_V3", "BIS_SELF_BILLING_CREDIT_NOTE_V3", "ORDER_3_0", "ORDER_AGREEMENT_3_0", "ORDER_RESPONSE_3_0", "CATALOGUE_3_0", "CATALOGUE_RESPONSE_3_0", "PUNCH_OUT_3_0", "DESPATCH_ADVICE_3_0", "MESSAGE_LEVEL_RESPONSE_3_0", "ORDER_CHANGE", "ORDER_CANCELLATION", "ORDER_RESPONSE_ADVANCED", "UNKNOWN"

  - `documentReference` (string, required)

  - `responseStatus` (string, required)
    Enum: "SENT", "NOT_SENT", "ACKNOWLEDGED", "IN_PROCESS", "UNDER_QUERY", "COND_ACCEPTED", "REJECTED", "ACCEPTED", "PAID"

  - `ttl` (number, required)

  - `currency` (string, required)
    ISO 4217 currency code, as sent in the UBL
    Example: EUR

  - `dueDate` (string)

  - `totalAmount` (number, required)

  - `supplierParty` (object, required)

  - `supplierParty.endpointId` (string, required)

  - `supplierParty.legalRegistrationName` (string, required)

  - `supplierParty.postalAddress` (object, required)

  - `supplierParty.postalAddress.country` (string, required)
    Country code from the UBL (Peppol code list: ISO 3166-1 alpha-2, plus 1A for Kosovo and XI for Northern Ireland)
    Enum: "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", "1A", "XI"

  - `supplierParty.postalAddress.streetName` (string, required)

  - `supplierParty.postalAddress.additionalStreetName` (string, required)

  - `supplierParty.postalAddress.cityName` (string, required)

  - `supplierParty.postalAddress.postalZone` (string, required)

## Response 404:

  - `404` (unknown)
    Incoming Peppol document with the specified ID not found

