Skip to content

Get all invoice issue by the Merchant (owner of the account)

GET https://api.leapa.co/v2/invoices/email/{email}

This endpoint needs your API key

Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.

Request

curl -X GET "https://api.leapa.co/v2/invoices/email/jeanne@example.com?pageFilter=<pageFilter>" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "page": 0,
  "size": 0,
  "total_elements": 0,
  "total_pages": 0,
  "data": [
    {
      "id": "obj_5f21c8a40b",
      "object": "string",
      "customer": {
        "id": null,
        "object": null,
        "email": null,
        "address": null,
        "status": null,
        "first_name": null,
        "last_name": null,
        "birth_date": null,
        "phone_number": null,
        "merchant_name": null,
        "merchant_id": null,
        "sources": null,
        "destinations": null,
        "live": null,
        "reference_id": null
      },
      "currency": "BIF",
      "description": "Room 204, two nights",
      "sendForManualPayment": false,
      "automatic": false,
      "pdfLink": "string",
      "number": "string",
      "products": [],
      "sent_count": 1,
      "statement_descriptor": "string",
      "issue_date": 0,
      "due_date": 0,
      "amount": 45000,
      "amount_due": 45000,
      "discount_amount": 45000,
      "status": "draft",
      "charge": {
        "id": null,
        "object": null,
        "amount": null,
        "currency": null,
        "description": null,
        "status": null,
        "source": null,
        "affiliate": null,
        "amount_refunded": null,
        "available_date": null,
        "captured": null,
        "created_date": null,
        "disputed": null,
        "failure_code": null,
        "failure_message": null,
        "invoice_id": null,
        "live": null,
        "modified_date": null,
        "refunded": null,
        "customer_id": null,
        "processing_id": null,
        "quittance_number": null
      },
      "charges": [],
      "type": "bank",
      "url": "string",
      "pdf_url": "string",
      "source_id": "src_0e7b3c95af",
      "manual_payment": false,
      "merchant": {
        "id": null,
        "object": null,
        "url": null,
        "currency": null,
        "name": null,
        "legal_name": null,
        "tax_id": null,
        "phone_number": null,
        "email": null,
        "registration_id": null,
        "statement_descriptor": null,
        "description": null,
        "support_url": null,
        "time_zone": null,
        "type": null,
        "address": null,
        "balance_available": null,
        "balance_pending": null,
        "status": null
      },
      "live": false,
      "reference_id": "ref_9f2a17c4",
      "rate_id": "rat_20b6df3c9e",
      "total_amount_paid": 45000,
      "charge_ids": [],
      "quittance_number": "string"
    }
  ]
}

Path parameters

Values that go into the URL itself.

  • emailstringrequired
    Example:jeanne@example.com

Query parameters

Appended to the URL after a `?`.

  • pageFilterPageFilterrequired

Response

application/json
  • pageinteger<int32>

    Current page number.

  • sizeinteger<int32>

    Number of element in a page.

  • total_elementsinteger<int64>

    Total Elements.

  • total_pagesinteger<int64>

    The total Pages.

  • dataarray of InvoiceResponse

    List of invoices.

Status codes

  • 200OK
  • 400Bad request
  • 401Unauthorized
  • 402Payment required
  • 403Forbidden
  • 404Not found
  • 428Precondition required
  • 500Server error

Request

curl -X GET "https://api.leapa.co/v2/invoices/email/jeanne@example.com?pageFilter=<pageFilter>" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "page": 0,
  "size": 0,
  "total_elements": 0,
  "total_pages": 0,
  "data": [
    {
      "id": "obj_5f21c8a40b",
      "object": "string",
      "customer": {
        "id": null,
        "object": null,
        "email": null,
        "address": null,
        "status": null,
        "first_name": null,
        "last_name": null,
        "birth_date": null,
        "phone_number": null,
        "merchant_name": null,
        "merchant_id": null,
        "sources": null,
        "destinations": null,
        "live": null,
        "reference_id": null
      },
      "currency": "BIF",
      "description": "Room 204, two nights",
      "sendForManualPayment": false,
      "automatic": false,
      "pdfLink": "string",
      "number": "string",
      "products": [],
      "sent_count": 1,
      "statement_descriptor": "string",
      "issue_date": 0,
      "due_date": 0,
      "amount": 45000,
      "amount_due": 45000,
      "discount_amount": 45000,
      "status": "draft",
      "charge": {
        "id": null,
        "object": null,
        "amount": null,
        "currency": null,
        "description": null,
        "status": null,
        "source": null,
        "affiliate": null,
        "amount_refunded": null,
        "available_date": null,
        "captured": null,
        "created_date": null,
        "disputed": null,
        "failure_code": null,
        "failure_message": null,
        "invoice_id": null,
        "live": null,
        "modified_date": null,
        "refunded": null,
        "customer_id": null,
        "processing_id": null,
        "quittance_number": null
      },
      "charges": [],
      "type": "bank",
      "url": "string",
      "pdf_url": "string",
      "source_id": "src_0e7b3c95af",
      "manual_payment": false,
      "merchant": {
        "id": null,
        "object": null,
        "url": null,
        "currency": null,
        "name": null,
        "legal_name": null,
        "tax_id": null,
        "phone_number": null,
        "email": null,
        "registration_id": null,
        "statement_descriptor": null,
        "description": null,
        "support_url": null,
        "time_zone": null,
        "type": null,
        "address": null,
        "balance_available": null,
        "balance_pending": null,
        "status": null
      },
      "live": false,
      "reference_id": "ref_9f2a17c4",
      "rate_id": "rat_20b6df3c9e",
      "total_amount_paid": 45000,
      "charge_ids": [],
      "quittance_number": "string"
    }
  ]
}