Changes for page account

Last modified by David Persson on 2024/02/21 07:42
From version 4.1
edited by Rasmus Enekvist
on 2021/09/24 07:36
To version 5.1
edited by Rasmus Enekvist
on 2021/09/24 07:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -48,7 +48,7 @@
48 48  
49 49  == Accounts ==
50 50  
51 -The **accounts** resource is located under **ledger/account/v1/ **api**. **The accounts- and its sub-resources are used to create, read and modify information related to a credit-account.
51 +The **accounts** resource is located under **ledger/account/v1/ **api**. **The accounts- and its sub-resources are used to create, read and modify information related to a account.
52 52  The accounts resource provides an overview of the end customer's account, it contains information such as current balance, credit limit etc. The resource also contains URIs for additional sub-resources such as bills, cards, recurring payments, etc.
53 53  
54 54  The following operations is supported
... ... @@ -64,7 +64,7 @@
64 64  ==== ====
65 65  
66 66  {{code language="http" title="**Request**"}}
67 -GET /ledger/credit-account/v1/XXX/accounts/NNN HTTP/1.1
67 +GET /ledger/account/v1/XXX/accounts/NNN HTTP/1.1
68 68  Host: -
69 69  Authorization: Bearer <Token>
70 70  Content-Type: application/json
... ... @@ -76,7 +76,7 @@
76 76  Content-Type: application/json
77 77  
78 78  {
79 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN",
79 + "@id": "/ledger/account/v1/XXX/accounts/NNN",
80 80   "accountNo": "1234567",
81 81   "startDate": "2018-05-21",
82 82   "description": null,
... ... @@ -88,7 +88,7 @@
88 88   "totalBalance" : -1900.0,
89 89   "reservedAmount": 50.0,
90 90   "availableAmount": 3850.0,
91 - "openBill" : "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-456",
91 + "openBill" : "/ledger/account/v1/XXX/accounts/NNN/bills/reminder-456",
92 92   "charityDonation": true,
93 93   "interestRate": {
94 94   "debtInterest" : 10.00,
... ... @@ -101,33 +101,33 @@
101 101   "iban": "SE12345678945631",
102 102   "paymentReference": "54867165675646"
103 103   },
104 - "activePaymentOrders": "/ledger/credit-account/v1/XXX/accounts/NNN/active-payment-orders",
105 - "recurringPaymentConfiguration": "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-configuration",
106 - "cards": "/ledger/credit-account/v1/XXX/accounts/123456/cards",
107 - "transactions": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions",
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 108   "currency": "sek",
109 - "bills": "/ledger/credit-account/v1/XXX/accounts/NNN/bills",
109 + "bills": "/ledger/account/v1/XXX/accounts/NNN/bills",
110 110   "customer": "/ledger/customers/v1/XXX/customer/123456",
111 111   "operation" : [
112 112   {
113 113   "rel" : "add-card-info",
114 114   "method" : "post",
115 - "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards"
115 + "href" : "/ledger/account/v1/XXX/accounts/NNN/cards"
116 116   },
117 117   {
118 118   "rel" : "request-close-account",
119 119   "method" : "post",
120 - "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/request-close-account"
120 + "href" : "/ledger/account/v1/XXX/accounts/NNN/request-close-account"
121 121   },
122 122   {
123 123   "rel" : "apply-for-raised-credit-limit",
124 124   "method" : "post",
125 - "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/NNN/apply-for-raised-credit-limit"
125 + "href" : "/ledger/account-onboardings/v1/XXX/accounts/NNN/apply-for-raised-credit-limit"
126 126   },
127 127   {
128 128   "rel" : "partial-update",
129 129   "method" : "patch",
130 - "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/NNN"
130 + "href" : "/ledger/account-onboardings/v1/XXX/accounts/NNN"
131 131   }
132 132   ]
133 133  }
... ... @@ -136,7 +136,7 @@
136 136  ==== Change charitydonation ====
137 137  
138 138  {{code language="http" title="**Request**"}}
139 -PATCH /ledger/credit-account/v1/XXX/accounts/NNN HTTP/1.1
139 +PATCH /ledger/account/v1/XXX/accounts/NNN HTTP/1.1
140 140  Host: -
141 141  Authorization: Bearer <Token>
142 142  Content-Type: application/json
... ... @@ -158,7 +158,7 @@
158 158  The creditlimit can only be lowered through this patch API call. Increasing of the creditlimit requires signing and has not been implemented yet.
159 159  
160 160  {{code language="http" title="**Request**"}}
161 -PATCH /ledger/credit-account/v1/XXX/accounts/NNN HTTP/1.1
161 +PATCH /ledger/account/v1/XXX/accounts/NNN HTTP/1.1
162 162  Host: -
163 163  Authorization: Bearer <Token>
164 164  Content-Type: application/json