List disputes

GET {{base_url}}/v1/customer/disputes

Lists disputes with a summary set of details, which shows the disputeid, reason, status, disputestate, disputelifecyclestage, disputechannel, disputeamount, createtime and updatetime fields.

To filter the disputes in the response, specify one or more optional query parameters. To limit the number of disputes in the response, specify the page
size query parameter.

To list multiple disputes, set these query parameters in the request:

  • pagesize=2
  • starttime instead of disputedtransactionid

If the response contains more than two disputes, it lists two disputes and includes a HATEOAS link to the next page of results.

Request Params

KeyDatatypeRequiredDescription
start_timestringFilters the disputes in the response by a creation date and time. The start time must be within the last 180 days. Value is in Internet date and time format. For example, yyyy-MM-ddTHH:mm:ss.SSSZ.<br/><br/>You can specify either but not both the start_time and disputed_transaction_id query parameters.
disputed_transaction_idstringFilters the disputes in the response by a transaction, by ID.<br/><br/>You can specify either but not both the start_time and disputed_transaction_id query parameter.
page_sizenumberLimits the number of disputes in the response to this value.
next_page_tokennullThe token that describes the next page of results to fetch. The <a href="https://developer.paypal.com/api/customer-disputes/v1/#disputes_list&quot;&gt;list disputes</a> call returns this token in the HATEOAS links in the response.
dispute_statestringFilters the disputes in the response by a state. Separate multiple values with a comma (,). When you specify more than one dispute_state, the response lists disputes that belong to any of the specified dispute_state.
update_time_beforestringThe date and time when the dispute was last updated, in Internet date and time format. For example, yyyy-MM-ddTHH:mm:ss.SSSZ. update_time_before must be within the last 180 days and the default is the current time.
update_time_afterstringThe date and time when the dispute was last updated, in Internet date and time format. For example, yyyy-MM-ddTHH:mm:ss.SSSZ. update_time_after must be within the last 180 days and the default is the maximum time (180 days) supported.

HEADERS

KeyDatatypeRequiredDescription
Content-TypestringThe 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-IdstringThe server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.
PayPal-Client-Metadata-IdstringOptional. 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-IdstringOptional. 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-AssertionstringAn 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.
PreferstringThe 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>
PreferstringThe 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;items&quot;:[{&quot;dispute_id&quot;:&quot;PP-D-61394&quot;,&quot;create_time&quot;:&quot;2022-02-02T03:23:10.000Z&quot;,&quot;update_time&quot;:&quot;2022-02-02T03:28:07.000Z&quot;,&quot;reason&quot;:&quot;MERCHANDISE_OR_SERVICE_NOT_RECEIVED&quot;,&quot;status&quot;:&quot;WAITING_FOR_SELLER_RESPONSE&quot;,&quot;dispute_state&quot;:&quot;REQUIRED_ACTION&quot;,&quot;dispute_amount&quot;:{&quot;currency_code&quot;:&quot;USD&quot;,&quot;value&quot;:&quot;100.00&quot;},&quot;dispute_life_cycle_stage&quot;:&quot;INQUIRY&quot;,&quot;links&quot;:[{&quot;href&quot;:&quot;https://api.sandbox.paypal.com/v1/customer/disputes/PP-D-61394&quot;,&quot;rel&quot;:&quot;self&quot;,&quot;method&quot;:&quot;GET&quot;}]}],&quot;links&quot;:[{&quot;href&quot;:&quot;https://api.sandbox.paypal.com/v1/customer/disputes?disputed_transaction_id=8E3322494D591061V&quot;,&quot;rel&quot;:&quot;self&quot;,&quot;method&quot;:&quot;GET&quot;},{&quot;href&quot;:&quot;https://api.sandbox.paypal.com/v1/customer/disputes?disputed_transaction_id=8E3322494D591061V&quot;,&quot;rel&quot;:&quot;first&quot;,&quot;method&quot;:&quot;GET&quot;}]}