- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
How to create/update a Credit Balance Adjustment via REST api call?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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...