Download PDF
Download page Creating Credit Memo from Wallet Asset Line Items (WALI).
Creating Credit Memo from Wallet Asset Line Items (WALI)
You can create a credit memo for an invoice with invoice lines referencing a wallet asset line item (WALI) using an API. The API validates the fee amount in the Total Fee Amount field of the invoice lines with respect to the available balance of the wallet in the Available Balance (Wallet) field. If the validation passes, it executes the request, creates a Related A/R Transaction on the invoice, and updates the WALI balance in the Available Balance (Wallet) field.
If you pass multiple invoice IDs, they are processed in the order their invoice IDs are sent to the API.
Consider these scenarios:
Scenario | Result | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Scenario 1: You want to create a credit memo for USD 100.00 spread across five invoices, belonging to two different invoices. All the invoice lines refer to the same WALI. The WALI balance is USD 90.00.
| When you pass the invoice IDs of INV-1 and INV-10 in the API, based on the order of processing:
| ||||||||||||||||||||||||
Scenario 2: You want to create a credit memo for USD 100.00 spread across five invoices, belonging to two different invoices. Four invoice lines refer to WALI-1 and one invoice line refers to another WALI-2. WALI-1 has a balance of USD 90.00. WALI-2 has a balance of USD 20.00.
| When you pass the invoice IDs of INV-1 and INV-10 in the API, regardless of the order of processing, both the invoices INV-1 and INV-10 are processed because the WALI-1 balance is greater than the credit amount of both invoices. | ||||||||||||||||||||||||
Scenario 3: You want to create a credit memo for USD 100.00 spread across five invoices, belonging to two different invoices. Four invoice lines refer to WALI-1 and one invoice line refers to another WALI-2. WALI-1 has a balance of USD 90.00. WALI-2 has a balance of USD 10.00.
| When you pass the invoice IDs of INV-1 and INV-10 in the API, INV-10 is processed and INV-1 is rejected one of the line items (ILI-2) does not have sufficient Available Balance on its WALI. If the invoice line associated with WALI-2 is not passed in the API, then both INV-1 and INV-10 are processed. |
The following API is called to create credit memos from invoices.
API | Response |
---|---|
CODE
| Credit memos are created based on the scenarios explained in the above table. |