Skip to content

Commit 7659aa5

Browse files
[XBAP-19700] Update BatchPayments endpoint responses (#723)
[XBAP-19700] Update BatchPayments endpoint responses (#723)
1 parent 98066c6 commit 7659aa5

File tree

1 file changed

+44
-17
lines changed

1 file changed

+44
-17
lines changed

xero_accounting.yaml

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@ paths:
645645
"BatchPayments": [
646646
{
647647
"Account": {
648-
"AccountID": "6f7594f2-f059-4d56-9e67-47ac9733bfe9"
648+
"AccountID": "6f7594f2-f059-4d56-9e67-47ac9733bfe9",
649+
"CurrencyCode": "NZD"
649650
},
650651
"Reference": "Hello World",
651652
"BatchPaymentID": "d0e9bbbf-5b8a-48b6-906a-035591fcb061",
@@ -655,6 +656,7 @@ paths:
655656
{
656657
"Invoice": {
657658
"InvoiceID": "0975dec2-0cf6-498d-9c9f-c6775b45c61d",
659+
"CurrencyCode":"NZD",
658660
"Payments": [],
659661
"CreditNotes": [],
660662
"Prepayments": [],
@@ -664,11 +666,13 @@ paths:
664666
"LineItems": []
665667
},
666668
"PaymentID": "97ec2ef8-f4d6-4de5-9f2a-385d41cdc2fc",
667-
"Amount": 200.00
669+
"Amount": 200.00,
670+
"BankAmount": 200.00
668671
},
669672
{
670673
"Invoice": {
671674
"InvoiceID": "600982d9-6605-4e11-afa1-d8dec2be7b52",
675+
"CurrencyCode":"NZD",
672676
"Payments": [],
673677
"CreditNotes": [],
674678
"Prepayments": [],
@@ -678,11 +682,13 @@ paths:
678682
"LineItems": []
679683
},
680684
"PaymentID": "e232795f-b919-4865-a754-12f6ae8402c0",
681-
"Amount": 200.00
685+
"Amount": 200.00,
686+
"BankAmount": 200.00
682687
},
683688
{
684689
"Invoice": {
685690
"InvoiceID": "99a2bd54-4ab1-413c-90bb-57f6464fe5d6",
691+
"CurrencyCode":"NZD",
686692
"Payments": [],
687693
"CreditNotes": [],
688694
"Prepayments": [],
@@ -692,11 +698,13 @@ paths:
692698
"LineItems": []
693699
},
694700
"PaymentID": "c2d571a5-38ff-4d37-9d43-dfadb4ad53ff",
695-
"Amount": 200.00
701+
"Amount": 200.00,
702+
"BankAmount": 200.00
696703
},
697704
{
698705
"Invoice": {
699706
"InvoiceID": "c81942c8-bfc5-4c88-a21a-b892a4a8c1c5",
707+
"CurrencyCode":"NZD",
700708
"Payments": [],
701709
"CreditNotes": [],
702710
"Prepayments": [],
@@ -706,11 +714,13 @@ paths:
706714
"LineItems": []
707715
},
708716
"PaymentID": "0f3c18dc-49bd-47a4-a875-03c84a29978f",
709-
"Amount": 200.00
717+
"Amount": 200.00,
718+
"BankAmount": 200.00
710719
},
711720
{
712721
"Invoice": {
713722
"InvoiceID": "6c9a1d89-8319-42f6-87d6-7690e748af85",
723+
"CurrencyCode":"NZD",
714724
"Payments": [],
715725
"CreditNotes": [],
716726
"Prepayments": [],
@@ -720,7 +730,8 @@ paths:
720730
"LineItems": []
721731
},
722732
"PaymentID": "43541eed-f3ac-44ac-88cb-9fe1cb7ed8b8",
723-
"Amount": 200.00
733+
"Amount": 200.00,
734+
"BankAmount": 200.00
724735
}
725736
],
726737
"Type": "RECBATCH",
@@ -907,7 +918,8 @@ paths:
907918
"BatchPayments": [
908919
{
909920
"Account": {
910-
"AccountID": "5ec2f302-cd60-4f8b-a915-9229dd45e6fa"
921+
"AccountID": "5ec2f302-cd60-4f8b-a915-9229dd45e6fa",
922+
"CurrencyCode": "NZD"
911923
},
912924
"Reference": "Foobar123",
913925
"BatchPaymentID": "d318c343-208e-49fe-b04a-45642349bcf1",
@@ -917,6 +929,7 @@ paths:
917929
{
918930
"Invoice": {
919931
"InvoiceID": "3323652c-155e-433b-8a73-4dde7cfbf410",
932+
"CurrencyCode":"NZD",
920933
"Payments": [],
921934
"CreditNotes": [],
922935
"Prepayments": [],
@@ -926,11 +939,13 @@ paths:
926939
"LineItems": []
927940
},
928941
"PaymentID": "c05098fa-ae3c-4f00-80ec-0a9df07dedff",
929-
"Amount": 1.00
942+
"Amount": 1.00,
943+
"BankAmount": 1.00
930944
},
931945
{
932946
"Invoice": {
933947
"InvoiceID": "e4abafb4-1f5b-4d9f-80b3-9a7b815bc302",
948+
"CurrencyCode":"NZD",
934949
"Payments": [],
935950
"CreditNotes": [],
936951
"Prepayments": [],
@@ -940,11 +955,13 @@ paths:
940955
"LineItems": []
941956
},
942957
"PaymentID": "96409489-2f7d-4804-9a6d-6b939b0e038a",
943-
"Amount": 1.00
958+
"Amount": 1.00,
959+
"BankAmount": 1.00
944960
},
945961
{
946962
"Invoice": {
947963
"InvoiceID": "e6039672-b161-40cd-b07b-a0178e7186ad",
964+
"CurrencyCode":"NZD",
948965
"Payments": [],
949966
"CreditNotes": [],
950967
"Prepayments": [],
@@ -954,7 +971,8 @@ paths:
954971
"LineItems": []
955972
},
956973
"PaymentID": "d2796067-bf71-4f06-b386-81f1454fa866",
957-
"Amount": 1.00
974+
"Amount": 1.00,
975+
"BankAmount": 1.00
958976
}
959977
],
960978
"Type": "RECBATCH",
@@ -1044,7 +1062,8 @@ paths:
10441062
"BatchPayments": [
10451063
{
10461064
"Account": {
1047-
"AccountID": "efb6e3a4-3156-4cee-bfe1-a282a3cc1d8f"
1065+
"AccountID": "efb6e3a4-3156-4cee-bfe1-a282a3cc1d8f",
1066+
"CurrencyCode": "NZD"
10481067
},
10491068
"BatchPaymentID": "b649632e-2782-4c74-95a5-d994d7140ed9",
10501069
"DateString": "2022-08-01T00:00:00",
@@ -1097,7 +1116,8 @@ paths:
10971116
"BatchPayments": [
10981117
{
10991118
"Account": {
1100-
"AccountID": "13918178-849a-4823-9a31-57b7eac713d7"
1119+
"AccountID": "13918178-849a-4823-9a31-57b7eac713d7",
1120+
"CurrencyCode": "NZD"
11011121
},
11021122
"Reference": "ref",
11031123
"BatchPaymentID": "44a1013e-4946-4a73-b207-dfe5424a5ea5",
@@ -1107,6 +1127,7 @@ paths:
11071127
{
11081128
"Invoice": {
11091129
"InvoiceID": "5aa9451d-95d1-4f95-a966-bbab2573f71c",
1130+
"CurrencyCode":"NZD",
11101131
"Payments": [],
11111132
"CreditNotes": [],
11121133
"Prepayments": [],
@@ -1117,11 +1138,13 @@ paths:
11171138
},
11181139
"PaymentID": "a22a64cb-364e-43fa-9a1f-bb2cd1f4adde",
11191140
"Reference": "ref/cheque",
1120-
"Amount": 913.55
1141+
"Amount": 913.55,
1142+
"BankAmount": 913.55
11211143
},
11221144
{
11231145
"Invoice": {
11241146
"InvoiceID": "30a87092-31b5-4a2c-831e-327486533dd2",
1147+
"CurrencyCode":"AUD",
11251148
"Payments": [],
11261149
"CreditNotes": [],
11271150
"Prepayments": [],
@@ -1131,11 +1154,13 @@ paths:
11311154
"LineItems": []
11321155
},
11331156
"PaymentID": "6e20be79-32d8-4ae1-978e-f76d9b245c02",
1134-
"Amount": 495
1157+
"Amount": 495,
1158+
"BankAmount": 540
11351159
},
11361160
{
11371161
"Invoice": {
11381162
"InvoiceID": "86d6e00f-ef56-49f7-9a54-796ccd5ca057",
1163+
"CurrencyCode":"NZD",
11391164
"Payments": [],
11401165
"CreditNotes": [],
11411166
"Prepayments": [],
@@ -1145,12 +1170,13 @@ paths:
11451170
"LineItems": []
11461171
},
11471172
"PaymentID": "4ba761b8-5940-4a3f-bcdf-7775adb00332",
1148-
"Amount": 3080
1173+
"Amount": 3080,
1174+
"BankAmount": 3080
11491175
}
11501176
],
11511177
"Type": "RECBATCH",
11521178
"Status": "AUTHORISED",
1153-
"TotalAmount": 4488.55,
1179+
"TotalAmount": 4533.55,
11541180
"UpdatedDateUTC": "/Date(1538525239370+0000)/",
11551181
"IsReconciled": false
11561182
}
@@ -1181,7 +1207,8 @@ paths:
11811207
"BatchPayments": [
11821208
{
11831209
"Account": {
1184-
"AccountID": "efb6e3a4-3156-4cee-bfe1-a282a3cc1d8f"
1210+
"AccountID": "efb6e3a4-3156-4cee-bfe1-a282a3cc1d8f",
1211+
"CurrencyCode": "NZD"
11851212
},
11861213
"BatchPaymentID": "b649632e-2782-4c74-95a5-d994d7140ed9",
11871214
"DateString": "2022-08-01T00:00:00",

0 commit comments

Comments
 (0)