> 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 Transactions by Invoice ID


GET https://sandbox-api.shipbob.com/2026-01/invoices/{invoiceId}/transactions

The unique identifier of the invoice whose transactions are to be retrieved

Reference: https://developer-stage.shipbob.dev/api/billing/get-transactions-by-invoice-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: api-2026-01
  version: 1.0.0
paths:
  /2026-01/invoices/{invoiceId}/transactions:
    get:
      operationId: get-transactions-by-invoice-id
      summary: |
        Get Transactions by Invoice ID
      description: >-
        The unique identifier of the invoice whose transactions are to be
        retrieved
      tags:
        - subpackage_billing
      parameters:
        - name: invoiceId
          in: path
          description: >
            The unique identifier of the invoice whose transactions are to be
            retrieved.
          required: true
          schema:
            $ref: >-
              #/components/schemas/Billing.Get.Api.V3.Invoices.InvoiceId.Transactions.InvoiceId.Integer
        - 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.InvoiceId.Transactions.Cursor.String
        - name: PageSize
          in: query
          description: >
            Number of transactions to return per page (default is 100, to be
            entered when API is called for first time). Must be between 1 and
            1000.
          required: false
          schema:
            $ref: >-
              #/components/schemas/Billing.Get.Api.V3.Invoices.InvoiceId.Transactions.PageSize.Integer
        - name: SortOrder
          in: query
          description: >
            Sort order of the results. Valid values: Ascending or 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.TransactionDtoCursorPagedResponseV3
        '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
        '404':
          description: Not Found
          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.InvoiceId.Transactions.InvoiceId.Integer:
      type: integer
      description: >-
        The unique identifier of the invoice whose transactions are to be
        retrieved.
      title: Billing.Get.Api.V3.Invoices.InvoiceId.Transactions.InvoiceId.Integer
    Billing.Get.Api.V3.Invoices.InvoiceId.Transactions.Cursor.String:
      type: string
      description: >-
        Cursor for pagination. Used to retrieve the next set of transaction
        results.
      title: Billing.Get.Api.V3.Invoices.InvoiceId.Transactions.Cursor.String
    Billing.Get.Api.V3.Invoices.InvoiceId.Transactions.PageSize.Integer:
      type: integer
      default: 100
      description: >-
        Number of transactions to return per page. Default is 100. Must be
        between 1 and 1000.
      title: Billing.Get.Api.V3.Invoices.InvoiceId.Transactions.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
    BillingTransactionDtoV3InvoiceType:
      type: string
      enum:
        - Shipping
        - Inbound Fee
        - WarehouseStorage
        - AdditionalFee
        - Return
        - Credits
        - BalanceAdjustment
        - Payment
      description: The type or category of the invoice.
      title: BillingTransactionDtoV3InvoiceType
    BillingTransactionDtoV3ReferenceType:
      type: string
      enum:
        - Shipment
        - Return
        - WRO
        - URO
        - Ticket Number
        - FC
        - LPN Reference
        - Transfer Plan
      description: The type of reference associated with the reference ID.
      title: BillingTransactionDtoV3ReferenceType
    Billing.InvoiceTaxDtoV3:
      type: object
      properties:
        tax_amount:
          type: number
          format: double
          description: Tax amount charged for this tax type.
        tax_rate:
          type: number
          format: double
          description: Tax rate applied as a percentage.
        tax_type:
          type: string
          description: Type of tax applied.
      description: Tax information associated with a transaction or invoice.
      title: Billing.InvoiceTaxDtoV3
    BillingTransactionDtoV3TransactionType:
      type: string
      enum:
        - Charge
        - Refund
        - Credit
        - Payment
        - BalanceAdjustment
      description: The classification or nature of the transaction.
      title: BillingTransactionDtoV3TransactionType
    Billing.TransactionDtoV3:
      type: object
      properties:
        additional_details:
          type: object
          additionalProperties:
            description: Any type
          description: >-
            Any additional details related to the transaction in a key-value
            pair format.
        amount:
          type: number
          format: double
          description: The charge amount for the transaction.
        charge_date:
          type: string
          description: The date when the transaction was charged.
        currency_code:
          type: string
          description: The ISO currency code (e.g., USD, EUR) for the transaction.
        fulfillment_center:
          type: string
          description: >-
            The name or code of the fulfillment center involved in the
            transaction.
        invoice_date:
          type: string
          description: The date the invoice was generated.
        invoice_id:
          type: integer
          description: >-
            The unique identifier of the invoice associated with this
            transaction.
        invoice_type:
          $ref: '#/components/schemas/BillingTransactionDtoV3InvoiceType'
          description: The type or category of the invoice.
        invoiced_status:
          type: boolean
          description: >-
            Indicates whether the transaction has been invoiced. True if billed,
            false if unbilled.
        reference_id:
          type: string
          description: A unique reference identifier associated with the transaction.
        reference_type:
          $ref: '#/components/schemas/BillingTransactionDtoV3ReferenceType'
          description: The type of reference associated with the reference ID.
        taxes:
          type: array
          items:
            $ref: '#/components/schemas/Billing.InvoiceTaxDtoV3'
          description: A list of tax details applied to the transaction, if any exist.
        transaction_fee:
          type: string
          description: >-
            The fee type associated with the transaction. To get all available
            transaction fees, use the '/transaction-fees' endpoint.
        transaction_id:
          type: string
          description: The unique identifier for the transaction.
        transaction_type:
          $ref: '#/components/schemas/BillingTransactionDtoV3TransactionType'
          description: The classification or nature of the transaction.
      description: Represents a transaction data object.
      title: Billing.TransactionDtoV3
    Billing.TransactionDtoCursorPagedResponseV3:
      type: object
      properties:
        first:
          type: string
          description: Go to the first page
        items:
          type: array
          items:
            $ref: '#/components/schemas/Billing.TransactionDtoV3'
        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
      title: Billing.TransactionDtoCursorPagedResponseV3
    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": "f8cUk/xJkbeYp2L8oHqxL2hFiGz3qjre",
  "items": [
    {
      "additional_details": {
        "comment": "TestInvoice"
      },
      "amount": 0.09,
      "charge_date": "2025-01-01",
      "currency_code": "USD",
      "fulfillment_center": "Altona VIC",
      "invoice_date": "2025-01-01",
      "invoice_id": 12345,
      "invoice_type": "Shipping",
      "invoiced_status": true,
      "reference_id": "12345",
      "reference_type": "Shipment",
      "taxes": [
        {
          "tax_amount": 0.01,
          "tax_rate": 10,
          "tax_type": "GST"
        }
      ],
      "transaction_fee": "Shipping",
      "transaction_id": "01AN4Z07BY79KA1307SR9X4MV3",
      "transaction_type": "Charge"
    }
  ],
  "last": "f8cUk/xJkbeYp2L8oHqxL2hFiGz3qjqt",
  "next": "f8cUk/xjhyEYp2L8oHqxL2hFiGz3qjqt",
  "prev": "f8cUk/xJkbeYp2L8oHqxL2hFiGz3qjcc"
}
```

**SDK Code**

```python default
import requests

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

querystring = {"Cursor":"f8cUk/xJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0+BVMffFoIfoqzOkEsAw","PageSize":"100","SortOrder":"Ascending"}

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/12345/transactions?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&PageSize=100&SortOrder=Ascending';
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/12345/transactions?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&PageSize=100&SortOrder=Ascending"

	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/12345/transactions?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&PageSize=100&SortOrder=Ascending")

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/12345/transactions?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&PageSize=100&SortOrder=Ascending")
  .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/12345/transactions?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&PageSize=100&SortOrder=Ascending', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp default
using RestSharp;

var client = new RestClient("https://sandbox-api.shipbob.com/2026-01/invoices/12345/transactions?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&PageSize=100&SortOrder=Ascending");
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/12345/transactions?Cursor=f8cUk%2FxJkbeYp2fCr3yJJvL8oHqxL2hFiGz3qjqtkQ5Q0%2BBVMffFoIfoqzOkEsAw&PageSize=100&SortOrder=Ascending")! 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()
```