Saaslogic
  1. Invoices
Saaslogic
  • Enum Reference
  • Authentication
  • Introduction
  • Authentication
    • saaslogic token
      • Get the saaslogic access token
    • login Url
      • Gives the login URL
    • logout Url
      • Gives the logout URL
  • Countries
    • Get list of countries
  • Plans
    • List all plans for a product
  • Subscriptions
    • Get Subscriptions
    • Create a product subscription
    • Retrieve a subscription
    • Create Customer and Subscription
    • Subscription with details permissions, menus and features
    • The Saaslogic URL for creating subscription
  • Usage Reporting
    • Report the resource usages in subscription for invoicing
    • Retrieves the resource usages of a subscription in the current billing cycle
  • Customers
    • addresses
      • Create an address
      • List all addresses
      • Update an address
      • Retrieve an address
      • Delete an address
    • contacts
      • Create a contact
      • List all contacts
      • Update a contact
      • Retrieve a contact
      • Delete a contact
    • Create a customer
    • List all customers
    • Update a customer
    • Retrieve a customer
    • Delete a customer
  • Vendors
    • vendor addresses
      • Create a vendor address.
      • List all vendor addresses.
      • Update a vendor address.
      • Retrieve a vendor address..
      • Delete a vendor address.
    • vendor contacts
      • Create a vendor contact.
      • List all vendor contacts.
      • Update a vendor contact.
      • Retrieve a vendor contact.
      • Delete a vendor contact.
    • vendor bills
      • Create a vendor bill
      • Cancel a vendor bill.
    • vendor bills payout
      • Update payment details to vendor bills.
    • Create a vendor
    • Update a vendor.
    • Activate a vendor.
    • Deactivate a vendor
  • Invoices
    • subscriptions
      • Get the invoices
      • Get the invoices by subscription
    • payments
      • Mark the invoice payment status
    • Approve the invoice
      PUT
    • Get Invoices
      POST
    • Get the invoice details .
      GET
    • Cancel the invoice
      PUT
    • Send invoice as pdf with payment link.
      POST
    • Create an on-demand invoice
      POST
  • States
    • Get list of states
  • Schemas
    • Invoice
      • InvoiceInfo
      • InvoiceDetail
      • InvoiceProduct
      • InvoiceLineItemDTO
      • InvoicePayment
      • InvoiceAttributeDTO
      • InvoiceRequestDTO
      • InvoiceRequestProduct
      • InvoiceRequestLineItem
      • InvoiceRequestLineItemTax
      • InvoiceRequestDiscount
      • InvoicePaginatedResponse
    • Vendor
      • Vendor
      • VendorContact
      • VendorAddress
      • VendorBill
    • Subscriptions
      • SubscritpionPaginatedResponse
      • Subscription
    • Pagination
      • PageRequest
      • SortCriteria
      • FilterCriteria
      • Pagination
      • InvoiceList
      • PageResponse
    • AccessTokenResponse
    • ProductAPIKey
    • Country
    • Customer
    • CustomerContact
    • CustomerAddress
    • PaymentInfo
    • CustomerWithSubscription
    • State
  1. Invoices

Get Invoices

POST
/invoices/fetch
Fetches a list of Invoices based on filters, pagination, and sorting options.
Used to retrieve invoice details matching specific criteria

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🔴500ErrorResponse
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-sandbox.saaslogic.io/v1/invoices/fetch' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pagination": {
        "page": 0,
        "size": 20
    },
    "filters": [
        {
            "propertyName": "customerId",
            "operation": "EQUALS",
            "value": "fe251e31-63b6-47bd-b327-e797714ceeb1"
        }
    ]
}'
Response Response Example
200 - Example 1
{
    "content": [
        {
            "invoiceId": "c8b8a6f2-9c4f-4a6a-8c41-3b6c9e52a8d1",
            "customerId": "e3f9c1d4-7a2e-4b9a-9f6b-6c8a1e2d4f90",
            "subscriptionId": "a7d6f3c9-1b42-4e8a-9d3f-5b6c8a7e2f41",
            "invoiceNumber": "INV032026/0000147",
            "invoiceDate": "2026-03-12T10:15:42",
            "ownerOrgName": "Astra Digital Solutions Pvt Ltd",
            "customerName": "Arjun Menon",
            "serviceAddress": {
                "addressName": "Head Office",
                "address": "Infopark Phase 2",
                "city": "Kochi",
                "zip": "682042",
                "countryCode": "IND",
                "stateCode": "KL"
            },
            "billingAddress": {},
            "billingFromDate": "2026-03-01T05:00:00",
            "billingToDate": "2027-03-01T18:30:00",
            "dueDate": "2026-03-20T05:00:00",
            "currencyIsoCode": "INR",
            "currencySymbol": "₹",
            "totalReceivedAmount": 0.0,
            "invoiceAmount": 2499.0,
            "totalDiscount": 0.0,
            "totalTaxAmount": 0.0,
            "grossAmount": 2499.0,
            "balanceAmount": 2499.0,
            "status": "Pending",
            "billingType": "Recurring"
        }
    ],
    "pageNumber": 0,
    "pageSize": 20,
    "totalElements": 1,
    "totalPages": 1,
    "first": true,
    "last": true,
    "numberOfElements": 1,
    "empty": false
}
Previous
Approve the invoice
Next
Get the invoice details .
Built with