Happy Business Starts Here

Zuora Alumni

Cannot do Inovice Item Adjustment with REST

Problem: I'm getting the below error when trying to do an invoice item adjustment.  Can you tell me why?

 

REST request: 

 

{

'Type': 'Credit',

'Amount': 85,

'SourceType': 'InvoiceDetail',

'SourceId': '2c92a0ad559a7f4b01559af54224709d',

'AdjustmentDate': '2017-12-21',

'ReasonCode': 'Write-off',

'DeferredRevenueAccount': '2c92a09a48bf47900148c06422da2a17',

'RecognizedRevenueAccount': '2c92a0f9493771ca014953706bec7588'

}

 

Response:

 

AssertionError: POST to /object/invoice-item-adjustment/ failed: b'{"Errors":[{"Code":"INVALID_VALUE","Message":"The specified Accounting Code 2c92a09a48bf47900148c06422da2a17 with a type of Deferred Revenue cannot be found in the Chart of Accounts"}],"Success":false}

 

AssertionError: POST to /object/invoice-item-adjustment/ failed: b'{"Errors":[{"Code":"INVALID_VALUE","Message":"The specified Accounting Code 2c92a0f9493771ca014953706bec7588 with a type of Sales Revenue cannot be found in the Chart of Accounts"}],"Success":false}



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Highlighted
Zuora Alumni

Re: Cannot do Inovice Item Adjustment with REST

Answer:  The value for the below fields needs to be the account code iteself.  You cannot use the account code id #.   

 

 

"DeferredRevenueAccount": "Accounts Receivable",

"RecognizedRevenueAccount": "72010 - Bad Debt",



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √