Changes for page account

Last modified by David Persson on 2024/02/21 07:42
From version 28.1
edited by David Persson
on 2022/03/15 17:01
To version 29.1
edited by Simon Melin
on 2022/04/28 10:50
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.dap
1 +xwiki:XWiki.avp
Content
... ... @@ -58,9 +58,84 @@
58 58  * Turn on/off charity donation
59 59  * Set behaviour of recurring payments
60 60  
61 +==== Get a list of accounts ====
62 +
63 +==== ====
64 +
65 +{{code language="http" title="**Request**"}}
66 +GET /ledger/account/v1/XXX/accounts?accountNo=123&customerNo=456HTTP/1.1
67 +Host: -
68 +Authorization: Bearer <Token>
69 +Content-Type: application/json
70 +{{/code}}
71 +
72 +
73 +{{code language="http" title="**Response**"}}
74 +HTTP/1.1 200 OK
75 +Content-Type: application/json
76 +
77 +{
78 + "@id": "/ledger/account/v1/XXX/accounts/NNN",
79 + "accountNo": "1234567",
80 + "startDate": "2018-05-21",
81 + "description": null,
82 + "accountProfileType": "accountType1 | accountType2 | accountType3 etc.",
83 + "accountAlias" : "accountAlias1 | accountAlias2 etc.",
84 + "customerNo" : "123789654",
85 + "status" : "Open | PendingClose | Closed",
86 + "creditLimit": 2000.00,
87 + "totalBalance" : -1900.0,
88 + "reservedAmount": 50.0,
89 + "availableAmount": 3850.0,
90 + "maxPaymentAmount": 51900.0,
91 + "openBill" : "/ledger/account/v1/XXX/accounts/NNN/bills/reminder-456",
92 + "charityDonation": true,
93 + "interestRate": {
94 + "debtInterest" : 10.00,
95 + "penaltyInterest": 15.00
96 + },
97 + "bankPayment": {
98 + "bankAccountNo": "123",
99 + "bankAccountType": "BGSE",
100 + "bic": "123456",
101 + "iban": "SE12345678945631",
102 + "paymentReference": "54867165675646"
103 + },
104 + "activePaymentOrders": "/ledger/account/v1/XXX/accounts/NNN/active-payment-orders",
105 + "recurringPaymentConfiguration": "/ledger/account/v1/XXX/accounts/NNN/recurring-payment-configuration",
106 + "cards": "/ledger/account/v1/XXX/accounts/123456/cards",
107 + "transactions": "/ledger/account/v1/XXX/accounts/NNN/transactions",
108 + "currency": "sek",
109 + "bills": "/ledger/account/v1/XXX/accounts/NNN/bills",
110 + "customer": "/ledger/customers/v1/XXX/customer/123456",
111 + "operation" : [
112 + {
113 + "rel" : "add-card-info",
114 + "method" : "post",
115 + "href" : "/ledger/account/v1/XXX/accounts/NNN/cards"
116 + },
117 + {
118 + "rel" : "request-close-account",
119 + "method" : "post",
120 + "href" : "/ledger/account/v1/XXX/accounts/NNN/request-close-account"
121 + },
122 + {
123 + "rel" : "apply-for-raised-credit-limit",
124 + "method" : "post",
125 + "href" : "/ledger/account-onboardings/v1/XXX/accounts/NNN/apply-for-raised-credit-limit"
126 + },
127 + {
128 + "rel" : "partial-update",
129 + "method" : "patch",
130 + "href" : "/ledger/account-onboardings/v1/XXX/accounts/NNN"
131 + }
132 + ]
133 +}
134 +{{/code}}
135 +
61 61  ==== Get a specific account ====
62 62  
63 -==== ====
138 +==== ====
64 64  
65 65  {{code language="http" title="**Request**"}}
66 66  GET /ledger/account/v1/XXX/accounts/NNN HTTP/1.1
... ... @@ -340,7 +340,7 @@
340 340  }
341 341  {{/code}}
342 342  
343 -==== ====
418 +==== ====
344 344  
345 345  ==== Get specific bill ====
346 346  
... ... @@ -867,7 +867,7 @@
867 867  }
868 868  {{/code}}
869 869  
870 -==== ====
945 +==== ====
871 871  
872 872  ==== Active-payment-orders resource properties ====
873 873  
... ... @@ -881,7 +881,7 @@
881 881  )))
882 882  |(% style="width:337px" %)amount|(% style="width:205px" %)decimal|(% style="width:208px" %) |(% style="width:58px" %) |(% style="width:1176px" %)The amount to debit the owner of the consent
883 883  
884 -=== ===
959 +=== ===
885 885  
886 886  == Problems ==
887 887