List transactions

GET {{base_url}}/v1/reporting/transactions?fields=transaction_info,payer_info,shipping_info,auction_info,cart_info,incentive_info,store_info&start_date=2022-02-20T23:59:59.999Z&end_date=2022-03-20T00:00:00.000Z

Lists transactions. Specify one or more query parameters to filter the transaction that appear in the response.

Notes:
  • If you specify one or more optional query parameters, the ending_balance response field is empty.
  • It takes a maximum of three hours for executed transactions to appear in the list transactions call.
  • This call lists transaction for the previous three years.

Request Params

| Key | Datatype | Required | Description | | fields | string | | Indicates which fields appear in the response. Value is a single field or a comma-separated list of fields. The <code>transaction_info</code> value returns only the transaction details in the response. To include all fields in the response, specify <code>fields=all</code>. Valid fields are:<ul><li><a href="https://developer.paypal.com/api/transaction-search/v1/#definition-transaction_info&quot;&gt;&lt;code&gt;transaction_info&lt;/code&gt;&lt;/a>. The transaction information. Includes the ID of the PayPal account of the payee, the PayPal-generated transaction ID, the PayPal-generated base ID, the PayPal reference ID type, the transaction event code, the date and time when the transaction was initiated and was last updated, the transaction amounts including the PayPal fee, any discounts, insurance, the transaction status, and other information about the transaction.</li><li><a href="https://developer.paypal.com/api/transaction-search/v1/#definition-definition-payer_info&quot;&gt;&lt;code&gt;payer_info&lt;/code&gt;&lt;/a>. The payer information. Includes the PayPal customer account ID and the payer's email address, primary phone number, name, country code, address, and whether the payer is verified or unverified.</li><li><a href="https://developer.paypal.com/api/transaction-search/v1/#definition-shipping_info&quot;&gt;&lt;code&gt;shipping_info&lt;/code&gt;&lt;/a>. The shipping information. Includes the recipient's name, the shipping method for this order, the shipping address for this order, and the secondary address associated with this order.</li><li><a href="https://developer.paypal.com/api/transaction-search/v1/#definition-auction_info&quot;&gt;&lt;code&gt;auction_info&lt;/code&gt;&lt;/a>. The auction information. Includes the name of the auction site, the auction site URL, the ID of the customer who makes the purchase in the auction, and the date and time when the auction closes.</li><li><a href="https://developer.paypal.com/api/transaction-search/v1/#definition-cart_info&quot;&gt;&lt;code&gt;cart_info&lt;/code&gt;&lt;/a>. The cart information. Includes an array of item details, whether the item amount or the shipping amount already includes tax, and the ID of the invoice for PayPal-generated invoices.</li><li><a href="https://developer.paypal.com/api/transaction-search/v1/#definition-incentive_info&quot;&gt;&lt;code&gt;incentive_info&lt;/code&gt;&lt;/a>. An array of incentive detail objects. Each object includes the incentive, such as a special offer or coupon, the incentive amount, and the incentive program code that identifies a merchant loyalty or incentive program.</li><li><a href="https://developer.paypal.com/api/transaction-search/v1/#definition-store_info&quot;&gt;&lt;code&gt;store_info&lt;/code&gt;&lt;/a>. The store information. Includes the ID of the merchant store and the terminal ID for the checkout stand in the merchant store.</li></ul> | | start_date | string | | (Required) Filters the transactions in the response by a start date and time, in Internet date and time format. Seconds are required. Fractional seconds are optional. | | end_date | string | | (Required) Filters the transactions in the response by an end date and time, in Internet date and time format. Seconds are required. Fractional seconds are optional. The maximum supported range is 31 days. | | transaction_id | string | | Filters the transactions in the response by a PayPal transaction ID. A valid transaction ID is 17 characters long, except for an <a href="https://developer.paypal.com/api/payments/v1/#definition-order&gt;order ID</a>, which is 19 characters long.<blockquote><strong>Note:</strong> A transaction ID is not unique in the reporting system. The response can list two transactions with the same ID. One transaction can be balance affecting while the other is non-balance affecting.</blockquote> | | transaction_type | string | | Filters the transactions in the response by a PayPal transaction event code. See Transaction event codes. | | transaction_status | string | | Filters the transactions in the response by a PayPal transaction status code. Value is:<table><thead><tr><th>Status&nbsp;code</th><th>Description</th></tr></thead><tbody><tr><td><code>D</code></td><td>PayPal or merchant rules denied the transaction.</td></tr><tr><td><code>P</code></td><td>The transaction is pending. The transaction was created but waits for another payment process to complete, such as an ACH transaction, before the status changes to <code>S</code>.</td></tr><tr><td><code>S</code></td><td>The transaction successfully completed without a denial and after any pending statuses.</td></tr><tr><td><code>V</code></td><td>A successful transaction was reversed and funds were refunded to the original sender.</td></tr></tbody></table> | | transaction_amount | string | | Filters the transactions in the response by a gross transaction amount range. Specify the range as &lt;start-range&gt; TO &lt;end-range&gt;, where &lt;start-range&gt; is the lower limit of the gross PayPal transaction amount and &lt;end-range&gt; is the upper limit of the gross transaction amount. Specify the amounts in lower denominations. For example, to search for transactions from $5.00 to $10.05, specify [500 TO 1005].<blockquote><strong>Note:</strong>The values must be URL encoded.</blockquote> | | transaction_currency | string | | Filters the transactions in the response by a three-character ISO-4217 currency code for the PayPal transaction currency. | | payment_instrument_type | string | | Filters the transactions in the response by a payment instrument type. Value is either:<ul><li><code>CREDITCARD</code>. Returns a direct credit card transaction with a corresponding value.</li><li><code>DEBITCARD</code>. Returns a debit card transaction with a corresponding value.</li></ul>If you omit this parameter, the API does not apply this filter. | | balance_affecting_records_only | string | | Indicates whether the response includes only balance-impacting transactions or all transactions. Value is either:<ul><li><code>Y</code>. The default. The response includes only balance transactions.</li><li><code>N</code>. The response includes all transactions.</li></ul> | | terminal_id | null | | Filters the transactions in the response by a terminal ID. | | store_id | null | | Filters the transactions in the response by a store ID. | | page | number | | The zero-relative start index of the entire list of items that are returned in the response. So, the combination of page=1 and page_size=20 returns the first 20 items. | | page_size | number | | The number of items to return in the response. So, the combination of page=1 and page_size=20 returns the first 20 items. The combination of page=2 and page_size=20 returns the next 20 items. |

