Skip to main content
Version: Next

Search by filter

Information

This API allow you to search for an invoice by powerful filter criteria.

Link to swagger
This endpoint is synchronous
The role user is needed in order to use this endpoint
Endpoints

GET/v1/invoice/search

Query parameters
qstring - RequiredRefer to page filter

expandstring (enum) - Optional

limitinteger - Optional - Default value : 50

Request

GET /v1/invoice/search


curl -X 'GET'
https://api.ppd.iopole.fr//v1/invoice/search?q=invoice.buyer.name%3A%2A'
-H 'accept: application/json'
-H 'Authorization: Bearer ${token}'

Response

200 OK

[
{
"streamId": "2154aa88-57d1-4314-8f1c-9ed78652ad38",
"documentId": "69a237c1-5920-4ae5-98a1-6d02cbec946a",
"invoiceId": "9ca2d4fa-0708-4cf5-85ca-cb2cf2eced52",
"date": "2024-07-30T14:46:11.566Z",
"originalFormat": "BASICWL",
"originalFlavor": "FacturX",
"way": "EMITTED"
}
]

Example

Common use case

Give me all invoice not yet delivered

invoiceState:DELIVERY_PENDING

Give me all invoices delivered between 2023-07-31 11:07:04 and 2024-08-01 01:07:04

invoice.deliveryState:DELIVERED AND (invoice.createdDate:>"2023-07-31 11:07:04" AND invoice.createdDate:<="2024-08-01 01:07:04")

Give me only received invoice

invoice.direction:INPUT

Give me buyer with corporate name that starts by ART or siret containing 123456789

invoice.buyer.name:ART* OR invoice.buyer.siret:*123456789*