Skip to main content
GET
/
cleemy-procurement
/
services
/
inbox
List Inbox Documents
curl --request GET \
  --url https://{host}/cleemy-procurement/services/inbox \
  --header 'Authorization: <authorization>'
import requests

url = "https://{host}/cleemy-procurement/services/inbox"

headers = {"Authorization": "<authorization>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<authorization>'}};

fetch('https://{host}/cleemy-procurement/services/inbox', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/cleemy-procurement/services/inbox",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://{host}/cleemy-procurement/services/inbox"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "<authorization>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://{host}/cleemy-procurement/services/inbox")
.header("Authorization", "<authorization>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://{host}/cleemy-procurement/services/inbox")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'

response = http.request(request)
puts response.read_body
{
  "items": [
    {
      "id": 123,
      "document": {
        "id": 123,
        "owner": {
          "id": 123,
          "href": "<string>",
          "name": "<string>",
          "firstName": "<string>",
          "lastName": "<string>",
          "pictureHref": "<string>"
        },
        "context": {
          "purchase": {
            "id": 123,
            "href": "<string>",
            "name": "<string>"
          }
        },
        "documentBreakdown": {
          "id": 2,
          "href": "<string>",
          "name": "<string>"
        },
        "documentDate": "2023-12-25",
        "documentNumber": "<string>",
        "amountIncludingTaxes": {
          "excludingTaxes": {
            "value": 123
          },
          "taxes": [
            {
              "rateTypeId": 123,
              "value": 123
            }
          ],
          "includingTaxes": {
            "value": 123
          }
        },
        "accountingLabel": "<string>",
        "comment": "<string>",
        "intraCommunityTaxes": true,
        "attachments": [
          {
            "id": 123,
            "file": {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "href": "<string>",
              "name": "<string>",
              "displayHref": "<string>"
            },
            "createdAt": "2023-11-07T05:31:56Z",
            "pages": {
              "displayHrefTemplate": "<string>",
              "count": 123
            }
          }
        ],
        "dueDate": "2023-12-25",
        "paymentDetails": {
          "bankAccount": {
            "iban": "<string>",
            "bic": "<string>"
          }
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "modifiedAt": "2023-11-07T05:31:56Z",
        "author": {
          "id": 123,
          "href": "<string>",
          "name": "<string>",
          "firstName": "<string>",
          "lastName": "<string>",
          "pictureHref": "<string>"
        },
        "modifier": {
          "id": 123,
          "href": "<string>",
          "name": "<string>",
          "firstName": "<string>",
          "lastName": "<string>",
          "pictureHref": "<string>"
        }
      },
      "source": {
        "type": "<string>"
      },
      "action": {},
      "createdAt": "2023-11-07T05:31:56Z",
      "modifiedAt": "2023-11-07T05:31:56Z",
      "author": {
        "id": 123,
        "href": "<string>",
        "name": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "pictureHref": "<string>"
      },
      "modifier": {
        "id": 123,
        "href": "<string>",
        "name": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "pictureHref": "<string>"
      }
    }
  ],
  "prev": "<string>",
  "next": "<string>",
  "count": 1
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Query Parameters

ocrStatus
enum<string>[]

Filter on OCR status.

Available options:
None,
Pending,
Completed,
Failed,
Applied
authorIds
integer<int32>[]

Filter on author user IDs.

purchaseIds
integer<int32>[]

Filter on purchase IDs.

disputeIds
integer<int32>[]

Filter on dispute IDs.

operations
enum<string>[]

Filter on user operations (roles).

Available options:
Buyer,
PurchasingManager,
Accountant,
Admin,
Payer,
PurchaseReader,
InvoicingManager
establishment.ids
integer<int32>[]

Filter on establishment IDs.

establishment.includeNull
boolean

Include documents with no establishment.

sort
null | string

Sort order. Prefix with - for descending. Comma-separated for multiple properties.

fields.root
enum<string>[]

Include root collection fields (paging).

Available options:
prev,
next,
count
page

Page selection. Page tokens can be retrieved by adding ?fields.root=next,prev on your GET collections requests.

limit
integer

Page size (max 100).

Required range: 0 <= x <= 100

Response

200 - application/json

OK

items
inbox-document · object[]
required
prev
next
count
integer<int32>
Required range: x >= 0