-
Notifications
You must be signed in to change notification settings - Fork 1
/
Currency-Conversion-2021-03-22.v1.yaml
2225 lines (2225 loc) · 98.2 KB
/
Currency-Conversion-2021-03-22.v1.yaml
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: Currency Conversions
description: 'Currency Conversions represent the conversion, or attempt to convert, a Transaction amount to the equivalent amount in the currency of the Payer. This is referred to as DCC for Dynamic Currency Conversion'
contact:
name: API Integrations
url: 'https://developer.globalpay.com'
email: [email protected]
version: 2021 03 22
servers:
- url: 'https://apis.sandbox.globalpay.com/ucp'
description: Sandbox Environment
- url: 'https://apis.globalpay.com/ucp'
description: Production Environment
tags:
- name: Convert Transaction Amount
description: Request the conversion of a Sale or Refund Transaction amount to the equivalent amount in the currency of the Payer.
- name: BIN Ranges List Download
description: Download a list of BIN ranges that support Dynamic Currency Conversion (DCC).
paths:
/currency-conversions:
post:
operationId: requestDCC
tags:
- Convert Transaction Amount
summary: Request the conversion of a Sale or Refund Transaction amount to the equivalent amount in the currency of the Payer.
description: Request the conversion of a Sale or Refund Transaction amount to the equivalent amount in the currency of the Payer.
parameters:
- name: Authorization
in: header
required: true
description: Bearer access token value used to access the API.
schema:
description: Bearer access token value used to access the API.
type: string
default: Bearer G3FA4TuYGCBiCWs4YpzrALGCYXZJ
example: Bearer G3FA4TuYGCBiCWs4YpzrALGCYXZJ
- in: header
name: X-GP-Idempotency
description: Integrator generated value submitted in the request header that is checked to ensure the same value has not been seen in the last 24 hours. It is used to ensure idempotency is maintained with this action.
schema:
description: Integrator generated value submitted in the request header that is checked to ensure the same value has not been seen in the last 24 hours. It is used to ensure idempotency is maintained with this action.
type: string
minLength: 1
maxLength: 50
- in: header
name: X-GP-Version
required: true
schema:
description: Indicates the version of the GP-API for this message.
type: string
default: '2021-03-22'
minLength: 1
maxLength: 50
description: The version of the API to execute the request.
- in: header
name: Content-type
description: Format of the message.
required: true
schema:
description: Indicates the format of the message.
type: string
default: application/json
requestBody:
content:
application/json:
schema:
required:
- account_name
- amount
- channel
- country
- currency
- payment_method
- reference
type: object
properties:
account_name:
type: string
description: A meaningful label for the merchant account set by Global Payments.
example: DCC
minLength: 1
maxLength: 50
transaction_type:
type: string
description: |
Describes whether the transaction is a SALE, that moves funds from Payer to Merchant, or a REFUND where funds move from Merchant to Payer.
* SALE - indicates the movement, or the attempt to move, funds from payer to a merchant.
* REFUND - indicates the movement, or the attempt to move, funds from merchant to the payer.
example: SALE
default: SALE
enum:
- SALE
- REFUND
channel:
type: string
description: |
Describes whether the transaction was processed in a face to face(CP) scenario or a Customer Not Present (CNP) scenario.
* CP - A Customer Present transaction is when the payer and the merchant are in direct face to face contact when exchanging payment method information to fulfill a transaction. e.g. in a store and paying at the counter that is attended by a clerk.
* CNP - A Customer NOT Present transaction is when the payer and the merchant are not together when exchanging payment method information to fulfill a transaction. e.g. a transaction executed from a merchant's website or over the phone
example: CNP
enum:
- CP
- CNP
country:
type: string
description: The country in ISO-3166-1(alpha-2 code) format.
example: US
minLength: 1
maxLength: 255
amount:
type: string
description: The amount to transfer between Payer and Merchant for a SALE or a REFUND. It is always represented in the lowest denomiation of the related currency.
example: '11099'
currency:
type: string
description: The currency of the amount in ISO-4217(alpha-3)
example: USD
minLength: 3
maxLength: 3
reference:
type: string
description: Merchant defined field to reference the transaction.
minLength: 8
maxLength: 50
example: becf9f3e-4d33-459c-8ed2-0c4affc9555e
payment_method:
type: object
properties:
entry_mode:
type: string
description: |
Indicates how the payment method information was obtained by the Merchant for this transaction.
* MOTO - A CNP channel entry mode where the payment method information was obtained over the phone or via postal mail.
* ECOM - A CNP channel entry mode where the payment method was obtained via a browser.
* IN_APP - A CNP channel entry mode where the payment method was obtained via an application and applies to digital wallets only.
* CHIP - A CP channel entry mode where the payment method information was obtained from a chip. E.g. card is inserted into a device to read the chip.
* SWIPE - A CP channel entry mode where the payment method information was obtained from swiping a magnetic strip. E.g. card's magnetic strip is swiped through a device to read the card information.
* MANUAL - A CP channel entry mode where the payment method information was obtained by manually keying the payment method information into the device.
* CONTACTLESS_CHIP - A CP channel entry mode where the payment method information was obtained by bringing the payment method to close proximity of a device. E.g. tap a cardon or near a device to exchange card information.
* CONTACTLESS_SWIPE - A CP channel entry mode where the payment method information was obtained by bringing the payment method to close proximity of a device and also swiping the card. E.g. tap a card on or near a device and swipe it through device to exchange card information
* PHONE - A CNP channel entry mode where the payment method was obtained over the phone.
* MAIL - A CNP channel entry mode where the payment method was obtained via postal mail.
example: ECOM
enum:
- MOTO
- ECOM
- IN_APP
- CHIP
- SWIPE
- MANUAL
- PHONE
- MAIL
- CONTACTLESS_CHIP
- CONTACTLESS_SWIPE
minLength: 1
maxLength: 50
card:
type: object
properties:
number:
type: string
description: The the card account number used to authorize the transaction. Also known as PAN.
example: '4263970000005262'
minLength: 1
maxLength: 50
expiry_month:
type: string
description: The 2 digit expiry date month of the card.
example: '05'
minLength: 2
maxLength: 2
expiry_year:
type: string
description: The 2 digit expiry date year of the card.
example: '25'
minLength: 2
maxLength: 2
examples:
DCC Rate Available:
value:
account_name: DCC
channel: CNP
amount: '10000'
currency: USD
country: US
reference: becf9f3e-4d33-459c-8ed2-0c4affc9555e
payment_method:
name: James Mason
entry_mode: ECOM
card:
number: '4006097467207025'
expiry_month: '05'
expiry_year: '25'
DCC Rate Not Available:
value:
account_name: DCC
channel: CNP
amount: '10000'
currency: USD
country: US
reference: becf9f3e-4d33-459c-8ed2-0c4affc9555e
payment_method:
name: James Mason
entry_mode: ECOM
card:
number: '4263970000005262'
expiry_month: '05'
expiry_year: '25'
required: true
responses:
'200':
description: OK
headers:
Content-Type:
schema:
description: Indicates the format of the message.
type: string
default: application/json
Content-Encoding:
schema:
description: Indicates if the message is compressed and using what compression mechanism.
type: string
default: gzip
X-GP-Idempotency:
schema:
description: Integrator generated value submitted in the request header that is checked to ensure the same value has not been seen in the last 24 hours. It is used to ensure idempotency is maintained with this action.
type: string
minLength: 1
maxLength: 50
X-GP-Version:
schema:
description: Indicates the version of the GP-API for this message.
type: string
default: '2021-03-22'
minLength: 1
maxLength: 50
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: A unique identifier generated by Global Payments to identify the transaction.
example: TRN_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d
minLength: 4
maxLength: 100
time_created:
type: string
format: date-time
description: Global Payments time indicating when the object was created in ISO-8601 format.
example: '2021-05-03T21:23:39.718Z'
model:
type: string
description: |
The currency exchange rate model used.
* FROM_TRANSACTION_CURRENCY - indicates the conversion was executed using from the currency and amount of the transaction.
enum:
- FROM_TRANSACTION_CURRENCY
minLength: 0
maxLength: 50
status:
type: string
description: |
Indicates where the currency conversion is in its lifecycle
* AVAILABLE - A currency conversion is available. The next step is to offer the conversion details to the end user.
* NOT_AVAILABLE - A currency conversion is not available.
enum:
- AVAILABLE
- NOT_AVAILABLE
minLength: 0
maxLength: 50
country:
type: string
description: The country in ISO-3166-1(alpha-2 code) format.
example: US
minLength: 1
maxLength: 255
transaction_type:
type: string
description: |
Describes whether the transaction is a SALE, that moves funds from Payer to Merchant, or a REFUND where funds move from Merchant to Payer.
* SALE - indicates the movement, or the attempt to move, funds from payer to a merchant.
* REFUND - indicates the movement, or the attempt to move, funds from merchant to the payer.
example: SALE
default: SALE
enum:
- SALE
- REFUND
channel:
type: string
description: |
Describes whether the transaction was processed in a face to face(CP) scenario or a Customer Not Present (CNP) scenario.
* CP - A Customer Present transaction is when the payer and the merchant are in direct face to face contact when exchanging payment method information to fulfill a transaction. e.g. in a store and paying at the counter that is attended by a clerk.
* CNP - A Customer NOT Present transaction is when the payer and the merchant are not together when exchanging payment method information to fulfill a transaction. e.g. a transaction executed from a merchant's website or over the phone
example: CNP
enum:
- CP
- CNP
amount:
type: string
description: The amount to transfer between Payer and Merchant for a SALE or a REFUND. It is always represented in the lowest denomiation of the related currency.
example: '11099'
currency:
type: string
description: The currency of the amount in ISO-4217(alpha-3)
example: USD
minLength: 3
maxLength: 3
minor_units:
x-stoplight:
id: 1mzyhnb2pp9a2
type: string
example: '2'
description: The number of decimal places of the payer currency. This field is intended for formatting and display purposes only.
enum:
- '0'
- '2'
- '3'
formatted_amount:
x-stoplight:
id: 6q27feep0j54p
type: string
description: The payer amount formatted according to the number of minor units (decimal places) of that currency. This field is intended for formatting and display purposes only.
example: '105.55'
exchange_rate:
type: string
description: The exchange rate used to convert one currency to another.
minLength: 0
maxLength: 50
example: '1.8117'
payer_amount:
type: string
description: The amount that will affect the payer's account.
minLength: 0
maxLength: 50
example: '223665'
payer_currency:
type: string
description: The currency of the amount that will affect the payer's account.
minLength: 0
maxLength: 50
example: AUD
margin_rate_percentage:
type: string
description: The exchange rate used to convert one currency to another.
minLength: 0
maxLength: 50
example: '03.7500'
exchange_rate_source:
type: string
description: The source of the base exchange rate was obtained to execute the currency conversion.
minLength: 0
maxLength: 50
example: REUTERS WHOLESALE INTERBANK
exchange_rate_time_created:
type: string
description: The time the base exchange rate was obtained from the source.
minLength: 0
maxLength: 50
example: '2018-08-20T11:18'
commission_percentage:
type: string
description: The percentage commission taken for providing the currency conversion.
minLength: 0
maxLength: 50
example: '00.0000'
merchant_id:
type: string
description: A unique identifier for the merchant set by Global Payments.
example: MER_c4c0df11039c48a9b63701adeaa296c3
minLength: 1
maxLength: 50
merchant_name:
type: string
description: A meaningful label for the merchant set by Global Payments.
example: Sandbox_merchant_2
minLength: 1
maxLength: 50
account_id:
type: string
description: A unique identifier for the merchant account set by Global Payments.
minLength: 1
maxLength: 50
example: TRA_86920f927028745yt34d077d88beb29b
account_name:
type: string
description: A meaningful label for the merchant account set by Global Payments.
minLength: 1
maxLength: 50
example: transaction_processing
reference:
type: string
description: Merchant defined field to reference the transaction.
minLength: 8
maxLength: 50
example: becf9f3e-4d33-459c-8ed2-0c4affc9555e
payment_method:
type: object
properties:
result:
type: string
example: '00'
description: Result code from the payment method provider.
message:
type: string
example: Successful
description: Result message from the payment method provider corresponding to the result code.
entry_mode:
type: string
description: |
Indicates how the payment method information was obtained by the Merchant for this transaction.
* MOTO - A CNP channel entry mode where the payment method information was obtained over the phone or via postal mail.
* ECOM - A CNP channel entry mode where the payment method was obtained via a browser.
* IN_APP - A CNP channel entry mode where the payment method was obtained via an application and applies to digital wallets only.
* CHIP - A CP channel entry mode where the payment method information was obtained from a chip. E.g. card is inserted into a device to read the chip.
* SWIPE - A CP channel entry mode where the payment method information was obtained from swiping a magnetic strip. E.g. card's magnetic strip is swiped through a device to read the card information.
* MANUAL - A CP channel entry mode where the payment method information was obtained by manually keying the payment method information into the device.
* CONTACTLESS_CHIP - A CP channel entry mode where the payment method information was obtained by bringing the payment method to close proximity of a device. E.g. tap a cardon or near a device to exchange card information.
* CONTACTLESS_SWIPE - A CP channel entry mode where the payment method information was obtained by bringing the payment method to close proximity of a device and also swiping the card. E.g. tap a card on or near a device and swipe it through device to exchange card information
* PHONE - A CNP channel entry mode where the payment method was obtained over the phone.
* MAIL - A CNP channel entry mode where the payment method was obtained via postal mail.
example: ECOM
enum:
- MOTO
- ECOM
- IN_APP
- CHIP
- SWIPE
- MANUAL
- PHONE
- MAIL
- CONTACTLESS_CHIP
- CONTACTLESS_SWIPE
minLength: 1
maxLength: 50
card:
type: object
properties:
masked_number_last4:
type: string
description: Masked card number with last 4 digits.
minLength: 12
maxLength: 50
example: XXXXXXXXXXXX7025
brand:
type: string
description: Indicates the card brand that issued the card.
enum:
- VISA
- MASTERCARD
- AMEX
- DINERS
- DISCOVER
- JCB
- CUP
minLength: 0
maxLength: 50
action:
type: object
description: Information about the Action executed.
properties:
id:
type: string
description: A unique identifier generated by Global Payments to identify an action.
example: ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d
minLength: 1
maxLength: 50
type:
type: string
description: Indicates the action taken.
time_created:
type: string
format: date-time
description: Global Payments time indicating when the object was created in ISO-8601 format.
example: '2021-05-03T21:23:39.718Z'
result_code:
type: string
description: The result of the action executed.
enum:
- SUCCESS
- DECLINE
minLength: 1
maxLength: 50
app_id:
type: string
description: The id of the app that was used to create the token.
example: U1lRHKomEn7DN907RCDPxVhyMfiMLcfy
minLength: 1
maxLength: 50
app_name:
type: string
description: The name of the app the user gave to the application.
example: demo_app
minLength: 1
maxLength: 50
'400':
description: Bad Request
content:
application/json:
schema:
description: Bad Request
type: object
properties:
error_code:
type: string
description: This indicates an issue with the API request.
example: MANDATORY_DATA_MISSING
enum:
- DUPLICATE_TRANSACTION
- INVALID_BATCH_ACTION
- INVALID_REQUEST_DATA
- INVALID_TRANSACTION_ACTION
- MANDATORY_DATA_MISSING
- TRANSACTION_NOT_FOUND
detailed_error_code:
type: string
description: Unique reference to identify the error.
example: '40016'
enum:
- '40016'
detailed_error_description:
type: string
description: Unique Text describing the specific error.
example: Bad track data
'401':
description: Not Authenticated
content:
application/json:
schema:
description: Not Authenticated
type: object
properties:
error_code:
type: string
description: This action failed as token in the request is not valid.
example: NOT_AUTHENTICATED
enum:
- NOT_AUTHENTICATED
detailed_error_code:
type: string
description: Unique reference to identify the error.
example: '40001'
enum:
- '40001'
- '40002'
detailed_error_description:
type: string
description: Unique Text describing the specific error.
example: Invalid Access Token
'403':
description: Forbidden
content:
application/json:
schema:
description: Forbidden
type: object
properties:
error_code:
type: string
description: This action is not authorized with the credentials being used.
example: ACTION_NOT_AUTHORIZED
enum:
- ACTION_NOT_AUTHORIZED
detailed_error_code:
type: string
description: Unique reference to identify the error.
example: '40003'
enum:
- '40003'
- '40004'
detailed_error_description:
type: string
description: Unique Text describing the specific error.
example: Permission not enabled to execute action
'404':
description: Resource Not Found
content: {}
'500':
description: Internal Server Error
content:
application/json:
schema:
description: Internal Server Error
type: object
properties:
error_code:
type: string
description: This indicates an unexpected issue occurred on the Global Payments system.
example: SYSTEM_ERROR_DOWNSTREAM
enum:
- SYSTEM_ERROR_DOWNSTREAM
detailed_error_code:
type: string
description: Unique reference to identify the error.
example: '50011'
enum:
- '50011'
detailed_error_description:
type: string
description: Unique Text describing the specific error.
example: Processor Configuration error
'501':
description: Not implemented
content:
application/json:
schema:
description: Not implemented
type: object
properties:
error_code:
type: string
description: This is an error not yet handled or mapped properly.
example: UNKNOWN_RESPONSE
enum:
- UNKNOWN_RESPONSE
detailed_error_code:
type: string
description: Unique reference to identify the error.
example: '50012'
enum:
- '50012'
detailed_error_description:
type: string
description: 'Unique Text describing the specific error not yet handled. '
'502':
description: Bad Gateway
content:
application/json:
schema:
description: Bad Gateway
type: object
properties:
error_code:
type: string
description: This is an error indicating there was an issue connecting to a partner system..
example: UNAUTHORIZED_DOWNSTREAM
enum:
- UNAUTHORIZED_DOWNSTREAM
detailed_error_code:
type: string
description: Unique reference to identify the error.
example: '50002'
enum:
- '50002'
detailed_error_description:
type: string
description: Authentication error—Verify and correct credentials.
'504':
description: Timeout
content:
application/json:
schema:
description: Timeout
type: object
properties:
error_code:
type: string
description: This is an error indicating there was a timeout issue to another system.
example: TIMEOUT_DOWNSTREAM
enum:
- TIMEOUT_DOWNSTREAM
detailed_error_code:
type: string
description: Unique reference to identify the error.
example: '50008'
enum:
- '50008'
detailed_error_description:
type: string
description: No response from payment method provider.
parameters: []
/currency-conversions/dcc-bin-ranges:
get:
summary: Download a list of Dynamic Currency Conversion (DCC) BIN ranges.
operationId: Download-DCC-BIN-Ranges-List
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
time_created:
type: string
format: date-time
description: Global Payments time indicating when the object was created in ISO-8601 format.
example: '2021-05-03T21:23:39.718Z'
is_last_page:
type: string
description: Indicates whether there are more pages of BIN ranges available.
example: 'NO'
enum:
- 'YES'
- 'NO'
time_retrieved:
x-stoplight:
id: e38v0cr2whtgq
type: string
description: 'Date the BIN ranges were obtained. For subsequent requests if this date is provided, only updates after this date will be returned. '
current_index:
type: number
description: The current index of the BIN table that has been returned. Can be used to obtain the next set of values by passing it as a search parameter in last_index.
example: 20
current_page_size:
type: number
description: The total number of records returned on the current page. If current_page_size is less than the page_size using in the querystring then this is the final page for that search.
maximum: 1000
minimum: 1
default: 1
merchant_id:
type: string
description: A unique identifier for the merchant set by Global Payments.
example: MER_c4c0df11039c48a9b63701adeaa296c3
minLength: 1
maxLength: 50
merchant_name:
type: string
description: A meaningful label for the merchant set by Global Payments.
example: Sandbox_merchant_2
minLength: 1
maxLength: 50
account_id:
type: string
description: A unique identifier for the merchant account set by Global Payments.
minLength: 1
maxLength: 50
example: TRA_86920f927028745yt34d077d88beb29b
account_name:
type: string
description: A meaningful label for the merchant account set by Global Payments.
minLength: 1
maxLength: 50
example: transaction_processing
paging:
type: object
description: Standard paging is not supported for this request type.
filter:
type: object
properties:
country:
type: string
description: The country in ISO-3166-1(alpha-2 code) format.
example: US
minLength: 1
maxLength: 255
merchant_currency:
type: string
description: The base currency of the merchant in ISO-4217(alpha-3).
example: USD
payer_currency:
type: array
description: The currency or list of currencies that the merchant accepts in ISO-4217(alpha-3).
example:
- GBP
- EUR
x-examples: {}
items:
type: string
example: '["GBP","EUR"]'
title: ''
dcc_bin_ranges:
type: array
uniqueItems: true
minItems: 1
items:
type: object
properties:
low_prefix_number:
type: string
description: Lower limit of the BIN range.
example: '2222420010'
high_prefix_number:
type: string
description: Higher limit of the BIN range.
example: '2222420269'
status:
type: string
enum:
- ACTIVE
- INACTIVE
example: ACTIVE
description: The status of the BIN ranges. Can be ACTIVE or INACTIVE.
action:
type: object
properties:
id:
type: string
description: A unique identifier generated by Global Payments to identify an action.
example: ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d
minLength: 1
maxLength: 50
type:
type: string
description: The type of action executed.
example: PREAUTHORIZE
enum:
- AUTHORIZE
- PREAUTHORIZE
- DCC_BIN_RANGE_LIST
time_created:
type: string
format: date-time
description: Global Payments time indicating when the object was created in ISO-8601 format.
example: '2021-05-03T21:23:39.718Z'
result_code:
type: string
description: The result of the action executed.
enum:
- SUCCESS
- DECLINE
minLength: 1
maxLength: 50
app_id:
type: string
description: The id of the app that was used to create the token.
example: U1lRHKomEn7DN907RCDPxVhyMfiMLcfy
minLength: 1
maxLength: 50
app_name:
type: string
description: The name of the app the user gave to the application.
example: demo_app
minLength: 1
maxLength: 50
examples:
Merchant Currency Only:
value:
time_created: '2022-04-11T13:29:10.596Z'
is_last_page: 'NO'
time_retrieved: '2022-04-11'
current_index: 40
current_page_size: 20
merchant_id: MER_c4c0df11039c48a9b63701adeaa296c3
merchant_name: Sandbox_merchant_2
account_id: TRA_d9eea42b1f30482cae161c732d837ed6
account_name: Transaction_Processing
filter:
country: GB
merchant_currency: GBP
paging: {}
dcc_bin_ranges:
- low_prefix_number: '2222420010'
high_prefix_number: '2222420269'
status: ACTIVE
- low_prefix_number: '2222650010'
high_prefix_number: '2222650129'
status: ACTIVE
- low_prefix_number: '2222670010'
high_prefix_number: '2222670129'
status: ACTIVE
- low_prefix_number: '2222680130'
high_prefix_number: '2222740129'
status: ACTIVE
- low_prefix_number: '2222750130'
high_prefix_number: '2222760159'
status: ACTIVE
- low_prefix_number: '2222780010'
high_prefix_number: '2222780159'
status: ACTIVE
- low_prefix_number: '2222820010'
high_prefix_number: '2222840129'
status: ACTIVE
- low_prefix_number: '2222860010'
high_prefix_number: '2222870129'
status: ACTIVE
- low_prefix_number: '2223290010'
high_prefix_number: '2223290159'
status: ACTIVE
- low_prefix_number: '2223330010'
high_prefix_number: '2223340129'
status: ACTIVE
- low_prefix_number: '2223360010'
high_prefix_number: '2223360129'
status: ACTIVE
- low_prefix_number: '2223400010'
high_prefix_number: '2223400129'
status: ACTIVE
- low_prefix_number: '2223420010'
high_prefix_number: '2223420129'
status: ACTIVE
- low_prefix_number: '2223440010'
high_prefix_number: '2223460129'
status: ACTIVE
- low_prefix_number: '2223590300'
high_prefix_number: '2223590300'
status: ACTIVE
- low_prefix_number: '2223600089'
high_prefix_number: '2223600089'
status: ACTIVE
- low_prefix_number: '2226789800'
high_prefix_number: '2226789999'
status: ACTIVE
- low_prefix_number: '2233160010'
high_prefix_number: '2233160019'
status: ACTIVE
- low_prefix_number: '2308270002'
high_prefix_number: '2308270009'
status: ACTIVE
- low_prefix_number: '2720020100'
high_prefix_number: '2720022099'
status: ACTIVE
action:
id: ACT_Kq7jZogQ5mRsY4yvwXguw3iizKGUdI
type: DCC_BIN_RANGE_LIST
time_created: '2022-04-11T17:48:14.215Z'
result_code: SUCCESS
app_id: Cu7y0m3XmoACrLohnRyDHVgRS4sC7hS5
app_name: DCCPP
Payer Currency:
value:
time_created: '2022-04-11T13:29:10.596Z'
is_last_page: 'NO'
time_retrieved: '2022-04-11'
current_index: 40
current_page_size: 20
merchant_id: MER_c4c0df11039c48a9b63701adeaa296c3
merchant_name: Sandbox_merchant_2
account_id: TRA_d9eea42b1f30482cae161c732d837ed6
account_name: Transaction_Processing
filter:
country: US
merchant_currency: USD
payer_currency:
- EUR
- GBP
paging: {}
dcc_bin_ranges:
- low_prefix_number: '2222420010'
high_prefix_number: '2222420269'
status: ACTIVE
- low_prefix_number: '2222650010'
high_prefix_number: '2222650129'
status: ACTIVE
- low_prefix_number: '2222670010'
high_prefix_number: '2222670129'
status: ACTIVE
- low_prefix_number: '2222680130'
high_prefix_number: '2222740129'
status: ACTIVE
- low_prefix_number: '2222750130'
high_prefix_number: '2222760159'
status: ACTIVE
- low_prefix_number: '2222780010'
high_prefix_number: '2222780159'
status: ACTIVE
- low_prefix_number: '2222820010'
high_prefix_number: '2222840129'
status: ACTIVE
- low_prefix_number: '2222860010'
high_prefix_number: '2222870129'
status: ACTIVE
- low_prefix_number: '2223290010'
high_prefix_number: '2223290159'
status: ACTIVE
- low_prefix_number: '2223330010'
high_prefix_number: '2223340129'
status: ACTIVE
- low_prefix_number: '2223360010'
high_prefix_number: '2223360129'
status: ACTIVE
- low_prefix_number: '2223400010'
high_prefix_number: '2223400129'
status: ACTIVE
- low_prefix_number: '2223420010'
high_prefix_number: '2223420129'
status: ACTIVE
- low_prefix_number: '2223440010'
high_prefix_number: '2223460129'
status: ACTIVE
- low_prefix_number: '2223590300'
high_prefix_number: '2223590300'
status: ACTIVE
- low_prefix_number: '2223600089'
high_prefix_number: '2223600089'
status: ACTIVE
- low_prefix_number: '2226789800'
high_prefix_number: '2226789999'
status: ACTIVE
- low_prefix_number: '2233160010'
high_prefix_number: '2233160019'
status: ACTIVE
- low_prefix_number: '2308270002'
high_prefix_number: '2308270009'
status: ACTIVE
- low_prefix_number: '2720020100'
high_prefix_number: '2720022099'
status: ACTIVE
action:
id: ACT_Kq7jZogQ5mRsY4yvwXguw3iizKGUdI
type: DCC_BIN_RANGE_LIST
time_created: '2022-04-11T17:48:14.215Z'
result_code: SUCCESS
app_id: Cu7y0m3XmoACrLohnRyDHVgRS4sC7hS5
app_name: DCCPP
'400':
description: ''
content: