AP Credit Memos

Prev Next
Get
/public/v1/accounting/accounts-payable/credit-memos

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

Security

The requesting user must have one of the following permissions to retrieve AP credit memos:

  • Accounts Payable → AP Credit Memos → View AP Credit Memos Within Accounting
  • Food → AP Credit Memos → View AP Credit Memos Within Food

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)

Document date start (inclusive).

DateEnd
string (date)

Document date end (inclusive).

Status
string

Status. Valid values: Approved, Unapproved

CreditMemoNumbers
string

Credit memo numbers (comma-separated)

CreditMemoIds
string

Credit memo 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

Credit memo query results.

Expand All
object

Paginated response containing queried credit memos.

creditMemos
Array of object | null

The collection of credit memos for the current page.

object

Credit memo model for the query credit memos public API response.

id
string (uuid)

Unique identifier (GUID) of the credit memo.

creditMemoNumber
string | null

Vendor-assigned credit memo number.

location
object (CreditMemoLocationReference)

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 (CreditMemoLegalEntityReference)

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 (CreditMemoVendorReference)

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

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

Date printed on the credit memo document.

glDate
string (date) | null

GL posting date for the credit memo.

documentAmount
number (double)

Total amount of the credit memo.

comment
string | null

Free-text comment or memo on the credit memo.

status
string

Approval status. Always populated: "Approved" or "Unapproved".

details
Array of object | null

Line items for this credit memo. Returned whenever the credit memo has lines; there is no request parameter controlling inclusion.

object

Credit memo detail line for the query credit memos public API response. Covers both item-based and GL-based entries.

id
string (uuid)

Unique identifier of the detail line.

glAccount
object (CreditMemoGlAccountReference)

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.

location
object (CreditMemoLocationReference)

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 (CreditMemoLegalEntityReference)

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.

comment
string | null

Free-text comment on this line.

total
number (double) | null

Total amount for this line.

item
object (CreditMemoInventoryItemReference)

Inventory item reference.

id
string (uuid) | null

Unique identifier (GUID) of the inventory item.

name
string | null

Display name of the inventory item.

number
string | null

Inventory item number.

uom
object (CreditMemoUomReference)

Unit of measure reference.

id
string (uuid)

Unique identifier (GUID) of the entity.

name
string | null

Display name of the entity.

quantity
number (double) | null

Quantity for this line. Populated for item-based entries only.

eachAmount
number (double) | null

Unit cost for this line. Populated for item-based entries only.

vendorItemNumber
string | null

Vendor-specific item number. Populated for item-based entries only.

distributions
Array of object (CreditMemoDistributionLine)

GL distribution lines for this credit memo. Always returned; an empty array when there are none. There is no request parameter controlling inclusion.

object

A single GL distribution line for a posted transaction.

glAccount
object (CreditMemoGlAccountReference)

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 (CreditMemoLocationReference)

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 (CreditMemoLegalEntityReference)

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 credit memo was created.

createdBy
object (CreditMemoUserReference)

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 (CreditMemoUserReference)

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 credit memo was approved.

approvedBy
object (CreditMemoUserReference)

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

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.