> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer-stage.shipbob.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer-stage.shipbob.dev/_mcp/server.

# Get Invoices

GET https://sandbox-api.shipbob.com/2026-01/invoices

Gets a paginated list of invoices, optionally filtered by invoice types and date range

Reference: https://developer-stage.shipbob.dev/api/billing/get-invoices

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: api-2026-01
  version: 1.0.0
paths:
  /2026-01/invoices:
    get:
      operationId: get-invoices
      summary: Get Invoices
      description: >-
        Gets a paginated list of invoices, optionally filtered by invoice types
        and date range
      tags:
        - subpackage_billing
      parameters:
        - name: Cursor
          in: query
          description: >
            [Optional] A pagination token used to jump to first, last, next or
            previous pages. When supplied, it overrides all other filter
            parameters.
          required: false
          schema:
            $ref: '#/components/schemas/Billing.Get.Api.V3.Invoices.Cursor.String'
        - name: FromDate
          in: query
          description: >
            [Optional] Start date for filtering invoices by invoice date.
            Default is current - 1 month date.
          required: false
          schema:
            $ref: '#/components/schemas/Billing.Get.Api.V3.Invoices.FromDate.String'
        - name: ToDate
          in: query
          description: >
            [Optional] End date for filtering invoices by invoice date. Default
            is current date.
          required: false
          schema:
            $ref: '#/components/schemas/Billing.Get.Api.V3.Invoices.ToDate.String'
        - name: InvoiceTypes
          in: query
          description: '[Optional] Filter invoices by invoice type.'
          required: false
          schema:
            $ref: >-
              #/components/schemas/Billing.Get.Api.V3.Invoices.InvoiceTypes.StringArray
        - name: PageSize
          in: query
          description: >
            Number of invoices to return per page (default: 100). Must be
            between 1 and 1000.
          required: false
          schema:
            $ref: '#/components/schemas/Billing.Get.Api.V3.Invoices.PageSize.Integer'
        - name: SortOrder
          in: query
          description: >
            Sort invoices by Invoice Date. Values - Ascending, Descending.
            Default: Descending.
          required: false
          schema:
            $ref: '#/components/schemas/Billing.SortOrder'
        - name: Authorization
          in: header
          description: Authentication using Personal Access Token (PAT) token
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Billing.InvoiceDtoCursorPagedResponseV3'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Billing.ProblemDetails'
        '401':
          description: Authorization missing or invalid
          content:
            application/json:
              schema:
                description: Any type
        '403':
          description: The provided credentials are not authorized to access this resource
          content:
            application/json:
              schema:
                description: Any type
        '422':
          description: Client Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Billing.ProblemDetails'
        '500':
          description: Server Error
          content:
            application/json:
              schema:
                description: Any type
servers:
  - url: https://sandbox-api.shipbob.com
    description: https://sandbox-api.shipbob.com
components:
  schemas:
    Billing.Get.Api.V3.Invoices.Cursor.String:
      type: string
      description: Cursor for pagination. Used to retrieve the next set of invoice results.
      title: Billing.Get.Api.V3.Invoices.Cursor.String
    Billing.Get.Api.V3.Invoices.FromDate.String:
      type: string
      format: date-time
      description: Start date for filtering invoices. Must be in ISO 8601 date-time format.
      title: Billing.Get.Api.V3.Invoices.FromDate.String
    Billing.Get.Api.V3.Invoices.ToDate.String:
      type: string
      format: date-time
      description: End date for filtering invoices. Must be in ISO 8601 date-time format.
      title: Billing.Get.Api.V3.Invoices.ToDate.String
    BillingGetApiV3InvoicesInvoiceTypesStringArrayItems:
      type: string
      enum:
        - Shipping
        - WarehouseStorage
        - Inbound Fee
        - Return
        - AdditionalFee
        - Credits
      title: BillingGetApiV3InvoicesInvoiceTypesStringArrayItems
    Billing.Get.Api.V3.Invoices.InvoiceTypes.StringArray:
      type: array
      items:
        $ref: >-
          #/components/schemas/BillingGetApiV3InvoicesInvoiceTypesStringArrayItems
      description: Array of invoice types for filtering.
      title: Billing.Get.Api.V3.Invoices.InvoiceTypes.StringArray
    Billing.Get.Api.V3.Invoices.PageSize.Integer:
      type: integer
      default: 100
      description: >-
        Number of invoices to return per page. Default is 100. Must be between 1
        and 1000.
      title: Billing.Get.Api.V3.Invoices.PageSize.Integer
    Billing.SortOrder:
      type: string
      enum:
        - Ascending
        - Descending
      default: Descending
      description: >-
        Sort order for results. Ascending sorts from lowest to highest,
        Descending sorts from highest to lowest.
      title: Billing.SortOrder
    BillingInvoiceDtoV3InvoiceType:
      type: string
      enum:
        - Shipping
        - Inbound Fee
        - WarehouseStorage
        - AdditionalFee
        - Return
        - Credits
        - BalanceAdjustment
        - Payment
      description: The type or category of the invoice.
      title: BillingInvoiceDtoV3InvoiceType
    Billing.InvoiceDtoV3:
      type: object
      properties:
        amount:
          type: number
          format: double
          description: The total invoice amount.
        currency_code:
          type: string
          description: The ISO currency code used in the invoice (e.g., USD, EUR).
        invoice_date:
          type: string
          description: The invoice date in yyyy-mm-dd format.
        invoice_id:
          type: integer
          description: Unique identifier for the invoice.
        invoice_type:
          $ref: '#/components/schemas/BillingInvoiceDtoV3InvoiceType'
          description: The type or category of the invoice.
        running_balance:
          type: number
          format: double
          description: The running balance of the account after this invoice is applied.
      description: Data transfer object representing an invoice.
      title: Billing.InvoiceDtoV3
    Billing.InvoiceDtoCursorPagedResponseV3:
      type: object
      properties:
        first:
          type: string
          description: Go to the first page
        items:
          type: array
          items:
            $ref: '#/components/schemas/Billing.InvoiceDtoV3'
          description: List of invoices in the current page.
        last:
          type: string
          description: Go to the Last page
        next:
          type: string
          description: Go to the Next page
        prev:
          type: string
          description: Go to the Previous page
      description: >-
        Paginated response containing a list of invoices with navigation links
        for cursor-based pagination.
      title: Billing.InvoiceDtoCursorPagedResponseV3
    Billing.ProblemDetails:
      type: object
      properties:
        detail:
          type: string
        instance:
          type: string
        status:
          type: integer
        title:
          type: string
        type:
          type: string
      title: Billing.ProblemDetails
  securitySchemes:
    PAT:
      type: http
      scheme: bearer
      description: Authentication using Personal Access Token (PAT) token
    OAuth2:
      type: http
      scheme: bearer
      description: OAuth2 authentication using JWT tokens

