-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.json
3463 lines (3463 loc) · 134 KB
/
openapi.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": "Up API",
"version": "v1",
"description": "The Up API gives you programmatic access to your balances and\ntransaction data. You can request past transactions or set up\nwebhooks to receive real-time events when new transactions hit your\naccount. It’s new, it’s exciting and it’s just the beginning.\n",
"contact": {
"name": "API Specification and Support",
"url": "https://github.com/up-banking/api"
}
},
"servers": [
{
"url": "https://api.up.com.au/api/v1"
}
],
"components": {
"securitySchemes": {
"bearer_auth": {
"type": "http",
"scheme": "bearer"
}
},
"schemas": {
"AccountTypeEnum": {
"enum": ["SAVER", "TRANSACTIONAL", "HOME_LOAN"],
"description": "Specifies the type of bank account. Currently returned values are\n`SAVER`, `TRANSACTIONAL` and `HOME_LOAN`.\n"
},
"OwnershipTypeEnum": {
"enum": ["INDIVIDUAL", "JOINT"],
"description": "Specifies the structure under which a bank account is owned. Currently\nreturned values are `INDIVIDUAL` and `JOINT`.\n"
},
"MoneyObject": {
"type": "object",
"description": "Provides information about a value of money.\n",
"properties": {
"currencyCode": {
"type": "string",
"description": "The ISO 4217 currency code.\n"
},
"value": {
"type": "string",
"description": "The amount of money, formatted as a string in the relevant currency.\nFor example, for an Australian dollar value of $10.56, this field will\nbe `\"10.56\"`. The currency symbol is not included in the string.\n"
},
"valueInBaseUnits": {
"type": "integer",
"description": "The amount of money in the smallest denomination for the currency, as a\n64-bit integer. For example, for an Australian dollar value of $10.56,\nthis field will be `1056`.\n"
}
},
"required": ["currencyCode", "value", "valueInBaseUnits"]
},
"AccountResource": {
"type": "object",
"description": "Provides information about an Up bank account.\n",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `accounts`"
},
"id": {
"type": "string",
"description": "The unique identifier for this account.\n"
},
"attributes": {
"type": "object",
"properties": {
"displayName": {
"type": "string",
"description": "The name associated with the account in the Up application.\n"
},
"accountType": {
"description": "The bank account type of this account.\n",
"allOf": [
{
"$ref": "#/components/schemas/AccountTypeEnum"
}
]
},
"ownershipType": {
"description": "The ownership structure for this account.\n",
"allOf": [
{
"$ref": "#/components/schemas/OwnershipTypeEnum"
}
]
},
"balance": {
"description": "The available balance of the account, taking into account any amounts\nthat are currently on hold.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "The date-time at which this account was first opened.\n"
}
},
"required": [
"displayName",
"accountType",
"ownershipType",
"balance",
"createdAt"
]
},
"relationships": {
"type": "object",
"properties": {
"transactions": {
"type": "object",
"properties": {
"links": {
"type": "object",
"properties": {
"related": {
"type": "string",
"description": "The link to retrieve the related resource(s) in this relationship.\n"
}
},
"required": ["related"]
}
}
}
},
"required": ["transactions"]
},
"links": {
"type": "object",
"properties": {
"self": {
"type": "string",
"description": "The canonical link to this resource within the API.\n"
}
},
"required": ["self"]
}
},
"required": ["type", "id", "attributes", "relationships"]
},
"ListAccountsResponse": {
"type": "object",
"description": "Successful response to get all accounts. This returns a paginated list of\naccounts, which can be scrolled by following the `prev` and `next` links\nif present.\n",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountResource"
},
"description": "The list of accounts returned in this response.\n"
},
"links": {
"type": "object",
"properties": {
"prev": {
"type": "string",
"nullable": true,
"description": "The link to the previous page in the results. If this value is `null`\nthere is no previous page.\n"
},
"next": {
"type": "string",
"nullable": true,
"description": "The link to the next page in the results. If this value is `null`\nthere is no next page.\n"
}
},
"required": ["prev", "next"]
}
},
"required": ["data", "links"]
},
"GetAccountResponse": {
"type": "object",
"description": "Successful response to get a single account.\n",
"properties": {
"data": {
"description": "The account returned in this response.\n",
"allOf": [
{
"$ref": "#/components/schemas/AccountResource"
}
]
}
},
"required": ["data"]
},
"AttachmentResource": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `attachments`"
},
"id": {
"type": "string",
"description": "The unique identifier for this attachment.\n"
},
"attributes": {
"type": "object",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The date-time when the file was created.\n"
},
"fileURL": {
"type": "string",
"nullable": true,
"description": "A temporary link to download the file.\n"
},
"fileURLExpiresAt": {
"type": "string",
"format": "date-time",
"description": "The date-time at which the `fileURL` link expires.\n"
},
"fileExtension": {
"type": "string",
"nullable": true,
"description": "File extension for the uploaded attachment.\n"
},
"fileContentType": {
"type": "string",
"nullable": true,
"description": "Content type for the uploaded attachment.\n"
}
},
"required": [
"createdAt",
"fileURL",
"fileURLExpiresAt",
"fileExtension",
"fileContentType"
]
},
"relationships": {
"type": "object",
"properties": {
"transaction": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `transactions`"
},
"id": {
"type": "string",
"description": "The unique identifier of the resource within its type.\n"
}
},
"required": ["type", "id"]
},
"links": {
"type": "object",
"properties": {
"related": {
"type": "string",
"description": "The link to retrieve the related resource(s) in this relationship.\n"
}
},
"required": ["related"]
}
},
"required": ["data"]
}
},
"required": ["transaction"]
},
"links": {
"type": "object",
"properties": {
"self": {
"type": "string",
"description": "The canonical link to this resource within the API.\n"
}
},
"required": ["self"]
}
},
"required": ["type", "id", "attributes", "relationships"]
},
"ListAttachmentsResponse": {
"type": "object",
"description": "Successful response to get all attachments. This returns a paginated list of\nattachments, which can be scrolled by following the `prev` and `next` links if\npresent.\n",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AttachmentResource"
},
"description": "The list of attachments returned in this response.\n"
},
"links": {
"type": "object",
"properties": {
"prev": {
"type": "string",
"nullable": true,
"description": "The link to the previous page in the results. If this value is `null`\nthere is no previous page.\n"
},
"next": {
"type": "string",
"nullable": true,
"description": "The link to the next page in the results. If this value is `null`\nthere is no next page.\n"
}
},
"required": ["prev", "next"]
}
},
"required": ["data", "links"]
},
"GetAttachmentResponse": {
"type": "object",
"description": "Successful response to get a single attachment.\n",
"properties": {
"data": {
"description": "The attachment returned in this response.\n",
"allOf": [
{
"$ref": "#/components/schemas/AttachmentResource"
}
]
}
},
"required": ["data"]
},
"CategoryResource": {
"type": "object",
"description": "Provides information about a category and its ancestry.\n",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `categories`"
},
"id": {
"type": "string",
"description": "The unique identifier for this category. This is a human-readable but\nURL-safe value.\n"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of this category as seen in the Up application.\n"
}
},
"required": ["name"]
},
"relationships": {
"type": "object",
"properties": {
"parent": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `categories`"
},
"id": {
"type": "string",
"description": "The unique identifier of the resource within its type.\n"
}
},
"required": ["type", "id"],
"nullable": true
},
"links": {
"type": "object",
"properties": {
"related": {
"type": "string",
"description": "The link to retrieve the related resource(s) in this relationship.\n"
}
},
"required": ["related"]
}
},
"required": ["data"]
},
"children": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `categories`"
},
"id": {
"type": "string",
"description": "The unique identifier of the resource within its type.\n"
}
},
"required": ["type", "id"]
}
},
"links": {
"type": "object",
"properties": {
"related": {
"type": "string",
"description": "The link to retrieve the related resource(s) in this relationship.\n"
}
},
"required": ["related"]
}
},
"required": ["data"]
}
},
"required": ["parent", "children"]
},
"links": {
"type": "object",
"properties": {
"self": {
"type": "string",
"description": "The canonical link to this resource within the API.\n"
}
},
"required": ["self"]
}
},
"required": ["type", "id", "attributes", "relationships"]
},
"ListCategoriesResponse": {
"type": "object",
"description": "Successful response to get all categories and their ancestry. The\nreturned list is not paginated.\n",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CategoryResource"
},
"description": "The list of categories returned in this response.\n"
}
},
"required": ["data"]
},
"GetCategoryResponse": {
"type": "object",
"description": "Successful response to get a single category and its ancestry.\n",
"properties": {
"data": {
"description": "The category returned in this response.\n",
"allOf": [
{
"$ref": "#/components/schemas/CategoryResource"
}
]
}
},
"required": ["data"]
},
"CategoryInputResourceIdentifier": {
"type": "object",
"description": "Uniquely identifies a category in the API.\n",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `categories`"
},
"id": {
"type": "string",
"description": "The unique identifier of the category, as returned by the `/categories`\nendpoint.\n"
}
},
"required": ["type", "id"]
},
"UpdateTransactionCategoryRequest": {
"type": "object",
"description": "Request to update the category associated with a transaction.\n",
"properties": {
"data": {
"nullable": true,
"description": "The category to set on the transaction. Set this entire key to `null`\nde-categorize a transaction.\n",
"allOf": [
{
"$ref": "#/components/schemas/CategoryInputResourceIdentifier"
}
]
}
},
"required": ["data"]
},
"PingResponse": {
"type": "object",
"description": "Basic ping response to verify authentication.\n",
"properties": {
"meta": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the authenticated customer.\n"
},
"statusEmoji": {
"type": "string",
"description": "A cute emoji that represents the response status.\n"
}
},
"required": ["id", "statusEmoji"]
}
},
"required": ["meta"]
},
"ErrorObject": {
"type": "object",
"description": "Provides information about an error processing a request.\n",
"properties": {
"status": {
"type": "string",
"description": "The HTTP status code associated with this error. This can also be\nobtained from the response headers. The status indicates the broad type\nof error according to HTTP semantics.\n"
},
"title": {
"type": "string",
"description": "A short description of this error. This should be stable across\nmultiple occurrences of this type of error and typically expands on the\nreason for the status code.\n"
},
"detail": {
"type": "string",
"description": "A detailed description of this error. This should be considered unique\nto individual occurrences of an error and subject to change. It is\nuseful for debugging purposes.\n"
},
"source": {
"type": "object",
"properties": {
"parameter": {
"type": "string",
"description": "If this error relates to a query parameter, the name of the\nparameter.\n"
},
"pointer": {
"type": "string",
"description": "If this error relates to an attribute in the request body, a\nrfc-6901 JSON pointer to the attribute.\n"
}
},
"description": "If applicable, location in the request that this error relates to. This\nmay be a parameter in the query string, or a an attribute in the\nrequest body.\n"
}
},
"required": ["status", "title", "detail"]
},
"ErrorResponse": {
"type": "object",
"description": "Generic error response that returns one or more errors.\n",
"properties": {
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorObject"
},
"description": "The list of errors returned in this response.\n"
}
},
"required": ["errors"]
},
"TagResource": {
"type": "object",
"description": "Provides information about a tag.\n",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `tags`"
},
"id": {
"type": "string",
"description": "The label of the tag, which also acts as the tag’s unique identifier.\n"
},
"relationships": {
"type": "object",
"properties": {
"transactions": {
"type": "object",
"properties": {
"links": {
"type": "object",
"properties": {
"related": {
"type": "string",
"description": "The link to retrieve the related resource(s) in this relationship.\n"
}
},
"required": ["related"]
}
}
}
},
"required": ["transactions"]
}
},
"required": ["type", "id", "relationships"]
},
"ListTagsResponse": {
"type": "object",
"description": "Successful response to get all tags. This returns a paginated list of\ntags, which can be scrolled by following the `prev` and `next` links if\npresent.\n",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TagResource"
},
"description": "The list of tags returned in this response.\n"
},
"links": {
"type": "object",
"properties": {
"prev": {
"type": "string",
"nullable": true,
"description": "The link to the previous page in the results. If this value is `null`\nthere is no previous page.\n"
},
"next": {
"type": "string",
"nullable": true,
"description": "The link to the next page in the results. If this value is `null`\nthere is no next page.\n"
}
},
"required": ["prev", "next"]
}
},
"required": ["data", "links"]
},
"TagInputResourceIdentifier": {
"type": "object",
"description": "Uniquely identifies a single tag in the API.\n",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `tags`"
},
"id": {
"type": "string",
"description": "The label of the tag, which also acts as the tag’s unique identifier.\n"
}
},
"required": ["type", "id"]
},
"UpdateTransactionTagsRequest": {
"type": "object",
"description": "Request to add or remove tags associated with a transaction.\n",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TagInputResourceIdentifier"
},
"description": "The tags to add to or remove from the transaction.\n"
}
},
"required": ["data"]
},
"TransactionStatusEnum": {
"enum": ["HELD", "SETTLED"],
"description": "Specifies which stage of processing a transaction is currently at.\nCurrently returned values are `HELD` and `SETTLED`. When a transaction is\nheld, its account’s `availableBalance` is affected. When a transaction is\nsettled, its account’s `currentBalance` is affected.\n"
},
"HoldInfoObject": {
"type": "object",
"description": "Provides information about the amount at which a transaction was in the\n`HELD` status.\n",
"properties": {
"amount": {
"description": "The amount of this transaction while in the `HELD` status, in\nAustralian dollars.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
},
"foreignAmount": {
"nullable": true,
"description": "The foreign currency amount of this transaction while in the `HELD`\nstatus. This field will be `null` for domestic transactions. The amount\nwas converted to the AUD amount reflected in the `amount` field.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
}
},
"required": ["amount", "foreignAmount"]
},
"RoundUpObject": {
"type": "object",
"description": "Provides information about how a Round Up was applied, such as whether or\nnot a boost was included in the Round Up.\n",
"properties": {
"amount": {
"description": "The total amount of this Round Up, including any boosts, represented as\na negative value.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
},
"boostPortion": {
"nullable": true,
"description": "The portion of the Round Up `amount` owing to boosted Round Ups,\nrepresented as a negative value. If no boost was added to the Round Up\nthis field will be `null`.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
}
},
"required": ["amount", "boostPortion"]
},
"CashbackObject": {
"type": "object",
"description": "Provides information about an instant reimbursement in the form of\ncashback.\n",
"properties": {
"description": {
"type": "string",
"description": "A brief description of why this cashback was paid.\n"
},
"amount": {
"description": "The total amount of cashback paid, represented as a positive value.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
}
},
"required": ["description", "amount"]
},
"CardPurchaseMethodEnum": {
"enum": [
"BAR_CODE",
"OCR",
"CARD_PIN",
"CARD_DETAILS",
"CARD_ON_FILE",
"ECOMMERCE",
"MAGNETIC_STRIPE",
"CONTACTLESS"
],
"description": "Specifies the type of card charge.\n"
},
"CardPurchaseMethodObject": {
"type": "object",
"description": "Provides information about the card used for a transaction.\n",
"properties": {
"method": {
"description": "The type of card purchase.\n",
"allOf": [
{
"$ref": "#/components/schemas/CardPurchaseMethodEnum"
}
]
},
"cardNumberSuffix": {
"type": "string",
"nullable": true,
"description": "The last four digits of the card used for the purchase, if applicable.\n"
}
},
"required": ["method", "cardNumberSuffix"]
},
"NoteObject": {
"type": "object",
"description": "Provides information about the note and attachement.\n",
"properties": {
"text": {
"type": "string",
"description": "A text note about the transaction.\n"
}
},
"required": ["text"]
},
"CustomerObject": {
"type": "object",
"description": "Provides information about the customer who initiated a transaction\n",
"properties": {
"displayName": {
"type": "string",
"description": "The Upname or preferred name of the customer\n"
}
},
"required": ["displayName"]
},
"TransactionResource": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `transactions`"
},
"id": {
"type": "string",
"description": "The unique identifier for this transaction.\n"
},
"attributes": {
"type": "object",
"properties": {
"status": {
"description": "The current processing status of this transaction, according to\nwhether or not this transaction has settled or is still held.\n",
"allOf": [
{
"$ref": "#/components/schemas/TransactionStatusEnum"
}
]
},
"rawText": {
"type": "string",
"nullable": true,
"description": "The original, unprocessed text of the transaction. This is often not\na perfect indicator of the actual merchant, but it is useful for\nreconciliation purposes in some cases.\n"
},
"description": {
"type": "string",
"description": "A short description for this transaction. Usually the merchant name\nfor purchases.\n"
},
"message": {
"type": "string",
"nullable": true,
"description": "Attached message for this transaction, such as a payment message, or a\ntransfer note.\n"
},
"isCategorizable": {
"type": "boolean",
"description": "Boolean flag set to true on transactions that support the use of\ncategories.\n"
},
"holdInfo": {
"nullable": true,
"description": "If this transaction is currently in the `HELD` status, or was ever in\nthe `HELD` status, the `amount` and `foreignAmount` of the\ntransaction while `HELD`.\n",
"allOf": [
{
"$ref": "#/components/schemas/HoldInfoObject"
}
]
},
"roundUp": {
"nullable": true,
"description": "Details of how this transaction was rounded-up. If no Round Up was\napplied this field will be `null`.\n",
"allOf": [
{
"$ref": "#/components/schemas/RoundUpObject"
}
]
},
"cashback": {
"nullable": true,
"description": "If all or part of this transaction was instantly reimbursed in the\nform of cashback, details of the reimbursement.\n",
"allOf": [
{
"$ref": "#/components/schemas/CashbackObject"
}
]
},
"amount": {
"description": "The amount of this transaction in Australian dollars. For\ntransactions that were once `HELD` but are now `SETTLED`, refer to\nthe `holdInfo` field for the original `amount` the transaction was\n`HELD` at.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
},
"foreignAmount": {
"nullable": true,
"description": "The foreign currency amount of this transaction. This field will be\n`null` for domestic transactions. The amount was converted to the AUD\namount reflected in the `amount` of this transaction. Refer to the\n`holdInfo` field for the original `foreignAmount` the transaction was\n`HELD` at.\n",
"allOf": [
{
"$ref": "#/components/schemas/MoneyObject"
}
]
},
"cardPurchaseMethod": {
"nullable": true,
"description": "Information about the card used for this transaction, if applicable.\n",
"allOf": [
{
"$ref": "#/components/schemas/CardPurchaseMethodObject"
}
]
},
"settledAt": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The date-time at which this transaction settled. This field will be\n`null` for transactions that are currently in the `HELD` status.\n"
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "The date-time at which this transaction was first encountered.\n"
},
"transactionType": {
"type": "string",
"nullable": true,
"description": "A description of the transaction method used e.g. Purchase, BPAY Payment.\n"
},
"note": {
"nullable": true,
"description": "A customer provided note about the transaction. Can only be provided by Up High subscribers.\n",
"allOf": [
{
"$ref": "#/components/schemas/NoteObject"
}
]
},
"performingCustomer": {
"nullable": true,
"description": "The customer who initated the transaction. For 2Up accounts this could be the customer who's card was used.\n",
"allOf": [
{
"$ref": "#/components/schemas/CustomerObject"
}
]
},
"deepLinkURL": {
"type": "string",
"description": "A deep link to the transaction receipt screen in-app."
}
},
"required": [
"status",
"rawText",
"description",
"message",
"isCategorizable",
"holdInfo",
"roundUp",
"cashback",
"amount",
"foreignAmount",
"cardPurchaseMethod",
"settledAt",
"createdAt",
"transactionType",
"note",
"performingCustomer",
"deepLinkURL"
]
},
"relationships": {
"type": "object",
"properties": {
"account": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `accounts`"
},
"id": {
"type": "string",
"description": "The unique identifier of the resource within its type.\n"
}
},
"required": ["type", "id"]
},
"links": {
"type": "object",
"properties": {
"related": {
"type": "string",
"description": "The link to retrieve the related resource(s) in this relationship.\n"
}
},
"required": ["related"]
}
},
"required": ["data"]
},
"transferAccount": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of this resource: `accounts`"
},
"id": {
"type": "string",
"description": "The unique identifier of the resource within its type.\n"
}
},
"required": ["type", "id"],
"nullable": true
},
"links": {
"type": "object",
"properties": {
"related": {
"type": "string",
"description": "The link to retrieve the related resource(s) in this relationship.\n"
}
},
"required": ["related"]
}
},
"required": ["data"],
"description": "If this transaction is a transfer between accounts, this relationship\nwill contain the account the transaction went to/came from. The\n`amount` field can be used to determine the direction of the transfer.\n"