GET
/
v1
/
c
/
invoice
curl --request GET \
  --url http://127.0.0.1:8080/v1/c/invoice \
  --header 'wb-key: <api-key>'
{
  "backward": "<string>",
  "current_page": 123,
  "first": "<string>",
  "forward": "<string>",
  "hits": [
    {
      "detailed_invoice_status": "pending_validation",
      "invoice": {
        "currency": "usd",
        "customer_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
        "date": "2023-11-07T05:31:56Z",
        "deposit_transaction_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
        "deposit_transaction_status": "not_processed",
        "due_date": "2023-11-07T05:31:56Z",
        "external_reference": "<string>",
        "id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
        "invoice_number": {
          "number": "<string>"
        },
        "status": "pending_validation",
        "total": "<string>"
      },
      "payment_execution_provider": "stripe",
      "payment_execution_status": "pending"
    }
  ],
  "last": "<string>",
  "total": 123,
  "total_pages": 123
}

Authorizations

wb-key
string
header
required

Query Parameters

customer
string

Unique identifier of an object. Consists of object class prefix and a UUID

Example:

"Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670"

date_before
string | null
date_after
string | null
limit
integer
Required range: x >= 0
offset
string | null
direction
enum<string>

Pagination direction:

  • Forward - from first entry to last
  • Backward - from last entry to first
Available options:
forward,
backward

Response

200 - application/json

List of invoices

A paginated result of the requested resource This is based on Keyset Pagination https://vladmihalcea.com/sql-seek-keyset-pagination/