Refund objects allow you to unapply a payment applied to an invoice or debit memo and, in some instances, refund the charge to the credit or debit card that was originally charged.
RefundAPI
Creates a new refund.
Refund refund = zuoraClient.refunds().create(params);
Parameter | Type | Tags | Description |
---|---|---|---|
params |
RefundCreateRequest |
Required | Refund create request. |
RefundCreateRequest params = RefundCreateRequest.builder()
.amount(10.0d)
.account("account_id8")
.currency("USD")
.external(true)
.build();
Refund refund = zuoraClient.refunds().create(params);
Retrieves a refund by ID.
Refund refund = zuoraClient.refunds().get(id);
Parameter | Type | Tags | Description |
---|---|---|---|
id |
String |
Required | The unique identifier of a refund. |
Refund refund = zuoraClient.refunds().get(id);