AP Payments

Prev Next
Get
/public/v1/accounting/accounts-payable/payments

Retrieves payments. If no filter of any kind is supplied, results are limited to the current day (UTC).

Security

The requesting user must have the following permission to retrieve AP payments:

  • Accounts Payable → AP Payments → View AP Payments

Restricted-record access: the response excludes records that reference a restricted GL account or a restricted vendor unless the user also has:

  • General Ledger → GL Accounts → Access Restricted GL Accounts
  • Accounts Payable → Vendors → Access Restricted Vendors
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
ModifiedOnStart
string (date-time)

Modified date start (inclusive)

ModifiedOnEnd
string (date-time)

Modified date end (inclusive)

DateStart
string (date)

Payment date (GL posting date) start (inclusive).

DateEnd
string (date)

Payment date (GL posting date) end (inclusive).

Status
string

Status. Valid values: Approved, Unapproved

PaymentNumbers
string

Payment numbers (comma-separated)

PaymentIds
string

Payment IDs (comma-separated UUIDs)

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

Payment query results.

Expand All
object

Paginated response containing queried payments.

payments
Array of object | null

The collection of payments for the current page.

object

Payment model for the query payments public API response.

id
string (uuid)

Unique identifier (GUID) of the payment.

number
string | null

Payment number.

location
object (PaymentLocationReference)

Location reference with optional legal entity.

id
string (uuid)

Unique identifier (GUID) of the location.

name
string | null

Display name of the location.

number
string | null

Location number.

legalEntity
object (PaymentLegalEntityReference)

Legal entity reference.

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.

vendor
object (PaymentVendorReference)

Vendor reference with id, name (CheckName), and number (AccountNumber).

id
string (uuid)

Unique identifier (GUID) of the vendor.

name
string | null

Vendor display name (check name).

number
string | null

Vendor account number.

entryType
string | null

How the vendor's transactions are entered. Present on every payment.

Valid values[ "ByAccount", "ByItem" ]
date
string (date) | null

Date the payment was issued.

amount
number (double)

Total amount of the payment.

comment
string | null

Free-text comment or memo on the payment.

status
string | null

Approval status of the payment. Values are "Approved", "Unapproved".

checkingAccount
object (PaymentGlAccountReference)

GL Account reference.

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.

appliedInvoices
Array of object | null

Invoices applied to this payment, if any.

object

Reference to an invoice applied to a payment.

id
string (uuid)

Unique identifier (GUID) of the invoice.

invoiceNumber
string | null

Invoice number.

appliedAmount
number (double)

Amount applied from this invoice toward the payment.

invoiceTotal
number (double)

Total amount of the invoice.

distributions
Array of object | null

GL distribution lines for this payment, included when IncludeDistributions is true in the request.

object

A single GL distribution line for a posted transaction.

glAccount
object (PaymentGlAccountReference)

GL Account reference.

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 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.

location
object (PaymentLocationReference)

Location reference with optional legal entity.

id
string (uuid)

Unique identifier (GUID) of the location.

name
string | null

Display name of the location.

number
string | null

Location number.

legalEntity
object (PaymentLegalEntityReference)

Legal entity reference.

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.

createdOn
string (date-time) | null

Timestamp when the payment was created.

createdBy
object (PaymentUserReference)

User reference.

id
string (uuid)

Unique identifier (GUID) of the entity.

name
string | null

Display name of the entity.

modifiedOn
string (date-time) | null

Timestamp of the most recent modification.

modifiedBy
object (PaymentUserReference)

User reference.

id
string (uuid)

Unique identifier (GUID) of the entity.

name
string | null

Display name of the entity.

approvedOn
string (date-time) | null

Timestamp when the payment was approved.

approvedBy
object (PaymentUserReference)

User reference.

id
string (uuid)

Unique identifier (GUID) of the entity.

name
string | null

Display name of the entity.

attachments
Array of object | null

Files attached to this payment.

object

File attachment linked to an AP transaction.

id
integer (int32)

Numeric identifier of the attachment.

storageFileName
string | null

Internal storage key or path for the file.

filename
string | null

Original file name as uploaded.

linkType
string | null

Link type indicating how the attachment is associated with the transaction.

publicUrl
string | null

Public URL to download the full attachment.

publicThumbnailUrl
string | null

Public URL for a thumbnail preview of the attachment, if available.

nextLink
string | null

The 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.