forked from paypal/paypal-rest-api-specifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_disputes_v1.json
5708 lines (5708 loc) · 203 KB
/
customer_disputes_v1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.0.3",
"info": {
"title": "Disputes",
"description": "Occasionally, something goes wrong with a customer's order. To dispute a charge, a customer can create a dispute with PayPal. PayPal merchants, partners, and external developers can use the PayPal Disputes API to manage customer disputes.<blockquote><strong>Note:</strong> In the live environment, merchants cannot create disputes but can only respond to customer-created disputes. However, merchants can create disputes in the sandbox environment. When you create an app, enable Disputes in the App feature options section.</blockquote>A customer can also ask his or her bank or credit card company to dispute and reverse a charge, which is known as a <i>chargeback</i>. For more information, see <a href=\"https://www.paypal.com/us/brc/article/customer-disputes-claims-chargebacks-bank-reversals\">Disputes, claims, chargebacks, and bank reversals</a>.<br/><br/>When a customer disputes a charge, you can use this API to provide evidence that the charge is legitimate. To provide evidence or appeal a dispute, you submit a proof of delivery or proof of refund document or notes, which can include logs.<br/><br/>Normally, an agent at PayPal creates a dispute, updates the dispute status, and settles disputes, but now you can run test cases in the sandbox that complete these operations.<br/><br/><blockquote><strong>Important:</strong> The create, cancel, compute metrics, change reason, and validate eligibility methods are available as a limited-release solution at this time. For more information, reach out to your PayPal account manager.</blockquote><br/>For details, see <a href=\"/docs/integration/direct/customer-disputes/\">Disputes Overview</a> documentation.",
"version": "1.10"
},
"paths": {
"/v1/customer/disputes": {
"get": {
"summary": "List disputes",
"description": "Lists disputes with a summary set of details, which shows the <code>dispute_id</code>, <code>reason</code>, <code>status</code>, <code>dispute_state</code>, <code>dispute_life_cycle_stage</code>, <code>dispute_channel</code>, <code>dispute_amount</code>, <code>create_time</code> and <code>update_time</code> fields.<br/><br/>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 <code>page_size</code> query parameter.<br/><br/>To list multiple disputes, set these query parameters in the request:<ul><li><code>page_size=2</code></li><li><code>start_time</code> instead of <code>disputed_transaction_id</code></li></ul><br/>If the response contains more than two disputes, it lists two disputes and includes a HATEOAS link to the next page of results.",
"operationId": "disputes.list",
"responses": {
"200": {
"description": "A successful request returns the HTTP <code>200 OK</code> status code and a JSON response body that lists disputes with a full or summary set of details. Default is a summary set of details, which shows the <code>dispute_id</code>, <code>reason</code>, <code>status</code>, <code>dispute_amount</code>, <code>create_time</code>, and <code>update_time</code> fields for each dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/dispute_search"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/start_time"
},
{
"$ref": "#/components/parameters/disputed_transaction_id"
},
{
"$ref": "#/components/parameters/page_size"
},
{
"$ref": "#/components/parameters/next_page_token"
},
{
"$ref": "#/components/parameters/dispute_state"
},
{
"$ref": "#/components/parameters/update_time_before"
},
{
"$ref": "#/components/parameters/update_time_after"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-buyer"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-ebay"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-partner"
]
}
],
"tags": [
"disputes"
]
}
},
"/v1/customer/disputes/{id}": {
"get": {
"summary": "Show dispute details",
"description": "Shows details for a dispute, by ID.<blockquote><strong>Note:</strong> The fields that appear in the response depend on the access. For example, if the merchant requests shows dispute details, the customer's email ID does not appear.</blockquote>",
"operationId": "disputes.get",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that shows dispute details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/dispute"
}
}
}
},
"500": {
"description": "An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-buyer"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-ebay"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/read-partner"
]
}
],
"tags": [
"disputes"
]
},
"patch": {
"summary": "Partially update dispute",
"description": "Partially updates a dispute, by ID. Seller can update the `communication_detail` value or The partner can add the `partner action` information.",
"operationId": "disputes.patch",
"responses": {
"202": {
"description": "A successfully accepted request returns the HTTP `202 Accepted` status code and a JSON response body that includes a [HATEOAS link](/docs/api/reference/api-responses/#hateoas-links) to the ID of the request. The Clients can choose webhook option as well to receive dispute update notification.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"204": {
"description": "A successful request returns the HTTP `204 No Content` status code with no JSON response body."
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"422": {
"description": "The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"500": {
"description": "An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/patch_request"
}
},
"multipart/related": {
"schema": {
"$ref": "#/components/schemas/patch_request"
}
},
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/patch_request"
}
},
"multipart/mixed": {
"schema": {
"$ref": "#/components/schemas/patch_request"
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
}
],
"tags": [
"disputes"
]
}
},
"/v1/customer/disputes/{id}/provide-evidence": {
"post": {
"summary": "Provide evidence",
"description": "Provides evidence for a dispute, by ID. A merchant can provide evidence for disputes with the <code>WAITING_FOR_SELLER_RESPONSE</code> status while customers can provide evidence for disputes with the <code>WAITING_FOR_BUYER_RESPONSE</code> status. Evidence can be a proof of delivery or proof of refund document or notes, which can include logs. A proof of delivery document includes a tracking number while a proof of refund document includes a refund ID. For other evidence type, notes and documents can be given. Evidences requested from you can be found by checking the type of evidence for the corresponding source under the evidence section of the <a href=\"/docs/api/customer-disputes/v1/#disputes_get\">show dispute details</a> response. The source will be <code>REQUESTED_FROM_SELLER</code> for evidences requested from the merchant while it will be <code>REQUESTED_FROM_BUYER</code> for evidences requested from the customer. For constraints and rules regarding documents, see <a href=\"/docs/integration/direct/customer-disputes/integration-guide/#documents\">documents</a>.<br/>To make this request, specify the evidence in the JSON request body and use the <code>provide-evidence</code> link in the <a href=\"/docs/api/reference/api-responses/#hateoas-links/\">HATEOAS links</a> of the <a href=\"/docs/api/customer-disputes/v1/#disputes_get\">show dispute details</a> response. In case the link is not present in the response, you can't provide evidence for the dispute. For information about dispute reasons, see <a href=\"/docs/integration/direct/customer-disputes/integration-guide/#dispute-reasons\">dispute reasons</a>.",
"operationId": "disputes.provide-evidence",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/evidences"
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-buyer"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-partner"
]
}
],
"tags": [
"disputes-actions"
]
}
},
"/v1/customer/disputes/{id}/appeal": {
"post": {
"summary": "Appeal dispute",
"description": "Appeals a dispute, by ID. To appeal a dispute, use the <code>appeal</code> link in the <a href=\"/docs/api/reference/api-responses/#hateoas-links/\">HATEOAS links</a> from the show dispute details response. If this link does not appear, you cannot appeal the dispute. Submit new evidence as a document or notes in the JSON request body. For constraints and rules regarding documents, see <a href=\"/docs/integration/direct/customer-disputes/integration-guide/#documents\">documents</a>.<br/>To make this request, specify the dispute ID in the URI and specify the evidence in the JSON request body. For information about dispute reasons, see <a href=\"/docs/integration/direct/customer-disputes/integration-guide/#dispute-reasons\">dispute reasons</a>.",
"operationId": "disputes.appeal",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/evidences"
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-buyer"
]
}
],
"tags": [
"disputes-actions"
]
}
},
"/v1/customer/disputes/{id}/accept-claim": {
"post": {
"summary": "Accept claim",
"description": "Accepts liability for a claim, by ID. When you accept liability for a claim, the dispute closes in the customer’s favor and PayPal automatically refunds money to the customer from the merchant's account. Allowed accept_claim_type values for the request is available in dispute details <a href=\"/docs/api/customer-disputes/v1/#definition-allowed_response_options\">allowed response options</a> object.",
"operationId": "disputes.accept-claim",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"accept-claim-document": {
"description": "A file with evidence.",
"type": "string",
"format": "binary"
}
}
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
}
],
"tags": [
"disputes-actions"
]
}
},
"/v1/customer/disputes/{id}/adjudicate": {
"post": {
"summary": "Settle dispute",
"description": "<blockquote><strong>Important:</strong> This method is for sandbox use only.</blockquote> Settles a dispute in either the customer's or merchant's favor. Merchants can make this call in the sandbox to complete end-to-end dispute resolution testing, which mimics the dispute resolution that PayPal agents normally complete. To make this call, the dispute <code>status</code> must be <code>UNDER_REVIEW</code> and <code>adjudicate</code> link should be available in the <a href=\"/docs/api/customer-disputes/v1/#disputes_get!c=200&path=links&t=response/\">HATEOAS links</a> of the <a href=\"/docs/api/customer-disputes/v1/#disputes_get\">show dispute details</a> response.",
"operationId": "disputes.adjudicate",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"422": {
"description": "The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"500": {
"description": "An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/adjudicate"
},
"examples": {
"0": {
"$ref": "#/components/examples/adjudicate"
}
}
},
"multipart/related": {
"schema": {
"$ref": "#/components/schemas/adjudicate"
}
},
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/adjudicate"
}
},
"multipart/mixed": {
"schema": {
"$ref": "#/components/schemas/adjudicate"
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-buyer"
]
}
],
"tags": [
"disputes-actions"
]
}
},
"/v1/customer/disputes/{id}/require-evidence": {
"post": {
"summary": "Update dispute status",
"description": "<blockquote><strong>Important:</strong> This method is for sandbox use only.</blockquote> Updates the status of a dispute, by ID, from <code>UNDER_REVIEW</code> to either:<ul><li><code>WAITING_FOR_BUYER_RESPONSE</code></li><li><code>WAITING_FOR_SELLER_RESPONSE</code></li></ul>This status change enables either the customer or merchant to submit evidence for the dispute. To make this call, the dispute <code>status</code> must be <code>UNDER_REVIEW</code> and <code>require-evidence</code> link should be available in the <a href=\"/docs/api/customer-disputes/v1/#disputes_get!c=200&path=links&t=response/\">HATEOAS links</a> of the <a href=\"/docs/api/customer-disputes/v1/#disputes_get\">show dispute details</a> response. Specify an <code>action</code> value in the JSON request body to indicate whether the status change enables the customer or merchant to submit evidence:<table><thead><tr align=\"left\"><th>If <code>action</code> is</th><th>The <code>status</code> updates to</th></tr></thead><tbody><tr><td><code>BUYER_EVIDENCE</code></td><td> <code>WAITING_FOR_BUYER_RESPONSE</code></td></tr><tr><td><code>SELLER_EVIDENCE</code></td><td> <code>WAITING_FOR_SELLER_RESPONSE</code></td></tr></tbody></table>.",
"operationId": "disputes.require-evidence",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"422": {
"description": "The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"500": {
"description": "An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/require_evidence"
},
"examples": {
"0": {
"$ref": "#/components/examples/require_evidence"
}
}
},
"multipart/related": {
"schema": {
"$ref": "#/components/schemas/require_evidence"
}
},
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/require_evidence"
}
},
"multipart/mixed": {
"schema": {
"$ref": "#/components/schemas/require_evidence"
}
}
},
"required": true
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-buyer"
]
}
],
"tags": [
"disputes-actions"
]
}
},
"/v1/customer/disputes/{id}/escalate": {
"post": {
"summary": "Escalate dispute to claim",
"description": "Escalates the dispute, by ID, to a PayPal claim. To make this call, the stage in the dispute lifecycle must be `INQUIRY`.",
"operationId": "disputes.escalate",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"422": {
"description": "The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"500": {
"description": "An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/escalate"
},
"examples": {
"0": {
"$ref": "#/components/examples/escalate"
}
}
},
"multipart/related": {
"schema": {
"$ref": "#/components/schemas/escalate"
}
},
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/escalate"
}
},
"multipart/mixed": {
"schema": {
"$ref": "#/components/schemas/escalate"
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-buyer"
]
}
],
"tags": [
"disputes-actions"
]
}
},
"/v1/customer/disputes/{id}/send-message": {
"post": {
"summary": "Send message about dispute to other party",
"description": "Sends a message about a dispute, by ID, to the other party in the dispute. Merchants and customers can only send messages if the `dispute_life_cycle_stage` value is `INQUIRY`. For constraints and rules regarding documents that can be attached as part of the message, see <a href=\"/docs/integration/direct/customer-disputes/integration-guide/#documents\">documents</a>. To send a message, use the <code>send-message</code> link in the <a href=\"/docs/api/reference/api-responses/#hateoas-links/\">HATEOAS links</a> of the <a href=\"/docs/api/customer-disputes/v1/#disputes_get\">show dispute details</a> response and specify the message in the JSON request body. In case the link is not present in the response you can't send a message on the dispute.",
"operationId": "disputes.send-message",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"422": {
"description": "The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"500": {
"description": "An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"message_document": {
"description": "A file that contains any additional info about the message posted.",
"type": "string",
"format": "binary"
}
}
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-seller"
]
},
{
"Oauth2": [
"https://uri.paypal.com/services/disputes/update-buyer"
]
}
],
"tags": [
"disputes-actions"
]
}
},
"/v1/customer/disputes/{id}/make-offer": {
"post": {
"summary": "Make offer to resolve dispute",
"description": "Makes an offer to the other party to resolve a dispute, by ID. To make this call, the stage in the dispute lifecycle must be `INQUIRY`. If the customer accepts the offer, PayPal automatically makes a refund. Allowed offer_type values for the request is available in dispute details <a href=\"/docs/api/customer-disputes/v1/#definition-allowed_response_options\">allowed response options</a> object.",
"operationId": "disputes.make-offer",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/subsequent_action"
}
}
}
},
"400": {
"description": "The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"422": {
"description": "The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"500": {
"description": "An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/content_type"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/make_offer"
},
"examples": {
"0": {
"$ref": "#/components/examples/make_offer"
}
}
},
"multipart/related": {
"schema": {
"$ref": "#/components/schemas/make_offer"
}
},
"multipart/form-data": {
"schema": {