Skip to main content
Version: Next

Search by filter

Information

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

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

GET/v1/invoice/search

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

Status: 200 - application/json

Description: Invoices id list received from given criteria

Schema:

    Status: 401

    Description: Unauthorized - Authentication is required and has failed or has not yet been provided.

    Status: 403

    Description: Forbidden - The server understood the request, but it refuses to authorize it. Note: This endpoint requires an admin account.


    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:INBOUND

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

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