-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathapiary.apib
More file actions
2071 lines (1802 loc) · 101 KB
/
apiary.apib
File metadata and controls
2071 lines (1802 loc) · 101 KB
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
FORMAT: 1A
HOST: https://api.signifyd.com/v2
# Signifyd API
# **WARNING: DEPRECATED**
> V2 of our API is **deprecated**; if you are a new merchant, please refer to **[our V3 API Docs](https://docs.signifyd.com/)** instead.
## Deprecation Notice
The docs below are for Signifyd's V2 API, which is now **deprecated**. If you are a new Signifyd customer, your Implementation Manager will recommend that you deploy our V3 API, which will allow you to take advantage of new features and products. By the end of **Q1 2023**, the V3 docs will become our default API documentation. Legacy V2 integrations will continue to be supported.
## Overview
This document will show you how to use our REST API to authenticate, make requests, and retrieve data. All responses to and from the API will be in [JSON](http://www.tutorialspoint.com/json/json_data_types.htm).
You can view a [step-by-step tutorial](https://www.youtube.com/watch?v=aUE-Othaf2c&feature=youtu.be) on how to send and fetch data using the Signifyd API.
If you are a Signifyd customer and would like to access Enterprise API documentation, please [log in here](https://app.signifyd.com) and navigate to the Resource Center within Developer Tools.
## Authentication
All API requests must be made over HTTPS using a [base64 encoded](https://en.wikipedia.org/wiki/Base64) API key. You can generate an API key by creating a team in [settings](https://app.signifyd.com/settings) page.
- Authentication: [HTTP Basic Auth](http://en.wikipedia.org/wiki/Basic_access_authentication#Client_side).
- Username: Your API key as the basic auth username.
- Password: You do not need to provide a password. However, some REST clients expect a username:password pair separated by a colon. If so, you can use a colon as the password.
## REST Client
Our API docs include a built-in REST console you can use to interactively test the API. Each endpoint is configured with example request data that will produce a successful result from our API if you provide valid credentials. By default, the API key in the REST console is `abcdefghijklmnopqrstuvwxyz` which appears in it's base64 encoded form, `YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6`. You must replace this with you own base64 encoded API key in the headers section of the console to successfully submit requests.
## Response Codes
We use conventional HTTP response codes to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing, invalid syntax, etc.), and codes in the 5xx range indicate an error with Signifyd's servers.
| Code| Description |
| --- | --- |
|`200`| Success - Request completed. |
|`201`| Success - New resource created. |
|`202`| Success - The request has been accepted, but not yet processed. |
|`204`| Success - No content to return. |
|`400`| Bad Request - The request could not be parsed, generally due to bad syntax. |
|`401`| Unauthorized - The request could not be authenticated due to missing or invalid credentials. |
|`403`| Forbidden - You do not have permission to access to the resource. |
|`404`| Not Found - The resource doesn't exist. |
|`409`| Conflict - The with state of the resource on server. Can occur with (too rapid) PUT requests. |
|`429`| The request was not accepted because the application has exceeded the rate limit. APIs that have rate limits are specified in the API documentation. |
|`500`| Internal Server Error - An internal error occurred in Signifyd. |
|`503`| Service Unavailable - The server is currently unavailable. Check the status page for reported outages. |
|`504`| Gateway Timeout - The request could not complete in time. |
## Error Messages
There are two types of errors returned by the API server in the bodies of 4xx and 5xx responses:
- Field-specific errors
- General error messages
```
{
"errors": {
"fieldName":[
"Field-specific error message, e.g., fieldName is not a valid email address."
]
},
"messages": [
"General error message."
]
}
```
## Dates
Our API uses the [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) date format for
complete date plus hours, minutes, seconds and timezone offset.
```
yyyy-MM-dd'T'HH:mm:ssZ
For UTC: 2015-11-03T13:21:58+00:00
For PST: 2015-11-03T13:21:58-08:00
```
For more information about your specific programming language, please view [this document](https://developers.google.com/gmail/markup/reference/datetime-formatting).
## Unique IDs
Signifyd’s Unique IDs, such as caseId and transactionId,leverage the JSON integer type, which has a maximum value of 2 ^ 53 - 1 as mentioned in [RFC 8259](https://datatracker.ietf.org/doc/html/rfc8259)
## Backwards Compatibility
Signifyd treats the following API changes as backwards compatible:
- Adding new optional request parameter(s) to an existing API endpoint.
- Adding a new value to an enum field.
- Adding new fields to existing API responses.
- Changing the order of fields in an existing API response.
- Adding a brand new API resource.
- Adding a new webhook event. Your integration should handle unfamiliar webhook events gracefully.
- Changing the length of UUIDs (though we don't change lengths that often!).
- Changing the format of error messages, and other human readable strings.
## Feedback
Was this document helpful?
[Yes](https://docs.google.com/forms/d/e/1FAIpQLSdBB8IWudRFdAob3uxwcEJTl9ryPJjyyJKsv5DbahYYG2Ickg/viewform?usp=pp_url&entry.323773105=5)
or [No](https://docs.google.com/forms/d/e/1FAIpQLSdBB8IWudRFdAob3uxwcEJTl9ryPJjyyJKsv5DbahYYG2Ickg/viewform?usp=pp_url&entry.323773105=1)
## Group Cases
Cases are orders submitted to Signifyd for review. A case contains payment, recipient, product, shipping, and account information.
## Create Case [/cases]
Submit an order for fraud review. We recommend sending as many data points as available for the best decision. If you are on a complete plan this will also automatically submit the order for guarantee.
### Create Case [POST]
+ Request (application/json)
+ Headers
Authorization: Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6
+ Attributes (CaseCreation)
+ Body
{
"deviceFingerprints": [
{
"provider": "threatmetrix",
"payload": "YWdlbnRfdHlwZT1icm93c2VyX2NvbXB1dGVyJmJyb3dzZXJfbGFuZ3VhZ2U9ZW4lMmRVUyUyY2VuJTNicSUzZDAlMmU4JmJyb3dzZXJfc3RyaW5nPU1vemlsbGElMmY1JTJlMCUyMCUyOFdpbmRvd3MlMjBOVCUyMDEwJTJlMCUzYiUyMFdPVzY0JTI5JTIwQXBwbGVXZWJLaXQlMmY1MzclMmUzNiUyMCUyOEtIVE1MJTJjJTIwbGlrZSUyMEdlY2tvJTI5JTIwQ2hyb21lJTJmNTAlMmUwJTJlMjY2MSUyZTk0JTIwU2FmYXJpJTJmNTM3JTJlMzYmYnJvd3Nlcl9zdHJpbmdfaGFzaD00YzM0NzFiYzgyOTUzODBjNTgxNGJjNWEyNzNiOWFjZCZicm93c2VyX3ZlcnNpb249NTAmY2lkcl9udW1iZXI9MCZjc3NfaW1hZ2VfbG9hZGVkPXllcyZjdXN0b21fcG9saWN5X3Njb3JlPSUyZDE1JmRldGVjdGVkX2ZsPXllcyZkZXZpY2VfZmlyc3Rfc2Vlbj0yMDE2JTJkMDElMmQyNiZkZXZpY2VfaWQ9MTIzNTQ2ZmU5Njc1NDk4Y2I5OGQxOTg3Mjk2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9uZV9kc3Rfb2Zmc2V0PTYwJnRydWVfaXA9MTY2JTJlMTcwJTJlMzklMmUxOTkmdHJ1ZV9pcF9hc3NlcnRfaGlzdG9yeT1ORUdBVElWRV9ISVNUT1JZJnRydWVfaXBfYXR0cmlidXRlcz1fV0FUQ0gmdHJ1ZV9pcF9jaXR5PXNhbiUyMGZyYW5jaXNjbyZ0cnVlX2lwX2ZpcnN0X3NlZW49MjAxNCUyZDA4JTJkMjEmdHJ1ZV9pcF9nZW89VVMmdHJ1ZV9pcF9pc3A9YXQlMjZ0JTIwd2lyZWxlc3MlMjBzZXJ2aWNlJnRydWVfaXBfbGFzdF9ldmVudD0yMDE2JTJkMDUlMmQxNCZ0cnVlX2lwX2xhc3RfdXBkYXRlPTIwMTYlMmQwNSUyZDE0JnRydWVfaXBfbGF0aXR1ZGU9MzclMmU3NjkxNyZ0cnVlX2lwX2xvbmdpdHVkZT0lMmQxMjIlMmU0NDI1MCZ0cnVlX2lwX29yZ2FuaXphdGlvbj1zZXJ2aWNlJTIwcHJvdmlkZXIlMjBjb3Jwb3JhdGlvbiZ0cnVlX2lwX3JlZ2lvbj1jYWxpZm9ybmlhJnRydWVfaXBfcmVzdWx0PXN1Y2Nlc3MmdHJ1ZV9pcF9zY29yZT0zJnRydWVfaXBfd29yc3Rfc2NvcmU9JTJkMzAmdWFfYnJvd3Nlcj1jaHJvbWUlMjA1MCUyZTAmdWFfb3M9d2luMTAmdWFfcGxhdGZvcm09Y2hyb21lJTIwNTAlMmUwDQo=",
"payloadEncoding": "utf8",
"payloadVersion": null
}
],
"policy": {
"name": "POST_AUTH"
},
"decisionRequest": {
"paymentFraud": "GUARANTEE"
},
"purchase": {
"orderSessionId": "uha3d98weicm20eufhlqe",
"orderId": "19418",
"checkoutToken": "b1946ac92492d2347c6235b4d2611184",
"browserIpAddress": "192.168.1.1",
"createdAt": "2019-07-11T17:54:31-05:00",
"currency": "USD",
"orderChannel": "PHONE",
"receivedBy": "John Doe",
"totalPrice": 74.99,
"products": [
{
"itemId": "1",
"itemName": "Sparkly sandals",
"itemIsDigital": false,
"itemCategory": "apparel",
"itemSubCategory": "footwear",
"itemUrl": "http://mydomain.com/sparkly-sandals",
"itemImage": "http://mydomain.com/images/sparkly-sandals.jpeg",
"itemQuantity": 1,
"itemPrice": 49.99,
"itemWeight": 5
},
{
"itemId": "2",
"itemName": "Summer tank top",
"itemIsDigital": false,
"itemCategory": "apparel",
"itemSubCategory": "shirts",
"itemUrl": "http://mydomain.com/summer-tank",
"itemImage": "http://mydomain.com/images/summer-tank.jpeg",
"itemQuantity": 1,
"itemPrice": 19.99,
"itemWeight": 2,
"itemSize": "M",
"rental": {
"id": "abc123",
"periodUnit": "MONTH",
"currentPeriod": 1,
"totalPeriods": 12,
"totalRetailValue": 24.99
},
{
"itemId": "3",
"itemName": "Coffee Beans",
"itemIsDigital": false,
"itemCategory": "beverage",
"itemSubCategory": "coffee",
"itemUrl": "http://mydomain.com/coffee-beans",
"itemImage": "http://mydomain.com/images/coffee-beans.jpeg",
"itemQuantity": 1,
"itemPrice": 8.99,
"itemWeight": 10,
"subscription": {
"id": "abc123",
"periodUnit": "MONTH",
"regularPeriodPrice": 8.99,
"currentPeriod": 1,
"totalPeriods": 12,
"totalRetailValue": 107.88
}
}
],
"discountCodes": [
{
"amount": 10.00,
"code": "TENDOLLARSOFF"
},
{
"percentage": 20,
"code": "20PERCENTOFF"
}
],
"shipments": [
{
"shipper": "UPS",
"shippingMethod": "ground",
"shippingPrice": 10
},
{
"shipper": "USPS",
"shippingMethod": "international",
"shippingPrice": 20
}
]
},
"recipients": [
{
"fullName": "Bob Smith",
"confirmationEmail": "bob@gmail.com",
"confirmationPhone": "5047130000",
"organization": "SIGNIFYD",
"deliveryAddress": {
"streetAddress": "123 State Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
{
"fullName": "Mary Smith",
"confirmationEmail": "mary@gmail.com",
"confirmationPhone": "5047120000",
"organization": "SIGNIFYD",
"deliveryAddress": {
"streetAddress": "123 State Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
}
],
"transactions": [
{
"parentTransactionId": null,
"transactionId": "1053198581844",
"createdAt": "2018-10-11T17:55:31-05:00",
"gateway": "Stripe",
"paymentMethod": "CREDIT_CARD",
"type": "AUTHORIZATION",
"gatewayStatusCode": "FAILURE",
"gatewayStatusMessage": "incorrect CVC number provided.",
"gatewayErrorCode": "INVALID_CVC",
"currency": "USD",
"amount": 700,
"avsResponseCode": "Y",
"cvvResponseCode": "N",
"paypalPendingReasonCode": null,
"paypalProtectionEligibility": null,
"paypalProtectionEligibilityType": null,
"checkoutPaymentDetails": {
"holderName": "John Wick",
"holderTaxId": "231.002.999-00",
"holderTaxCountry": "BR",
"cardBin": "403712",
"cardLast4": "3423",
"cardExpiryMonth": 12,
"cardExpiryYear": 2021,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": null,
"accountId": null,
"accountHolderName": null,
"accountHolderPhone": null,
"accountHolderEmail": null,
"accountHolderDob": null,
"accountHolderAnnualIncome": null,
"accountIsVerified": null,
"accountIsActive": null,
"accountCreditLine": null,
"accountBalance": null,
"billingAddress": {
"streetAddress": null,
"unit": null,
"city": null,
"provinceCode": null,
"postalCode": null,
"countryCode": null
}
}
},
{
"parentTransactionId": "1053198581844",
"transactionId": "1053198581844",
"createdAt": "2018-10-11T17:56:11-05:00",
"gateway": "Stripe",
"paymentMethod": "CREDIT_CARD",
"type": "AUTHORIZATION",
"gatewayStatusCode": "SUCCESS",
"gatewayStatusMessage": null,
"gatewayErrorCode": null,
"currency": "USD",
"amount": 700,
"avsResponseCode": "Y",
"cvvResponseCode": "M",
"paypalPendingReasonCode": null,
"paypalProtectionEligibility": null,
"paypalProtectionEligibilityType": null,
"checkoutPaymentDetails": {
"holderName": "John Wick",
"holderTaxId": "231.002.999-00",
"holderTaxCountry": "BR",
"cardBin": "403712",
"cardLast4": "3423",
"cardExpiryMonth": 12,
"cardExpiryYear": 2021,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": null,
"accountId": null,
"accountHolderName": null,
"accountHolderPhone": null,
"accountHolderEmail": null,
"accountHolderDob": null,
"accountHolderAnnualIncome": null,
"accountIsVerified": null,
"accountIsActive": null,
"accountCreditLine": null,
"accountBalance": null,
"billingAddress": {
"streetAddress": null,
"unit": null,
"city": null,
"provinceCode": null,
"postalCode": null,
"countryCode": null
}
}
},
{
"parentTransactionId": null,
"transactionId": "PAY-1B56960729604235TKQQIYVY",
"createdAt": "2018-10-11T17:55:41-05:00",
"gateway": "Paypal Express",
"paymentMethod": "PAYPAL_ACCOUNT",
"type": "AUTHORIZATION",
"gatewayStatusCode": "PENDING",
"gatewayStatusMessage": null,
"gatewayErrorCode": null,
"currency": "USD",
"amount": 100,
"avsResponseCode": null,
"cvvResponseCode": null,
"paypalPendingReasonCode": "VERIFICATION_REQUIRED",
"paypalProtectionEligibility": "ELIGIBLE",
"paypalProtectionEligibilityType": "ITEM_NOT_RECEIVED_ELIGIBLE",
"checkoutPaymentDetails": {
"holderName": "John Wick",
"cardBin": null,
"cardLast4": null,
"cardExpiryMonth": null,
"cardExpiryYear": null,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": "2015-10-11T17:55:41-05:00",
"accountId": "PUP87RBJV8HPU",
"accountHolderName": "John Wick",
"accountHolderPhone": "4088001000",
"accountHolderEmail": "john.wick@gmail.com",
"accountHolderDob": "1980-01-02",
"accountHolderAnnualIncome": null,
"accountIsVerified": true,
"accountIsActive": true,
"accountCreditLine": null,
"accountBalance": 300,
"billingAddress": {
"streetAddress": "10 Taylor Street",
"unit": null,
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
}
}
],
"customerOrderRecommendation": "REJECT",
"tags": ["wholesale", "march summer sale event"],
"userAccount": {
"email": "bob@gmail.com",
"username": "bobbo",
"phone": "5555551212",
"createdDate": "2013-01-18T17:54:31-05:00",
"accountNumber": "54321",
"lastOrderId": "4321",
"aggregateOrderCount": 40,
"aggregateOrderDollars": 5000,
"lastUpdateDate": "2013-01-18T17:54:31-05:00",
"rating": "200"
},
"seller": {
"name": "We sell awesome stuff, Inc.",
"email": "wesellawesomestuff@gmail.com",
"username": "awesomestuff1234",
"phone": "8883334545",
"domain": "wesellawesomestuff.com",
"createdDate": "2012-01-09T12:33:34-04:00",
"accountNumber": "54321",
"aggregateOrderCount": 4000,
"aggregateOrderDollars": 3000000.00,
"lastUpdateDate": "2019-07-22T07:22:33-04:00",
"onboardingIpAddress": "192.122.1.1",
"onboardingEmail": "wesellawesomestuff@gmail.com",
"tags": ["Enterprise Account", "Gold Plan"],
"rating": "12",
"shipFromAddress": {
"streetAddress": "1850 Mercer Rd",
"unit": null,
"city": "Lexington",
"provinceCode": "KY",
"postalCode": "40511",
"countryCode": "US"
},
"corporateAddress": {
"streetAddress": "410 Terry Ave",
"unit": "3L",
"city": "Seattle",
"provinceCode": "WA",
"postalCode": "98109",
"countryCode": "US"
}
}
}
+ Response 201 (application/json)
+ Body
{
"investigationId": 1
}
+ Response 400 (application/json)
+ Body
{
"errors": {
"purchase.browserIpAddress": [
"error.ip"
]
}
}
## Get Case [/cases/{caseId}]
Retrieve details about an individual case by investigation id or case id.
### Get Case [GET]
+ Parameters
+ caseId: 44 (integer) - The unique identifier for the case that you want to retrieve. This identifier is issued upon case creation.
+ Request
+ Headers
Authorization: Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6
+ Response 200 (application/json)
+ Attributes (Case)
+ Body
{
"caseId": 44,
"customerCaseId": "19418",
"createdAt": "2016-10-31T23:46:37+0000",
"updatedAt": "2017-06-09T21:03:26+0000",
"isTest": false,
"score": 776,
"checkpointAction": "ACCEPT",
"checkpointActionReason" : "MY_CUSTOMER_POLICY_A"
}
+ Response 404 (application/json)
+ Body
{
messages: [
"There is no case with that id, or you do not have permission to access it."
]
}
# Group Events
Events are used to notify Signifyd about key events that occur during the lifecycle of an order. These events are used to collect indictors about
## Order Fulfilled [/fulfillments/{orderId}]
A fulfillment represents a shipment of one or more items in an order. Submit fulfillments details for orders that you have shipped, even if the order is partially shipped. Fulfillments are used to improve decision performance and as proof of delivery for submitted chargebacks.
### Send Fulfillment [POST]
+ Parameters
+ orderId: "19418" (string) - the order id associated to a case that was previously created.
+ Request (application/json)
+ Headers
Authorization: Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6
+ Attribute (Fulfillments)
+ Body
{
"fulfillments":[
{
"id":"1002",
"orderId":"19418",
"createdAt":"2018-09-01T13:00:00Z",
"recipientName":"Bob Smith",
"deliveryEmail":"bob@gmail.com",
"fulfillmentStatus":"partial",
"shipmentStatus":"delivered",
"shippingCarrier":"UPS",
"trackingNumbers":[
"1Z827wk74630"
],
"trackingUrls":[
"http:\/\/wwwapps.ups.com\/etracking\/tracking.cgi?1Z827wk74630"
],
"products":[
{
"itemId":"1",
"itemName":"Sparkly sandals",
"itemIsDigital":false,
"itemCategory":"apparel",
"itemSubCategory":"footwear",
"itemUrl":"http://mydomain.com/sparkly-sandals",
"itemImage":"http://mydomain.com/images/sparkly-sandals.jpeg",
"itemQuantity":1,
"itemPrice":49.99,
"itemWeight":5
}
],
"deliveryAddress": {
"streetAddress": "123 State Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
},
"confirmationName": "ACME Ware House",
"confirmationPhone": 1231232
}
]
}
+ Response 200 (application/json)
+ Body
{
"fulfillments":[
{
"id":"1002",
"orderId":"19418",
"createdAt":"2018-09-01T13:00:00Z",
"recipientName":"Bob Smith",
"deliveryEmail":"bob@gmail.com",
"fulfillmentStatus":"partial",
"shipmentStatus":"delivered",
"shippingCarrier":"UPS",
"trackingNumbers":[
"1Z827wk74630"
],
"trackingUrls":[
"http:\/\/wwwapps.ups.com\/etracking\/tracking.cgi?1Z827wk74630"
],
"products":[
{
"itemId":"1",
"itemName":"Sparkly sandals",
"itemIsDigital":false,
"itemCategory":"apparel",
"itemSubCategory":"footwear",
"itemUrl":"http://mydomain.com/sparkly-sandals",
"itemImage":"http://mydomain.com/images/sparkly-sandals.jpeg",
"itemQuantity":1,
"itemPrice":49.99,
"itemWeight":5
}
]
}
]
}
## Payment Completed [/transactions]
A transaction represents an attempt to exchange money for an order. This is used to collect the details of the payment and the status of the payment, success or failure. This API should be used only if you are creating a [case](https://developer.signifyd.com/api/#/reference/cases/create-case) before collecting payment (pre-authorization).
### Send Transaction [POST]
+ Request (application/json)
+ Headers
Authorization: Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6
+ Attributes (CreateTransactions)
+ Body
{
"checkoutToken": "b1946ac92492d2347c6235b4d2611184",
"transactions": [
{
"parentTransactionId": null,
"transactionId": "1053198581844",
"createdAt": "2018-10-11T17:55:31-05:00",
"gateway": "Stripe",
"paymentMethod": "CREDIT_CARD",
"type": "AUTHORIZATION",
"gatewayStatusCode": "FAILURE",
"gatewayStatusMessage": "incorrect CVC number provided.",
"gatewayErrorCode": "INVALID_CVC",
"currency": "USD",
"amount": 700,
"avsResponseCode": "Y",
"cvvResponseCode": "N",
"paypalPendingReasonCode": null,
"paypalProtectionEligibility": null,
"paypalProtectionEligibilityType": null,
"checkoutPaymentDetails": {
"holderName": "John Wick",
"holderTaxId": "231.002.999-00",
"holderTaxCountry": "BR",
"cardBin": "403712",
"cardLast4": "3423",
"cardExpiryMonth": 12,
"cardExpiryYear": 2021,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": null,
"accountId": null,
"accountHolderName": null,
"accountHolderPhone": null,
"accountHolderEmail": null,
"accountHolderDob": null,
"accountHolderAnnualIncome": null,
"accountIsVerified": null,
"accountIsActive": null,
"accountCreditLine": null,
"accountBalance": null,
"billingAddress": {
"streetAddress": null,
"unit": null,
"city": null,
"provinceCode": null,
"postalCode": null,
"countryCode": null
}
}
},
{
"parentTransactionId": "1053198581844",
"transactionId": "1053198581844",
"createdAt": "2018-10-11T17:56:11-05:00",
"gateway": "Stripe",
"paymentMethod": "CREDIT_CARD",
"type": "AUTHORIZATION",
"gatewayStatusCode": "SUCCESS",
"gatewayStatusMessage": null,
"gatewayErrorCode": null,
"currency": "USD",
"amount": 700,
"avsResponseCode": "Y",
"cvvResponseCode": "M",
"paypalPendingReasonCode": null,
"paypalProtectionEligibility": null,
"paypalProtectionEligibilityType": null,
"checkoutPaymentDetails": {
"holderName": "John Wick",
"holderTaxId": "231.002.999-00",
"holderTaxCountry": "BR",
"cardBin": "403712",
"cardLast4": "3423",
"cardExpiryMonth": 12,
"cardExpiryYear": 2021,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": null,
"accountId": null,
"accountHolderName": null,
"accountHolderPhone": null,
"accountHolderEmail": null,
"accountHolderDob": null,
"accountHolderAnnualIncome": null,
"accountIsVerified": null,
"accountIsActive": null,
"accountCreditLine": null,
"accountBalance": null,
"billingAddress": {
"streetAddress": null,
"unit": null,
"city": null,
"provinceCode": null,
"postalCode": null,
"countryCode": null
}
}
},
{
"parentTransactionId": null,
"transactionId": "PAY-1B56960729604235TKQQIYVY",
"createdAt": "2018-10-11T17:55:41-05:00",
"gateway": "Paypal Express",
"paymentMethod": "PAYPAL_ACCOUNT",
"type": "AUTHORIZATION",
"gatewayStatusCode": "PENDING",
"gatewayStatusMessage": null,
"gatewayErrorCode": null,
"currency": "USD",
"amount": 100,
"avsResponseCode": null,
"cvvResponseCode": null,
"paypalPendingReasonCode": "VERIFICATION_REQUIRED",
"paypalProtectionEligibility": "ELIGIBLE",
"paypalProtectionEligibilityType": "ITEM_NOT_RECEIVED_ELIGIBLE",
"checkoutPaymentDetails": {
"holderName": "John Wick",
"cardBin": null,
"cardLast4": null,
"cardExpiryMonth": null,
"cardExpiryYear": null,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": "2015-10-11T17:55:41-05:00",
"accountId": "PUP87RBJV8HPU",
"accountHolderName": "John Wick",
"accountHolderPhone": "4088001000",
"accountHolderEmail": "john.wick@gmail.com",
"accountHolderDob": "1980-01-02",
"accountHolderAnnualIncome": null,
"accountIsVerified": true,
"accountIsActive": true,
"accountCreditLine": null,
"accountBalance": 300,
"billingAddress": {
"streetAddress": "10 Taylor Street",
"unit": null,
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
}
}
]
}
+ Response 200 (application/json)
+ Body
{
"checkoutToken": "b1946ac92492d2347c6235b4d2611184",
"transactions": [
{
"parentTransactionId": null,
"transactionId": "1053198581844",
"createdAt": "2018-10-11T17:55:31-05:00",
"gateway": "Stripe",
"paymentMethod": "CREDIT_CARD",
"type": "AUTHORIZATION",
"gatewayStatusCode": "FAILURE",
"gatewayStatusMessage": "incorrect CVC number provided.",
"gatewayErrorCode": "INVALID_CVC",
"currency": "USD",
"amount": 700,
"avsResponseCode": "Y",
"cvvResponseCode": "N",
"paypalPendingReasonCode": null,
"paypalProtectionEligibility": null,
"paypalProtectionEligibilityType": null,
"checkoutPaymentDetails": {
"holderName": "John Wick",
"holderTaxId": "231.002.999-00",
"holderTaxCountry": "BR",
"cardBin": "403712",
"cardLast4": "3423",
"cardExpiryMonth": 12,
"cardExpiryYear": 2021,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": null,
"accountId": null,
"accountHolderName": null,
"accountHolderPhone": null,
"accountHolderEmail": null,
"accountHolderDob": null,
"accountHolderAnnualIncome": null,
"accountIsVerified": null,
"accountIsActive": null,
"accountCreditLine": null,
"accountBalance": null,
"billingAddress": {
"streetAddress": null,
"unit": null,
"city": null,
"provinceCode": null,
"postalCode": null,
"countryCode": null
}
}
},
{
"parentTransactionId": "1053198581844",
"transactionId": "1053198581844",
"createdAt": "2018-10-11T17:56:11-05:00",
"gateway": "Stripe",
"paymentMethod": "CREDIT_CARD",
"type": "AUTHORIZATION",
"gatewayStatusCode": "SUCCESS",
"gatewayStatusMessage": null,
"gatewayErrorCode": null,
"currency": "USD",
"amount": 700,
"avsResponseCode": "Y",
"cvvResponseCode": "M",
"paypalPendingReasonCode": null,
"paypalProtectionEligibility": null,
"paypalProtectionEligibilityType": null,
"checkoutPaymentDetails": {
"holderName": "John Wick",
"holderTaxId": "231.002.999-00",
"holderTaxCountry": "BR",
"cardBin": "403712",
"cardLast4": "3423",
"cardExpiryMonth": 12,
"cardExpiryYear": 2021,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": null,
"accountId": null,
"accountHolderName": null,
"accountHolderPhone": null,
"accountHolderEmail": null,
"accountHolderDob": null,
"accountHolderAnnualIncome": null,
"accountIsVerified": null,
"accountIsActive": null,
"accountCreditLine": null,
"accountBalance": null,
"billingAddress": {
"streetAddress": null,
"unit": null,
"city": null,
"provinceCode": null,
"postalCode": null,
"countryCode": null
}
}
},
{
"parentTransactionId": null,
"transactionId": "PAY-1B56960729604235TKQQIYVY",
"createdAt": "2018-10-11T17:55:41-05:00",
"gateway": "Paypal Express",
"paymentMethod": "PAYPAL_ACCOUNT",
"type": "AUTHORIZATION",
"gatewayStatusCode": "PENDING",
"gatewayStatusMessage": null,
"gatewayErrorCode": null,
"currency": "USD",
"amount": 100,
"avsResponseCode": null,
"cvvResponseCode": null,
"paypalPendingReasonCode": "VERIFICATION_REQUIRED",
"paypalProtectionEligibility": "ELIGIBLE",
"paypalProtectionEligibilityType": "ITEM_NOT_RECEIVED_ELIGIBLE",
"checkoutPaymentDetails": {
"holderName": "John Wick",
"cardBin": null,
"cardLast4": null,
"cardExpiryMonth": null,
"cardExpiryYear": null,
"bankAccountNumber": null,
"bankRoutingNumber": null,
"billingAddress": {
"streetAddress": "1800 Vine Street",
"unit": "2A",
"city": "Chicago",
"provinceCode": "IL",
"postalCode": "60622",
"countryCode": "US"
}
},
"paymentAccountHolder": {
"accountCreatedAt": "2015-10-11T17:55:41-05:00",
"accountId": "PUP87RBJV8HPU",
"accountHolderName": "John Wick",
"accountHolderPhone": "4088001000",
"accountHolderEmail": "john.wick@gmail.com",
"accountHolderDob": "1980-01-02",