Skip to content

Retrieve Invoice

GET/api/v1/invoices/{invoice_id}

The invoice model contains the basic properties of a PEPPOL invoice object alongside some additional properties that are initialized by Greek sellers. Below is a list of all the properties that are included in the invoice object.

This endpoint allows you to retrieve am invoice by providing the invoice unique id. Below is an example request and response. Please ensure to replace {token} with your actual authentication token and {id} with the invoice unique identifier.

bash
curl https://sandbox-api.peppol.gr/api/v1/invoices/{id} \
  -H "Authorization: Bearer {token}"
jsonc
{
  "id": "01kev9gvvrwggfmbjb3zg4qvb3",
  "is_locked": true,
  "response_code": null,
  "invoice_number": "8853787386|13/01/2026|0|1.1|A|3553",
  "issue_date": "2025-12-31",
  "invoice_type": 380,
  "currency": "EUR",
  "buyer_reference": "ipsum",
  "project_reference": "asperiores",
  "contract_reference": "maiores",
  "billing_reference": null,
  "seller_tin": "999999999",
  "seller_name": "Roxanne Hyatt",
  "seller_country": "GR",
  "buyer_id": "1007.80239251.0064",
  "buyer_tin": "888888888",
  "buyer_name": "Liza Schuster",
  "buyer_country": "PL",
  "mark": 90000000268807235,
  "auth_code": "5B0632AE9150D608738702E0728E6326222A6AEE",
  "total_net_amount": 3161.23,
  "total_allowance_amount": 0,
  "total_charges_amount": 0,
  "total_tax_exclusive_amount": 3161.23,
  "total_tax_inclusive_amount": 3919.93,
  "total_prepaid_amount": 0,
  "total_rounding_amount": 0.07,
  "total_payable_amount": 3920,
  "created_at": "2026-01-13T09:03:21.000000Z",
  "updated_at": "2026-01-13T09:03:21.000000Z",
  "url": "https://sandbox-api.peppol.gr/api/v1/invoices/01kev9gvvrwggfmbjb3zg4qvb3/preview",
  "transmissions": [
    {
      "id": "01jzff43aa5hg4r1y8gd530eh",
      "response_code": "IP",
      "status_code": 200,
      "error_message": null,
      "created_at": "2026-01-13T09:03:21.000000Z",
      "responses": [
        {
          "response_code": "IP",
          "reason_code": "NON",
          "reason": "No issue",
          "created_at": "2026-01-13T012:11:05.000000Z"
        },
        {
          "response_code": "AB",
          "reason_code": "OTH",
          "reason": "OK",
          "created_at": "2026-01-13T011:43:25.000000Z"
        }
      ]
    }
  ]
}

Invoice properties

FieldBTTypeDescription
idstringUnique identifier for the invoice.
is_lockedbooleanWhether or not the invoice is in a state that can be modified.
response_codestringThe last PEPPOL response code (state) associated with the invoice. See all the response codes
invoice_numberBT-1stringThe unique identification of the Invoice
issue_dateBT-2stringThe date the invoice was issued.
invoice_typeBT-3intA code specifying the functional type of the Invoice. Use 380 for Debit Invoices and 381 for Credit Invoices.
currencyBT-5stringInvoice currency code
buyer_referenceBT-10stringAn identifier assigned by the Buyer used for internal routing purposes.
project_referenceBT-11stringThe identification of the project the invoice refers to.
contract_referenceBT-12stringThe identification of a contract.
billing_referenceBT-25stringInformation of the preceding Invoice.
seller_tinBT-31stringThe Seller's VAT identifier.
seller_nameBT-27stringThe Seller's registration name.
seller_countryBT-40stringThe Seller's country code (ISO 3166-1:Alpha2).
buyer_idBT-46stringAn identifier of the Buyer.
buyer_tinBT-48stringThe Buyers's VAT identifier.
buyer_nameBT-44stringThe Buyers's registration name.
buyer_countryBT-55stringThe Buyers's country code (ISO 3166-1:Alpha2).
markstringThe ΜARK identifier that was assigned by myDATA (for Greek sellers).
auth_codestringThe Authentication Code that was assigned by myDATA (for Greek sellers).
total_net_amountBT-106floatThe total net amount of the Invoice.
total_allowance_amountBT-107floatThe total allowance net amount of the Invoice.
total_charges_amountBT-108floatThe total charges amount of the Invoice.
total_tax_exclusive_amountBT-109floatThe total tax exclusive amount of the Invoice.
total_tax_inclusive_amountBT-112floatThe total tax inclusive amount of the Invoice.
total_prepaid_amountBT-113floatThe total prepaid amount of the Invoice.
total_rounding_amountBT-114floatThe total rounding amount of the Invoice.
total_payable_amountBT-115floatThe total payable amount of the Invoice.
urlstringThe URL to preview the invoice PDF.
transmissionsarrayAn array of transmission objects associated with the invoice.
created_atstringThe timestamp when the invoice was created.
updated_atstringThe timestamp when the invoice was last updated.

Released under the MIT License.