All Invoices API

Retrieve a complete list of all invoices with detailed billing information

Billing

All Invoices API

Access complete invoice records with detailed billing information. View customer details, payment methods, amounts, and transaction dates.

Complete Records

All invoice data available.

Detailed Info

Customer and payment details.

Date Tracking

Payment and invoice dates.


Endpoint Overview

QUERY/graphql

Retrieve a list of all invoices with comprehensive billing details including customer information, amounts, and payment data.

Authentication:Bearer Token
Required scopes:admin

GraphQL Query

query allInvoices {
  allInvoices {
    id
    firstName
    lastName
    clientCompanyName
    address
    taxId
    email
    phoneNumber
    groupId
    amountForGroup
    multiLogin
    amountForMultiLogin
    totalAmount
    paymentMethod
    paymentDate
    invoiceDate
    updateDate
  }
}

HTTP Request:

curl -X POST https://api.orbnet.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
  -d '{
    "query": "query allInvoices { allInvoices { id firstName lastName email totalAmount paymentMethod paymentDate invoiceDate } }"
  }'

Response

200Invoices Retrieved Successfully
{
  "data": {
    "allInvoices": [
      {
        "id": "inv_12345",
        "firstName": "John",
        "lastName": "Doe",
        "clientCompanyName": "Acme Corp",
        "address": "123 Business St, New York, NY 10001",
        "taxId": "TAX123456",
        "email": "john.doe@example.com",
        "phoneNumber": "+1234567890",
        "groupId": "100",
        "amountForGroup": 29.99,
        "multiLogin": "3",
        "amountForMultiLogin": 5.99,
        "totalAmount": 35.98,
        "paymentMethod": "stripe",
        "paymentDate": "2024-01-15T10:30:00Z",
        "invoiceDate": "2024-01-15T10:30:00Z",
        "updateDate": "2024-01-15T10:30:00Z"
      }
    ]
  }
}
401Unauthorized
{
  "errors": [
    {
      "message": "Authentication required",
      "path": ["allInvoices"],
      "extensions": {
        "code": "UNAUTHORIZED"
      }
    }
  ],
  "data": null
}

Invoice Fields

Customer Info

Name, company, email, phone.

Billing Address

Full address and tax ID.

Amount Details

Group cost, multi-login, total.

Payment Info

Method and transaction dates.


Use Cases

Financial Reports

Generate revenue reports.

Customer History

View customer payment history.

Tax Records

Access data for tax filing.

Auditing

Perform financial audits.



Pagination Recommended

For large datasets, consider using pagination parameters to improve performance. Contact support for pagination options.

Need a Specific Invoice?

Use the Get Invoice by ID endpoint to fetch a single invoice record.

Get Invoice by ID