- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-28-2017
08:16 AM
04-28-2017
08:16 AM
Question:
How do I create / apply credit balances via REST?
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-28-2017
08:27 AM
04-28-2017
08:27 AM
Answer:
Here are the calls you can use for the various CB operations:
POST https://rest.apisandbox.zuora.com/v1/object/credit-balance-adjustment { "Amount": 55.0, "Comment" : "TRANSFER NEGATIVE INVOICE BALANCE TO ACCOUNT CB", "SourceTransactionNumber": "INV00003019", "Type": "Increase" }
POST https://rest.apisandbox.zuora.com/v1/object/credit-balance-adjustment { "Amount": 55.0, "Comment" : "APPLY EXISTING CREDIT BALANCE TO AN UNSETTLED INVOICE", "SourceTransactionNumber": "INV00003020", "Type": "Decrease" }
TO CREATE AN OVERPAYMENT AND APPLY THE AMOUNT TO THE ACCOUNT'S CREDIT BALANCE: POST https://rest.apisandbox.zuora.com/v1/object/payment { "AccountId": "2c92c0f95bae6218015bafd38d45109e", "Amount": 100, "AppliedCreditBalanceAmount": 100, "EffectiveDate": "2017-04-20", "PaymentMethodId": "2c92c0f848a2eacf0148a38c70a54512", "Status": "Processed", "Type": "External" }
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-28-2017
08:27 AM
04-28-2017
08:27 AM
Answer:
Here are the calls you can use for the various CB operations:
POST https://rest.apisandbox.zuora.com/v1/object/credit-balance-adjustment { "Amount": 55.0, "Comment" : "TRANSFER NEGATIVE INVOICE BALANCE TO ACCOUNT CB", "SourceTransactionNumber": "INV00003019", "Type": "Increase" }
POST https://rest.apisandbox.zuora.com/v1/object/credit-balance-adjustment { "Amount": 55.0, "Comment" : "APPLY EXISTING CREDIT BALANCE TO AN UNSETTLED INVOICE", "SourceTransactionNumber": "INV00003020", "Type": "Decrease" }
TO CREATE AN OVERPAYMENT AND APPLY THE AMOUNT TO THE ACCOUNT'S CREDIT BALANCE: POST https://rest.apisandbox.zuora.com/v1/object/payment { "AccountId": "2c92c0f95bae6218015bafd38d45109e", "Amount": 100, "AppliedCreditBalanceAmount": 100, "EffectiveDate": "2017-04-20", "PaymentMethodId": "2c92c0f848a2eacf0148a38c70a54512", "Status": "Processed", "Type": "External" }
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √