-
Notifications
You must be signed in to change notification settings - Fork 141
/
notifications_webhooks_v1.json
1899 lines (1899 loc) · 63.4 KB
/
notifications_webhooks_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": "Webhooks Management",
"description": "The PayPal REST APIs use <a href=\"/docs/api/notifications/webhooks/\"/>webhooks</a> for event notification. Webhooks are HTTP callbacks that receive notification messages for events. After you configure a webhook listener for your app, you can <a href=\"#webhooks_create\">create a webhook</a>, which subscribes the webhook listener for your app to events. The <code>notifications</code> namespace contains resource collections for webhooks.",
"version": "1.11",
"contact": {}
},
"servers": [
{
"url": "https://api-m.sandbox.paypal.com",
"description": "PayPal Sandbox Environment"
},
{
"url": "https://api-m.paypal.com",
"description": "PayPal Live Environment"
}
],
"tags": [
{
"name": "webhooks",
"description": "Use the `/webhooks` resource to subscribe your webhook listener to events, list webhooks for an app, show details for, update, delete, and list event subscriptions for webhooks."
},
{
"name": "webhooks-lookup",
"description": "Use the `/webhooks-lookup` resource to create, list, show details for, and delete webhook lookups."
},
{
"name": "verify-webhook-signature",
"description": "Use the `/verify-webhook-signature` resource to verify a webhook signature."
},
{
"name": "webhooks-event-types",
"description": "Use the `/webhooks-event-types` resource to list available events to which any webhook can subscribe."
},
{
"name": "webhooks-events",
"description": "Use the `/webhooks-events` resource to list, show details for, and resend event notifications."
},
{
"name": "simulate-event",
"description": "Use the `/simulate-event` resource to use a sample payload to simulate a webhook event. The events that this call generates only serve to validate the connection to the listener URL and to show how webhook events look. <blockquote><strong>Note:</strong> You can also use the <a href=\"/docs/api/notifications/webhooks/simulator/\">Webhooks simulator</a> to simulate webhook events.</blockquote>"
},
{
"name": "publish-event-with-payload",
"description": "Use the `/publish-event-with-payload` resource to publish an event with a specified payload."
},
{
"name": "publish-event-with-reference",
"description": "Use the `/publish-event-with-reference` resource to publish an event with a specified reference."
},
{
"name": "webhook-event-delivery-status",
"description": "Use the `/webhook-event-delivery-status` resource to show the webhook event send status."
},
{
"name": "webhooks-error-types",
"description": "Use the `/error-types` resource to create and list available webhook error types."
},
{
"name": "webhooks-errors",
"description": "Use the `/webhooks-errors` resource to create, list, show details for, and update webhook errors."
},
{
"name": "batch-resend",
"description": "Use the `/batch-resend` resource to send out IPN/Webhooks in batches."
}
],
"externalDocs": {
"url": "https://developer.paypal.com/docs/api/webhooks/v1/"
},
"paths": {
"/v1/notifications/webhooks": {
"post": {
"summary": "Create webhook",
"description": "Subscribes your webhook listener to events.",
"operationId": "webhooks.post",
"responses": {
"201": {
"description": "A successful request returns the HTTP `201 Created` status code and a JSON response body with a [`webhook`](/docs/api/webhooks/v1/#definition-webhook) object that includes the webhook ID for later use.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook"
},
"examples": {
"webhook": {
"value": {
"url": "https://example.com/example_webhook",
"event_types": [
{
"name": "PAYMENT.AUTHORIZATION.CREATED"
},
{
"name": "PAYMENT.AUTHORIZATION.VOIDED"
}
]
}
}
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks"
]
},
"get": {
"summary": "List webhooks",
"description": "Lists webhooks for an app.",
"operationId": "webhooks.list",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that lists webhooks with webhook details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebhookList"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/anchor_type"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks"
]
}
},
"/v1/notifications/webhooks/{webhook_id}": {
"get": {
"summary": "Show webhook details",
"description": "Shows details for a webhook, by ID.",
"operationId": "webhooks.get",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that shows webhook details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/webhook_id"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks"
]
},
"patch": {
"summary": "Update webhook",
"description": "Updates a webhook to replace webhook fields with new values. Supports only the `replace` operation. Pass a `json_patch` object with `replace` operation and `path`, which is `/url` for a URL or `/event_types` for events. The `value` is either the URL or a list of events.",
"operationId": "webhooks.update",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that shows webhook details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhook"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/webhook_id"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/patch_request"
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks"
]
},
"delete": {
"summary": "Delete webhook",
"description": "Deletes a webhook, by ID.",
"operationId": "webhooks.delete",
"responses": {
"204": {
"description": "A successful request returns the HTTP `204 No Content` status code with no JSON response body."
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/webhook_id"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks"
]
}
},
"/v1/notifications/webhooks/{webhook_id}/event-types": {
"get": {
"summary": "List event subscriptions for webhook",
"description": "Lists event subscriptions for a webhook, by ID.",
"operationId": "event-types.list",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that lists event subscriptions for a webhook.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EventTypeList"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/webhook_id"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks"
]
}
},
"/v1/notifications/webhooks-lookup": {
"post": {
"summary": "Create webhook lookup",
"description": "Creates a webhook lookup.",
"operationId": "webhooks-lookup.post",
"responses": {
"201": {
"description": "A successful request returns the HTTP `201 Created` status code and a JSON response body that shows webhook lookup details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhooks_lookup"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks-lookup"
]
},
"get": {
"summary": "List webhook lookups",
"description": "Lists webhook lookups.",
"operationId": "webhooks-lookup.list",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that lists webhook lookups with webhook lookup details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebhookLookupList"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks-lookup"
]
}
},
"/v1/notifications/webhooks-lookup/{webhook_lookup_id}": {
"get": {
"summary": "Show webhook lookup details",
"description": "Shows details for a webhook lookup, by ID.",
"operationId": "webhooks-lookup.get",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that shows webhook lookup details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/webhooks_lookup"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/webhook_lookup_id"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks-lookup"
]
},
"delete": {
"summary": "Delete webhook lookup",
"description": "Deletes a webhook lookup, by ID.",
"operationId": "webhooks-lookup.delete",
"responses": {
"204": {
"description": "A successful request returns the HTTP `204 No Content` status code with no JSON response body."
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/webhook_lookup_id"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks-lookup"
]
}
},
"/v1/notifications/verify-webhook-signature": {
"post": {
"summary": "Verify webhook signature",
"description": "Verifies a webhook signature.",
"operationId": "verify-webhook-signature.post",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that shows the verification status.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/verify_webhook_signature_response"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/verify_webhook_signature"
},
"examples": {
"verify_webhook_signature": {
"value": {
"transmission_id": "69cd13f0-d67a-11e5-baa3-778b53f4ae55",
"transmission_time": "2016-02-18T20:01:35Z",
"cert_url": "cert_url",
"auth_algo": "SHA256withRSA",
"transmission_sig": "lmI95Jx3Y9nhR5SJWlHVIWpg4AgFk7n9bCHSRxbrd8A9zrhdu2rMyFrmz+Zjh3s3boXB07VXCXUZy/UFzUlnGJn0wDugt7FlSvdKeIJenLRemUxYCPVoEZzg9VFNqOa48gMkvF+XTpxBeUx/kWy6B5cp7GkT2+pOowfRK7OaynuxUoKW3JcMWw272VKjLTtTAShncla7tGF+55rxyt2KNZIIqxNMJ48RDZheGU5w1npu9dZHnPgTXB9iomeVRoD8O/jhRpnKsGrDschyNdkeh81BJJMH4Ctc6lnCCquoP/GzCzz33MMsNdid7vL/NIWaCsekQpW26FpWPi/tfj8nLA==",
"webhook_id": "1JE4291016473214C",
"webhook_event": {
"id": "8PT597110X687430LKGECATA",
"create_time": "2013-06-25T21:41:28Z",
"resource_type": "authorization",
"event_type": "PAYMENT.AUTHORIZATION.CREATED",
"summary": "A payment authorization was created",
"resource": {
"id": "2DC87612EK520411B",
"create_time": "2013-06-25T21:39:15Z",
"update_time": "2013-06-25T21:39:17Z",
"state": "authorized",
"amount": {
"total": "7.47",
"currency": "USD",
"details": {
"subtotal": "7.47"
}
},
"parent_payment": "PAY-36246664YD343335CKHFA4AY",
"valid_until": "2013-07-24T21:39:15Z",
"links": [
{
"href": "https://api-m.paypal.com/v1/payments/authorization/2DC87612EK520411B",
"rel": "self",
"method": "GET"
},
{
"href": "https://api-m.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api-m.paypal.com/v1/payments/authorization/2DC87612EK520411B/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api-m.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
}
}
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks",
"https://uri.paypal.com/services/applications/verify-webhook-signature"
]
}
],
"tags": [
"verify-webhook-signature"
]
}
},
"/v1/notifications/webhooks-event-types": {
"get": {
"summary": "List available events",
"description": "Lists available events to which any webhook can subscribe. For a list of supported events, see [Webhook event names](/docs/api/notifications/webhooks/event-names/).",
"operationId": "webhooks-event-types.list",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that lists available events to which any webhook can subscribe.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EventTypeList"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"tags": [
"webhooks-event-types"
]
}
},
"/v1/notifications/webhooks-events": {
"get": {
"summary": "List event notifications",
"description": "Lists webhooks event notifications. Use query parameters to filter the response.",
"operationId": "webhooks-events.list",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that lists webhooks event notifications.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EventList"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/page_size"
},
{
"$ref": "#/components/parameters/start_time"
},
{
"$ref": "#/components/parameters/end_time"
},
{
"$ref": "#/components/parameters/transaction_id"
},
{
"$ref": "#/components/parameters/event_type"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks-events"
]
}
},
"/v1/notifications/webhooks-events/{event_id}": {
"get": {
"summary": "Show event notification details",
"description": "Shows details for a webhooks event notification, by ID.",
"operationId": "webhooks-events.get",
"responses": {
"200": {
"description": "A successful request returns the HTTP `200 OK` status code and a JSON response body that shows webhooks event notification details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/event"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/event_id"
}
],
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks-events"
]
}
},
"/v1/notifications/webhooks-events/{event_id}/resend": {
"post": {
"summary": "Resend event notification",
"description": "Resends a webhook event notification, by ID. Any pending notifications are not resent.",
"operationId": "webhooks-events.resend",
"responses": {
"202": {
"description": "A successful request returns the HTTP `202 Accepted` status code and a JSON response body that shows webhook event notification details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/event"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"parameters": [
{
"$ref": "#/components/parameters/event_id"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/event_resend"
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"webhooks-events"
]
}
},
"/v1/notifications/simulate-event": {
"post": {
"summary": "Simulate webhook event",
"description": "Simulates a webhook event. In the JSON request body, specify a sample payload.<br>You need to subscribe to the following webhook events for Pay upon Invoice:<br><table><thead><tr><th>Event</th><th>Trigger</th></tr></thead><tbody><tr><td><code>PAYMENT.CAPTURE.COMPLETED</code></td><td>A payment capture completes.</td></tr><tr><td><code>PAYMENT.CAPTURE.DENIED</code></td><td>A payment capture is denied.</td></tr><tr><td><code>CHECKOUT.PAYMENT-APPROVAL.REVERSED</code></td><td>PayPal reverses a payment capture.</td></tr></tbody></table>",
"operationId": "simulate-event.post",
"responses": {
"202": {
"description": "A successful request returns the HTTP `202 Accepted` status code and a JSON response body that shows details for the mock event.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/event"
}
}
}
},
"default": {
"description": "The error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/simulate_event"
},
"examples": {
"simulate_event": {
"value": {
"url": "https://example.com/example_webhook",
"event_type": "PAYMENT.AUTHORIZATION.CREATED",
"resource_version": "1.0"
}
}
}
}
}
},
"security": [
{
"Oauth2": [
"https://uri.paypal.com/services/applications/webhooks"
]
}
],
"tags": [
"simulate-event"
]
}
}
},
"components": {
"securitySchemes": {
"Oauth2": {
"type": "oauth2",
"description": "Oauth 2.0 authentication",
"flows": {
"clientCredentials": {
"tokenUrl": "/v1/oauth2/token",
"scopes": {
"https://uri.paypal.com/services/applications/webhooks": "Access/update Webhooks.",
"https://uri.paypal.com/services/applications/verify-webhook-signature": "Verify Webhook Signature"
}
}
}
}
},
"schemas": {
"error_details": {
"title": "Error Details",
"type": "object",
"description": "The error details. Required for client-side `4XX` errors.",
"properties": {
"field": {
"type": "string",
"description": "The field that caused the error. If this field is in the body, set this value to the field's JSON pointer value. Required for client-side errors."
},
"value": {
"type": "string",
"description": "The value of the field that caused the error."
},
"location": {
"$ref": "#/components/schemas/error_location"
},
"issue": {
"type": "string",
"description": "The unique, fine-grained application-level error code."
},
"description": {
"type": "string",
"description": "The human-readable description for an issue. The description can change over the lifetime of an API, so clients must not depend on this value."
}
},
"required": [
"issue"
]
},
"error_location": {
"type": "string",
"description": "The location of the field that caused the error. Value is `body`, `path`, or `query`.",
"enum": [
"body",
"path",
"query"
],
"default": "body"
},
"error_link_description": {
"title": "Link Description",
"description": "The request-related [HATEOAS link](/api/rest/responses/#hateoas-links) information.",
"type": "object",
"required": [
"href",
"rel"
],
"properties": {
"href": {
"description": "The complete target URL. To make the related call, combine the method with this [URI Template-formatted](https://tools.ietf.org/html/rfc6570) link. For pre-processing, include the `$`, `(`, and `)` characters. The `href` is the key HATEOAS component that links a completed call with a subsequent call.",
"type": "string",
"minLength": 0,
"maxLength": 20000,
"pattern": "^.*$"
},
"rel": {
"description": "The [link relation type](https://tools.ietf.org/html/rfc5988#section-4), which serves as an ID for a link that unambiguously describes the semantics of the link. See [Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml).",
"type": "string",
"minLength": 0,
"maxLength": 100,
"pattern": "^.*$"
},
"method": {
"description": "The HTTP method required to make the related call.",
"type": "string",
"minLength": 3,
"maxLength": 6,
"pattern": "^[A-Z]*$",
"enum": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH"
]
}
}
},
"error_400": {
"type": "object",
"title": "Bad Request Error",
"description": "Request is not well-formed, syntactically incorrect, or violates schema.",
"properties": {
"name": {
"type": "string",
"enum": [
"INVALID_REQUEST"
]
},
"message": {
"type": "string",
"enum": [
"Request is not well-formed, syntactically incorrect, or violates schema."
]
},
"details": {
"type": "array",
"items": {
"$ref": "#/components/schemas/error_details"
}
},
"debug_id": {
"type": "string",
"description": "The PayPal internal ID. Used for correlation purposes."
},
"links": {
"description": "An array of request-related [HATEOAS links](https://en.wikipedia.org/wiki/HATEOAS).",
"type": "array",
"minItems": 0,
"maxItems": 10000,
"items": {
"$ref": "#/components/schemas/error_link_description"
}
}
}
},
"error_401": {
"type": "object",
"title": "Unauthorized Error",
"description": "Authentication failed due to missing Authorization header, or invalid authentication credentials.",
"properties": {
"name": {
"type": "string",
"enum": [
"AUTHENTICATION_FAILURE"
]
},
"message": {
"type": "string",