Credit Memo Api Post method issue
We are trying to create a Credit Memo but keeps getting a below error.
Status Code: 400.
You cannot apply 0 or a negative amount to an invoice balance.invoice_id: 0; amount_to_apply: 0. invoice_id: 0; amount_to_apply: 0.
I am able to create a credit memo but then it does not get applied to invoices.
Can you please help us in this issue.
Status Code: 400.
You cannot apply 0 or a negative amount to an invoice balance.invoice_id: 0; amount_to_apply: 0. invoice_id: 0; amount_to_apply: 0.
I am able to create a credit memo but then it does not get applied to invoices.
Can you please help us in this issue.
0
Comments
-
Hi Nitin,
From this little bit of information, it looks like you're trying to provide id 0 and amount 0 when creating the credit memo.
Are you supplying the full credit memo contract and expecting an invoice_id of 0 to just inherently not try to apply to anything? We explicitly throw that error if any application info is sent with a zero amount or less. If you want to achieve quick success here, what happens when you set the application data to null?
Thanks!0 -
I am getting above error when sending below request
{
"credit_memo_id":0,
"vendor_id":75,
"vendor_name":"",
"date":"5/8/2020 12:00:00 AM",
"amount":2000.0,
"credit_applied":0.0,
"credit_remaining":0.0,
"credit_memo_number":"90001",
"description":"Supplies",
"status":"",
"post_status":"DoNotPost",
"post_date":"5/8/2020 12:00:00 AM",
"distributions":[
{
"distribution_id":0,
"distribution_splits":[
{
"distribution_split_id":0,
"ui_project_id":"9999",
"transaction_code_values":[
{
"name":"MV/CV",
"value":"Carrying Value",
"id":1
}
],
"amount":2000.0,
"percent":100.0,
"account_class":"Unrestricted Net Assets"
}
],
"amount":2000.0,
"description":"",
"account_number":"01-2010-00",
"type_code":"Debit"
},
{
"distribution_id":0,
"distribution_splits":[
{
"distribution_split_id":0,
"ui_project_id":"9999",
"transaction_code_values":[
{
"name":"MV/CV",
"value":"Carrying Value",
"id":1
}
],
"amount":2000.0,
"percent":100.0,
"account_class":"Unrestricted Net Assets"
}
],
"amount":2000.0,
"description":"",
"account_number":"01-2010-00",
"type_code":"Credit"
}
],
"custom_fields":[
],
"applied_invoice":[
],
"invoices":[
{
"AmountToApply":1200.0,
"InvoiceId":2598,
"PostDate":"5/8/2020 12:00:00 AM"
},
{
"AmountToApply":800.0,
"InvoiceId":2599,
"PostDate":"5/8/2020 12:00:00 AM"
}
],
"invoice_applications":[
{
"invoice_id":2598,
"invoice_number":"",
"invoice_amount":1200.0,
"invoice_balance":1200.0,
"credit_memo_amount_applied":1200.0,
"post_status":"",
"post_date":"5/8/2020 12:00:00 AM"
},
{
"invoice_id":2599,
"invoice_number":"",
"invoice_amount":800.0,
"invoice_balance":800.0,
"credit_memo_amount_applied":800.0,
"post_status":"",
"post_date":"5/8/2020 12:00:00 AM"
}
],
"form_1099_box_numbers":[
],
"date_added":"",
"date_modified":"",
"added_by":"",
"modified_by":""
}
And I can create a Credit memo but Invoices do not get applied when sending below request.
{
"credit_memo_id":0,
"vendor_id":75,
"vendor_name":"",
"date":"5/8/2020 12:00:00 AM",
"amount":2000.0,
"credit_applied":0.0,
"credit_remaining":0.0,
"credit_memo_number":"90001",
"description":"Supplies",
"status":"",
"post_status":"DoNotPost",
"post_date":"5/8/2020 12:00:00 AM",
"distributions":[
{
"distribution_id":0,
"distribution_splits":[
{
"distribution_split_id":0,
"ui_project_id":"9999",
"transaction_code_values":[
{
"name":"MV/CV",
"value":"Carrying Value",
"id":1
}
],
"amount":2000.0,
"percent":100.0,
"account_class":"Unrestricted Net Assets"
}
],
"amount":2000.0,
"description":"",
"account_number":"01-2010-00",
"type_code":"Debit"
},
{
"distribution_id":0,
"distribution_splits":[
{
"distribution_split_id":0,
"ui_project_id":"9999",
"transaction_code_values":[
{
"name":"MV/CV",
"value":"Carrying Value",
"id":1
}
],
"amount":2000.0,
"percent":100.0,
"account_class":"Unrestricted Net Assets"
}
],
"amount":2000.0,
"description":"",
"account_number":"01-2010-00",
"type_code":"Credit"
}
],
"custom_fields":[
],
"applied_invoice":[
],
"invoices":[
{
"AmountToApply":1200.0,
"InvoiceId":2598,
"PostDate":"5/8/2020 12:00:00 AM"
},
{
"AmountToApply":800.0,
"InvoiceId":2599,
"PostDate":"5/8/2020 12:00:00 AM"
}
],
"invoice_applications":[
],
"form_1099_box_numbers":[
],
"date_added":"",
"date_modified":"",
"added_by":"",
"modified_by":""
}
I hope this helps. Let me know if you need more details.0 -
Hi Nitin,
We have identified an issue in the CreateCreditMemo request example object whereinvoice_applicationswas erroneously labeledinvoices. The documentation has been updated with an accurateinvoice_applicationsexample. Also looking at the request payloads you sent, you're sendingcredit_memo_amount_appliedrather thancredit_memo_amount_to_apply. That request should be updated. Hope this helps!0
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 403 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 656 Blackbaud Grantmaking™
- 577 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 249 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 794 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
