# Search transactions POST https://api.shipbob.com/2025-07/transactions:query Content-Type: application/json Search transactions with filters (date, invoice, fee type, etc.) Reference: https://developer.shipbob.com/api/billing/search-transactions ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: api-2025-07 version: 1.0.0 paths: /2025-07/transactions:query: post: operationId: search-transactions summary: Search transactions description: Search transactions with filters (date, invoice, fee type, etc.) 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: type: string - 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 '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 '500': description: Server Error content: application/json: schema: description: Any type requestBody: description: >- Used to filter transactions based on search criteria. Required if cursor is not provided. Ignored when cursor is present (i.e., for paginated requests). content: application/json: schema: $ref: '#/components/schemas/Billing.TransactionRequestFilterV3' servers: - url: https://api.shipbob.com - url: https://sandbox-api.shipbob.com components: schemas: Billing.SortOrder: type: string enum: - Ascending - Descending title: Billing.SortOrder Billing.TransactionRequestFilterV3: type: object properties: from_date: type: - string - 'null' format: date-time description: >- Start date for filtering transactions by transaction charge date. Default is current – 7 days invoice_ids: type: - array - 'null' items: type: string description: List of invoice IDs to filter transactions invoiced_status: type: - boolean - 'null' description: "Filter Transactions by invoicing status:\r\n- True(Billed Transactions)\r\n- False(Unbilled Transactions)\r\n- null (Billed + Unbilled Transactions)" page_size: type: integer 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. reference_ids: type: - array - 'null' items: type: string description: >- List of reference IDs (like Shipment ID, WRO id) to filter transactions (can be numeric or string identifiers). reference_types: type: - array - 'null' items: type: string description: "The type of reference associated with the ReferenceId. Available options:\r\n- Shipment \r\n- Return \r\n- WRO \r\n- URO" sort_order: $ref: '#/components/schemas/Billing.SortOrder' to_date: type: - string - 'null' format: date-time description: >- End date for filtering transactions by transaction charge date. Default is current date. transaction_fees: type: - array - 'null' items: type: string description: >-
To get all the available transaction fees use this endpoint:- '/transaction-fees'
transaction_types: type: - array - 'null' items: type: string description: "The classification or nature of the transaction \r\nTransaction Types - Charge, Refund, Credit, Payment, BalanceAdjustment" title: Billing.TransactionRequestFilterV3 Billing.InvoiceTaxDtoV3: type: object properties: tax_amount: type: number format: double description: Tax amount charged for the tax type. tax_rate: type: number format: double description: Rate of Tax charged for the tax type tax_type: type: - string - 'null' description: Type of tax charged for eg. GST 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 - 'null' additionalProperties: description: Any type description: >- Any additional details related to the transaction in a key-value pair format. amount: type: - number - 'null' format: double description: Charge Amount for the transaction charge_date: type: - string - 'null' description: The Charge date of transaction currency_code: type: - string - 'null' description: The ISO currency code (e.g., USD, EUR) for the transaction. fulfillment_center: type: - string - 'null' description: >- The name or code of the fulfillment center involved in the transaction. invoice_date: type: - string - 'null' description: The date the invoice was generated. invoice_id: type: - integer - 'null' description: The unique identifier of the related invoice. invoice_type: type: - string - 'null' description: "The type or category of the invoice. Available options:\r\n- Shipping \r\n- Inbound Fee \r\n- WarehouseStorage \r\n- AdditionalFee \r\n- Return \r\n- Credits \r\n- BalanceAdjustment \r\n- Payment" invoiced_status: type: - boolean - 'null' description: >- Indicates whether the transaction has been invoiced. True if billed, false if unbilled. reference_id: type: - string - 'null' description: A unique reference identifier associated with the transaction. reference_type: type: - string - 'null' description: "The type of reference associated with the ReferenceId. Available options:\r\n- Shipment \r\n- Return \r\n- WRO \r\n- URO \r\n- Ticket Number \r\n- FC \r\n- LPN Reference \r\n- Transfer Plan" taxes: type: - array - 'null' items: $ref: '#/components/schemas/Billing.InvoiceTaxDtoV3' description: A list of tax details applied to the transaction if exists. transaction_fee: type: - string - 'null' description: "The fee type associated with the transaction for eg. Shipping fees\r\nTo get all the available transaction fees use the endpoint - '/transaction-fees'" transaction_id: type: - string - 'null' description: The unique identifier for transaction transaction_type: oneOf: - $ref: '#/components/schemas/BillingTransactionDtoV3TransactionType' - type: 'null' 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 - 'null' description: Go to the first page items: type: - array - 'null' items: $ref: '#/components/schemas/Billing.TransactionDtoV3' last: type: - string - 'null' description: Go to the Last page next: type: - string - 'null' description: Go to the Next page prev: type: - string - 'null' description: Go to the Previous page title: Billing.TransactionDtoCursorPagedResponseV3 Billing.ProblemDetails: type: object properties: detail: type: - string - 'null' instance: type: - string - 'null' status: type: - integer - 'null' title: type: - string - 'null' type: type: - string - 'null' 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 ``` ## SDK Code Examples ```python Billing_searchTransactions_example import requests url = "https://api.shipbob.com/2025-07/transactions:query" payload = { "from_date": "2019-08-24", "invoice_ids": ["12345"], "invoiced_status": True, "page_size": 10, "reference_ids": ["11553288", "43-12000928-Pallet00"], "reference_types": ["FC"], "sort_order": "Ascending", "to_date": "2019-08-24", "transaction_fees": ["Kitting Fee", "Warehousing Fee"], "transaction_types": ["Charge"] } headers = { "Authorization": "Bearer