Happy Business Starts Here

How to create/update a Credit Balance Adjustment via REST api call?

Zuora Support Moderator

How to create/update a Credit Balance Adjustment via REST api call?

How to create/update a Credit Balance Adjustment via REST api call?

Regards,
Yong Xiang | yxiang@zuora.com
Application Support Engineer | Zuora Inc.


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
Zuora Support Moderator

Re: How to create/update a Credit Balance Adjustment via REST api call?

1. Update CBA (including cancel CBA)

PUT /v1/object/credit-balance-adjustment/{id}

{
"ReasonCode" : "Cancellation",
"TransferredToAccounting" : "Error",
"Status" : "Canceled"
}

-2. Create CBA

POST /v1/object/credit-balance-adjustment

{
"AccountingCode": "",
"Amount": 1,
"Comment": "Credit Balance applies to invoice.",
"ReasonCode": "Standard Adjustment",
"ReferenceId": "1234",
"SourceTransactionId": "8adcc79567a548110167bac56e1d05ff",
"SourceTransactionNumber": "INV00000001",
"Type": "Decrease"
}

-3. Delete CBA

DELETE /v1/object/credit-balance-adjustment/{id}

The REST object/credit-balance-adjustment call will be translated to soap call by Zuora internal api proxy(not customer facing). So you can refer to CreditBalanceAdjustment SOAP for more info such as the rest call's required field is totally the same with the soap call: https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/E1_SOAP_API_Object_Reference/CreditBalanc...

Regards,
Yong Xiang | yxiang@zuora.com
Application Support Engineer | Zuora Inc.


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