RefundTransaction API Operation (NVP)
Last updated: Sept 19th, 3:03am
Issues a full or partial refund to the PayPal account holder associated with a transaction.
The default refund period is 180 days from the transaction date.
If you refund a payment for goods or services, there are no fees to make the refund, but the fees you originally paid as the seller are not returned to you. The amount of the refunded payment will be deducted from your PayPal account.
Instead, merchants can manually issue a credit to the buyer by logging into their PayPal account; for PayPal payments, a credit can be issued by clicking Send Money. Alternatively, merchants can use the MassPay API to credit PayPal accounts or utilize the DoNonReferencedCredit API operation to issue a credit to a card without referencing the original transaction.
For more about refunds, see All about refunds at PayPal.
RefundTransaction request message
RefundTransaction request fields
Field | Description |
---|---|
|
(Required) Must be |
|
(Required) Unique identifier of the transaction to be refunded. Character length and limitations: 17 characters. Orders transactions have 19 characters. |
|
(Optional) Encrypted PayPal customer account identification number. Supported only for Point of Sale transactions. Character length and limitations: 13 single-byte alphanumeric characters. |
|
(Optional) Your own invoice or tracking ID number. Character length and limitations: 127 single-byte alphanumeric characters. |
|
Type of refund you are making. Value is:
|
|
(Optional) Refund amount. Required if the value of Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( |
|
(Optional) Currency code of the refund transaction. If this field is not passed, the currency code of the original transaction is used. It is an ISO 4217 3-letter currency code, for example, Character length and limitations: Three single-byte characters. |
|
(Optional) Custom memo about the refund. Character length and limitations: 255 single-byte alphanumeric characters. |
|
(Optional) Type of PayPal funding source (balance or eCheck) that can be used for auto refund. Value is:
Available since version 82.0. |
|
(Deprecated) Flag indicates the buyer received store credit for a given transaction. Supported only for Point of Sale transactions and is one of the following values:
Available since version 85.0. |
|
(Optional) A message ID that uniquely identifies the request. This ID can later be used to request the latest results for a previous request without generating a new request. Examples of this include requests due to timeouts or errors during the original request. Character length and limitations: String of up to 38 single-byte characters. Available since version 92.0. |
Merchant store details fields
Field | Description |
---|---|
|
Identifier of the merchant store at which the refund is given. This field is required for point-of-sale transactions. Character length and limitations: 50 single-byte characters. Available since version 82.0. |
|
(Optional) ID of the terminal. Character length and limitations: 50 single-byte characters. Available since version 82.0. |
RefundTransaction response message
RefundTransaction response fields
Field | Description |
---|---|
|
Unique transaction ID of the refund. Character length and limitations: 17 characters. Orders transactions have 19 characters. |
|
The refunded amount of the PayPal transaction fees (all or part of the variable fee). PayPal's transaction fees for merchants typically consist of a variable fee and a fixed fee. For example, for a $100 payment amount, if the standard per transaction fee is the sum of a variable fee of 2.9% plus a fixed fee of $0.30, the fees would be $2.90 + $0.30. For a full refund of $100.00, the Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( |
|
Amount refunded to the buyer in this refund transaction. For example, a buyer originally made a $100.00 payment, the buyer was refunded $20.00 a week ago and is refunded $30.00 in this transaction. The gross refund amount is $30.00, only the amount refunded in this transaction. Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( |
|
Amount deducted from your PayPal account to make this refund. This is the Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( |
|
Total amount refunded so far from the original payment. For example, a buyer originally made a $100.00 payment, the buyer was refunded $20.00 a week ago and is refunded $30.00 in this transaction. The Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( Available since version 67.0. |
|
An ISO 4217 3-letter currency code, for example, Character length and limitations: Three single-byte characters. |
|
(Optional) A message ID that uniquely identifies the request. This ID can later be used to request the latest results for a previous request without generating a new request. Examples of this include requests due to timeouts or errors during the original request. Character length and limitations: String of up to 38 single-byte characters. Available since version 92.0. |
RefundInfoType fields
Field | Description |
---|---|
|
Status of the refund. Value is:
Available since version 84.0. |
|
Reason that the refund payment status is delayed. Value is:
Available since version 84.0. |
Deprecated Fields
The following fields are deprecated. Replacement fields are noted when available.
Deprecated RefundTransaction request fields
Deprecated field | Replacement field |
|
---|---|---|
|
(No replacement) (Optional) The amount of shipping paid. |
March 2019 |
|
(No replacement) (Optional) The amount of tax paid. |
March 2019 |
Deprecated InvoiceItemType fields
Deprecated field | Replacement field |
|
---|---|---|
|
(No replacement) (Optional) A human readable item name. Character length and limitations: 127 single-byte characters. You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) A human readable item description. Character length and limitations: 127 single-byte characters. You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) The International Article Number or Universal Product Code (UPC) for the item. An empty string is allowed. Character length and limitations: 17 single-byte characters. You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) The Stock-Keeping Unit or other identification code assigned to the item. Character length and limitations: 64 single-byte characters. You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) The total price of this item. Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Conditional) Required if Character length and limitations: You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) The price for one item. Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Conditional) Required if Character length and limitations: You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Conditional) Required if Character length and limitations: You can specify multiple items in each request . The character |
March 2019 |
|
(No replacement) (Conditional) Required if Character length and limitations: You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) The tax percentage applied to the item. This is only displayed in the receipt and is not used in pricing calculations. Character length and limitations: You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Conditional) Required if Character length and limitations: You can specify multiple items in each request. The character This field also allows you to pass an array of information for each item. The character m can range from 0 to 15 .
|
March 2019 |
|
(No replacement) (Conditional) Required if Character length and limitations: Value is typically a positive number that cannot exceed nine (9) digits in SOAP request/response for USD, CLP, or JPY or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period ( You can specify multiple items in each request. The character This field also allows you to pass an array of information for each item. The character m can range from 0 to 15 .
|
March 2019 |
|
(No replacement) (Conditional) Required if Character length and limitations: You can specify multiple items in each request. The character This field also allows you to pass an array of information for each item. The character m can range from 0 to 15 .
|
March 2019 |
|
(No replacement) (Optional) Manufacturer part number. Character length and limitations: You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) International Standard Book Number. Reference International Standard Book Number. Character length and limitations: 32 single-byte characters. |
March 2019 |
|
(No replacement) (Optional) Price Look-Up code. Reference https://en.wikipedia.org/wiki/Price_Look-Up_code. Character length and limitations: Five single-byte characters. |
March 2019 |
|
(No replacement) (Optional) The item manufacturer's model number. Character length and limitations: 32 single-byte characters. You can specify multiple items in each request. The character |
March 2019 |
|
(No replacement) (Optional) The item manufacturer's style number. Character length and limitations: 32 single-byte characters. You can specify multiple items in each request. The character |
March 2019 |