Skip to main content
GET
/
v2
/
export-items
Get Export Items
curl --request GET \
  --url https://external.pleo.io/v2/export-items \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "_links": {
        "web": {
          "exportItem": "http://example.com"
        },
        "mobile": {
          "exportItem": "http://example.com"
        },
        "api": {
          "exportItem": "http://example.com"
        }
      },
      "accountingEntryId": "00000000-0000-0000-0000-000000000000",
      "accountingEntryLines": [
        {
          "accountingEntryLineId": "00000000-0000-0000-0000-000000000000",
          "lineAmount": {
            "inSupplierCurrency": {
              "currency": "UNDEFINED",
              "value": 123
            },
            "inWalletCurrency": {
              "currency": "UNDEFINED",
              "value": 123
            }
          },
          "netAmount": {
            "inSupplierCurrency": {
              "currency": "UNDEFINED",
              "value": 123
            },
            "inWalletCurrency": {
              "currency": "UNDEFINED",
              "value": 123
            }
          },
          "account": {
            "id": "00000000-0000-0000-0000-000000000000",
            "name": "Meals and Entertainment",
            "code": "<string>",
            "identifier": "<string>"
          },
          "tags": [
            {
              "code": "<string>",
              "groupCode": "<string>",
              "id": "00000000-0000-0000-0000-000000000000"
            }
          ],
          "tax": {
            "amount": {
              "inSupplierCurrency": {
                "currency": "UNDEFINED",
                "value": 123
              },
              "inWalletCurrency": {
                "currency": "UNDEFINED",
                "value": 123
              }
            },
            "id": "00000000-0000-0000-0000-000000000000",
            "rate": 0.2,
            "type": "inclusive",
            "code": "<string>"
          }
        }
      ],
      "additionalInformation": {
        "reconciliationId": "<string>",
        "attendees": [
          "<string>"
        ],
        "invoiceInformation": {
          "invoiceDate": "2023-11-07T05:31:56Z",
          "invoiceNumber": "<string>",
          "status": "pending_approval",
          "dueDate": "2023-11-07T05:31:56Z",
          "paymentDate": "2023-11-07T05:31:56Z",
          "supplierBankAccount": {
            "bankName": "<string>",
            "country": "DK",
            "accountNumber": "<string>",
            "bankCode": "<string>",
            "bic": "<string>",
            "iban": "<string>"
          }
        },
        "reconciledEntries": [
          "<string>"
        ]
      },
      "amount": {
        "inSupplierCurrency": {
          "currency": "UNDEFINED",
          "value": 123
        },
        "inWalletCurrency": {
          "currency": "UNDEFINED",
          "value": 123
        }
      },
      "companyId": "00000000-0000-0000-0000-000000000000",
      "date": "2023-11-07T05:31:56Z",
      "type": "card_purchase",
      "bookkeeping": {
        "method": "none"
      },
      "files": [
        {
          "size": 2084,
          "type": "application/pdf",
          "url": "https://file.url"
        }
      ],
      "note": "<string>",
      "supplier": {
        "account": "<string>",
        "categoryCode": "5999",
        "code": "<string>",
        "country": "DK",
        "name": "GOOGLE*ADS8693645259",
        "taxIdentifier": "<string>"
      },
      "team": {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "Marketing",
        "code": "<string>"
      },
      "teamCode": "<string>",
      "user": {
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "John Doe",
        "code": "<string>"
      },
      "vendor": {
        "defaultCurrency": "DKK",
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "name": "Pleo",
        "code": "<string>",
        "country": "DK",
        "externalId": "<string>",
        "registrationNumber": "<string>",
        "taxRegistrationNumber": "<string>"
      }
    }
  ],
  "pagination": {
    "currentRequestPagination": {
      "parameters": {},
      "after": "<string>",
      "before": "<string>",
      "limit": 123,
      "offset": 123,
      "sortingKeys": [
        "<string>"
      ],
      "sortingOrder": [
        "ASC"
      ]
    },
    "hasNextPage": true,
    "hasPreviousPage": true,
    "endCursor": "<string>",
    "startCursor": "<string>",
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

job_id
string<uuid>

The Export Job ID in which the accounting entries have been included for export.

before
string

Lower bound of the page of data to return (cannot be used together with [after] or [offset]).

after
string

Upper bound of the page of data to return (cannot be used together with [before] or [offset]).

offset
integer<int64>

Offset of the page of data to return (cannot be used together with [before] or [after]).

limit
integer<int32>

The maximum amount of items to return.

sorting_keys
string[]

The keys to sort the results by.

sorting_order
enum<string>[]

The order to sort the results by. Must be the same length as [sortingKeys]; one order per key.

Available options:
ASC,
ASC_NULLS_FIRST,
ASC_NULLS_LAST,
DESC,
DESC_NULLS_FIRST,
DESC_NULLS_LAST

Response

Export Items retrieved successfully.

data
object[]
required
pagination
object
required