HEADERS

| Key | Datatype | Required | Description | | Content-Type | string | | The Content-Type header field is used to specify the nature of the data in the body of an entity. PayPal REST APIs support application/json. | | PayPal-Request-Id | string | | The server stores keys for 72 hours. | | PayPal-Client-Metadata-Id | string | | Optional. Verifies that the payment originates from a valid, user-consented device and application. Reduces fraud and decreases declines. Transactions that do not include a client metadata ID are not eligible for PayPal Seller Protection. | | PayPal-Partner-Attribution-Id | string | | Optional. Identifies the caller as a PayPal partner. To receive revenue attribution, specify a unique build notation (BN) code. BN codes provide tracking on all transactions that originate or are associated with a particular partner. To find your BN code, see Code and Credential Reference. | | PayPal-Auth-Assertion | string | | An API client-provided JSON Web Token (JWT) assertion that identifies the merchant. To use this header, you must get consent to act on behalf of a merchant. | | Prefer | string | | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul> | | Prefer | string | | The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul> |

RESPONSES

status: OK

{&quot;transaction_details&quot;:[],&quot;account_number&quot;:&quot;C7CYMKZDG8D6E&quot;,&quot;start_date&quot;:&quot;2022-02-20T23:59:59+0000&quot;,&quot;end_date&quot;:&quot;2022-03-14T00:59:59+0000&quot;,&quot;last_refreshed_datetime&quot;:&quot;2022-03-14T00:59:59+0000&quot;,&quot;page&quot;:1,&quot;total_items&quot;:0,&quot;total_pages&quot;:0,&quot;links&quot;:[{&quot;href&quot;:&quot;https://api.sandbox.paypal.com/v1/reporting/transactions?end_date=2022-03-20T00%3A00%3A00.000Z\u0026fields=transaction_info%2Cpayer_info%2Cshipping_info%2Cauction_info%2Ccart_info%2Cincentive_info%2Cstore_info\u0026start_date=2022-02-20T23%3A59%3A59.999Z\u0026page_size=100\u0026page=1&quot;,&quot;rel&quot;:&quot;self&quot;,&quot;method&quot;:&quot;GET&quot;}]}