Use Case: Apply Credit Memos to Invoices
Business Context
- Non-Standard Adjustments: Sometimes, credits need to be applied to invoices that do not match the standard "Bill To" account or billing period. For example, a credit memo generated in January might need to be applied to a March invoice, or a parent account's credit needs to be applied to a child account's invoice. Manual application allows finance teams to handle these exceptions.
- Partial Application of Credits: Analysts may need to apply only a portion of a credit memo to an invoice, leaving the remainder for future use. This is common when the credit memo amount exceeds the invoice balance, or when the business wants to spread credits across multiple invoices.
- Bypassing Automated Pipelines: If the automated credit application was intentionally bypassed (e.g.,
AutoApplyCreditMemo = falseduring invoice creation), but the finance team later decides to apply the credit, manual application is the only way to process this.
Requirement
- The invoice and credit memos are in Approved status.
- The credit memo's unapplied balance is greater the USD 0.00.
Overview
This use case describes the work flow to partially apply credit memos to an invoice.
Flow
Send a request to the Apply to Invoices API at the following endpoint: POST: https://<URL_of_the_Instance>/api/invoicing/v1/creditmemos/apply-to-invoices.
[
{
"CreditMemos": [
{
"CreditMemoId": "CM-1",
"AmountToApply": 10000
},
{
"CreditMemoId": "CM-2",
"AmountToApply": 10000
}
],
"Invoices": [
{
"InvoiceId": "INV-3",
"AmountToApply": 20000
}
]
}
]
{
"Summary": "1 of 1 sets succeeded.",
"Results": [
{
"RecordIndex": 0,
"IsSuccess": true,
"Errors": [],
"AppliedInvoices": [
{
"InvoiceId": "INV-3",
"InvoiceNewTotalDueAmount": 172000,
"InvoiceNewPaymentStatus": "Partially Paid"
}
],
"AppliedCreditMemos": [
{
"CreditMemoId": "CM-1",
"AmountApplied": 10000,
"CreditMemoNewUnappliedAmount": 14000,
"CreditMemoNewPaymentStatus": "Partially Credited"
},
{
"CreditMemoId": "CM-2",
"AmountApplied": 10000,
"CreditMemoNewUnappliedAmount": 14000,
"CreditMemoNewPaymentStatus": "Partially Credited"
}
]
}
]
}
The credit memos are partially applied to the invoice and related A/R transactions are created for the invoice and credit memos.
- Customer Satisfaction: Applying credits promptly and accurately can improve customer relationships, especially in cases of disputes or negotiated settlements.
- Audit Trail: Manual application creates a clear record of who applied the credit, when, and why, supporting compliance and internal controls.