```

## Examples



**Response**

```json
{
  "first": "m8cUk/xJkbeYp2JJvL8oHqxL2hFuGz3qjqtkQ",
  "items": [
    {
      "amount": 0.01,
      "currency_code": "USD",
      "invoice_date": "2019-08-24",
      "invoice_id": 12345,
      "invoice_type": "Shipping",
      "running_balance": 123.01
    }
  ],
  "last": "n8cUk/xJkbeYp2JJvL8oHqxL2hFiGz3qjqtkQ",
  "next": "m8cUk/xJkbeYp2JhvL8oHqxL3hFiGz3qjqtkQ",
  "prev": "m8cUk/xJkbeYp2JJvL8oHqxL2hFvGz3qjqtkQ"
}
```

**SDK Code**

```python default
import requests

url = "https://sandbox-api.shipbob.com/2026-01/invoices"

querystring = {"Cursor":"f8cUk/xJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0+BVMffFoIfoqzOkEsAw","FromDate":"2019-08-24","ToDate":"2019-08-24","InvoiceTypes":"[\"Shipping\",\"WarehouseStorage\"]","PageSize":"100","SortOrder":"Descending"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript default
const url = 'https://sandbox-api.shipbob.com/2026-01/invoices?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&FromDate=2019-08-24&ToDate=2019-08-24&InvoiceTypes=%5B%22Shipping%22%2C%22WarehouseStorage%22%5D&PageSize=100&SortOrder=Descending';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go default
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://sandbox-api.shipbob.com/2026-01/invoices?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&FromDate=2019-08-24&ToDate=2019-08-24&InvoiceTypes=%5B%22Shipping%22%2C%22WarehouseStorage%22%5D&PageSize=100&SortOrder=Descending"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby default
require 'uri'
require 'net/http'

url = URI("https://sandbox-api.shipbob.com/2026-01/invoices?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&FromDate=2019-08-24&ToDate=2019-08-24&InvoiceTypes=%5B%22Shipping%22%2C%22WarehouseStorage%22%5D&PageSize=100&SortOrder=Descending")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java default
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://sandbox-api.shipbob.com/2026-01/invoices?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&FromDate=2019-08-24&ToDate=2019-08-24&InvoiceTypes=%5B%22Shipping%22%2C%22WarehouseStorage%22%5D&PageSize=100&SortOrder=Descending")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php default
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://sandbox-api.shipbob.com/2026-01/invoices?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&FromDate=2019-08-24&ToDate=2019-08-24&InvoiceTypes=%5B%22Shipping%22%2C%22WarehouseStorage%22%5D&PageSize=100&SortOrder=Descending', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp default
using RestSharp;

var client = new RestClient("https://sandbox-api.shipbob.com/2026-01/invoices?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&FromDate=2019-08-24&ToDate=2019-08-24&InvoiceTypes=%5B%22Shipping%22%2C%22WarehouseStorage%22%5D&PageSize=100&SortOrder=Descending");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift default
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://sandbox-api.shipbob.com/2026-01/invoices?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&FromDate=2019-08-24&ToDate=2019-08-24&InvoiceTypes=%5B%22Shipping%22%2C%22WarehouseStorage%22%5D&PageSize=100&SortOrder=Descending")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```