Get Refund Input

June 5, 2026 ยท View on GitHub

Input structure for the method GetRefundAsync

Structure

GetRefundInput

Fields

NameTypeTagsDescriptionGetterSetter
RefundIdStringRequiredThe PayPal-generated ID for the refund for which to show details.String getRefundId()setRefundId(String refundId)
PaypalMockResponseStringOptionalPayPal's REST API uses a request header to invoke negative testing in the sandbox. This header configures the sandbox into a negative testing state for transactions that include the merchant.String getPaypalMockResponse()setPaypalMockResponse(String paypalMockResponse)
PaypalAuthAssertionStringOptionalAn API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. Note:For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.String getPaypalAuthAssertion()setPaypalAuthAssertion(String paypalAuthAssertion)

Example

import com.paypal.sdk.models.GetRefundInput;

GetRefundInput getRefundInput = new GetRefundInput.Builder(
    "refund_id4"
)
.paypalMockResponse("PayPal-Mock-Response0")
.paypalAuthAssertion("PayPal-Auth-Assertion0")
.build();