Transactions

List invoices matched to a bank transaction

Changed on

List invoices matched to a bank transaction

ℹ️ This endpoint requires one of the following scopes: transactions:readonly, transactions:all

get/api/external/v2/transactions/{transaction_id}/matched_invoices

Request

  • Base URL
    https://app.pennylane.com
  • URL
    https://app.pennylane.com/api/external/v2/transactions/{transaction_id}/matched_invoices
  • Auth
    OAuth 2
    Authorization code: https://app.pennylane.com/oauth/authorize
    Token URL: https://app.pennylane.com/oauth/oauth/token scopes: transactions:readonly, transactions:all

Path parameters

transaction_idinteger required

Query parameters

cursorstring
Example:dXBkYXRlZF9hdDoxNjc0MTIzNDU2

Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.

limitinteger
Example:20

Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.

Headers

X-Company-Idstring
Example:12345

Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.

Response

A list of invoices matched to the bank transaction

has_moreboolean required

Indicates whether additional results are available beyond this set. Use this flag to determine if another request is needed.

next_cursorstring nullable required

Cursor to retrieve the next set of results. Include this value in the cursor parameter of your next request to fetch subsequent items. A null next_cursor in the response indicates no further results.

Example response

{
  "items": [
    {
      "id": 42,
      "type": "customer",
      "url": "https://app.pennylane.com/api/external/v2/customer_invoices/42"
    }
  ],
  "has_more": true,
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2"
}

Changes