Transactions

Prev Next
Get
/public/v1/accounting/transactions

Retrieves transactions. At least one complete date range must be provided: ModifiedOn (ModifiedOnStart and ModifiedOnEnd) or DateOfBusiness (DateOfBusinessStart and DateOfBusinessEnd)

Security

Access is evaluated per transaction type. The requesting user must have the View permission for each transaction type they want included in the response:

Transaction type Permission
AP Invoice Accounts Payable → AP Invoices → View AP Invoices Within Accounting (or Food equivalent)
AP Credit Memo Accounts Payable → AP Credit Memos → View AP Credit Memos Within Accounting (or Food equivalent)
AP Payment Accounts Payable → AP Payments → View AP Payments
AR Invoice Accounts Receivable → AR Invoices → View AR Invoices
AR Credit Memo Accounts Receivable → AR Credit Memos → View AR Credit Memos
AR Payment Accounts Receivable → AR Payments → View AR Payments
Journal Entry General Ledger → Journal Entries → View Journal Entries
Bank Deposit Banking → Bank Deposits → View Bank Deposits
Bank Transfer Banking → Bank Transfers → View Bank Transfers
Bank Expense Banking → Bank Withdrawals → View Bank Withdrawals
Inventory Count Food → Inventory Counts → View Inventory Counts
Item Transfer Food → Item Transfers → View Item Transfers
Waste Log Food → Waste Logs → View Waste Logs
Donation Food → Donations → View Donations
Commissary Fulfilment Commissary → Commissary Orders → View Commissary Orders

If the request omits TransactionTypes, the response silently drops types the user cannot view. If the request explicitly names a type the user cannot view, the request fails with 422 Unprocessable Entity. Restricted GL accounts and restricted vendors also apply.

Security
HTTP
Type Bearer
Header parameters
x-r365-context-tenant-id
stringRequired

Identifies the R365 tenant the request applies to. Required on every request.

Query parameters
LocationId
string (uuid) Required

Location. Required. Only a single location is supported for v1

ModifiedOnStart
string (date-time)

Modified date start (inclusive)

ModifiedOnEnd
string (date-time)

Modified date end (inclusive)

DateOfBusinessStart
string (date)

Date of business start (inclusive)

DateOfBusinessEnd
string (date)

Date of business end (inclusive)

Status
string

Approval status. Valid values: Unapproved, Approved

TransactionTypes
array of string

Transaction types to include. Repeat the parameter to supply more than one.

Valid Item values[ "APInvoice", "APCreditMemo", "APPayment", "ARInvoice", "ARCreditMemo", "ARPayment", "JournalEntry", "BankTransfer", "BankDeposit", "BankExpense", "InventoryCount", "ItemTransfer", "WasteLog", "Donation", "CommissaryFulfillment" ]
IncludeDetails
boolean

Include transaction detail lines in the response

IncludeDistributions
boolean

Include distribution information in the response

pageSize
integer (int32)

Maximum number of top-level objects to return in one page.

Minimum1.0
Maximum250.0
Default250
ContinuationToken
string

Continuation token for pagination. Use the nextLink from a previous response to get the next page of results

Responses
200

Transactions query results.

Expand All
object

Paginated response containing queried transactions.

transactions
Array of object | null

The collection of transactions for the current page.

object

Transaction model for the query transactions public API response.

id
string (uuid)

Unique identifier (GUID) of the transaction.

type
string | null

Transaction type name (e.g., "APInvoice", "JournalEntry").

number
string | null

Transaction number.

dateOfBusiness
string (date-time) | null

Business date of the transaction.

templateName
string | null

Name of the template used to generate this transaction, if any.

debitTotal
number (double)

Total debit amount across all distribution lines.

creditTotal
number (double)

Total credit amount across all distribution lines.

legalEntity
object (TransactionLegalEntityReference)

Legal entity reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the legal entity.

name
string | null

Display name of the legal entity.

number
string | null

Legal entity number.

location
object (TransactionLocationReference)

Location reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the location.

name
string | null

Display name of the location.

number
string | null

Location number.

comment
string | null

Free-text comment or memo on the transaction.

spreadType
string | null

Spread type applied when the transaction spans multiple periods.

status
string | null

Approval status of the transaction.

modifiedOn
string (date-time) | null

Timestamp of the most recent modification.

details
Array of object | null

Transaction detail lines. Only included when includeDetails is true.

object

Transaction detail line for the query transactions public API response.

id
string (uuid)

Unique identifier of the detail line.

glAccount
object (TransactionGlAccountReference)

GL account reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the GL account.

name
string | null

Display name of the GL account.

number
string | null

GL account number.

glType
string | null

GL type name for this account.

debit
number (double)

Debit amount on this line. Zero when the line is a credit.

credit
number (double)

Credit amount on this line. Zero when the line is a debit.

location
object (TransactionLocationReference)

Location reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the location.

name
string | null

Display name of the location.

number
string | null

Location number.

legalEntity
object (TransactionLegalEntityReference)

Legal entity reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the legal entity.

name
string | null

Display name of the legal entity.

number
string | null

Legal entity number.

comment
string | null

Free-text comment on this detail line.

distribution
object (TransactionDistribution)

Distribution summary for the query transactions public API response.

debitTotal
number (double)

Total debit amount across all distribution lines.

creditTotal
number (double)

Total credit amount across all distribution lines.

lines
Array of object | null

Individual GL distribution lines.

object

Individual distribution line within a transaction distribution.

glAccount
object (TransactionGlAccountReference)

GL account reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the GL account.

name
string | null

Display name of the GL account.

number
string | null

GL account number.

glType
string | null

GL type name for this account.

location
object (TransactionLocationReference)

Location reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the location.

name
string | null

Display name of the location.

number
string | null

Location number.

legalEntity
object (TransactionLegalEntityReference)

Legal entity reference for transaction responses.

id
string (uuid)

Unique identifier (GUID) of the legal entity.

name
string | null

Display name of the legal entity.

number
string | null

Legal entity number.

debit
number (double)

Debit amount on this distribution line. Zero when the line is a credit.

credit
number (double)

Credit amount on this distribution line. Zero when the line is a debit.

comment
string | null

Comment on this distribution line.

attribute1
string | null

Custom reporting attribute 1.

attribute2
string | null

Custom reporting attribute 2.

nextLink
string | null

URL to retrieve the next page of results, or null if this is the last page.

400

Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range.

401

Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant.

403

Forbidden — the caller lacks the permission required for this operation.

404

Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired.

409

Conflict — the request conflicts with the current state of the resource and cannot be applied.

422

Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid.

429

Too Many Requests — the caller has exceeded the rate limit; retry after a short delay.

500

Internal Server Error — an unexpected error occurred while processing the request.