Changes for page ../credit-account
Last modified by Helge Dahl on 2020/02/06 17:55
From version 87.3
edited by David Persson
on 2020/02/04 13:32
on 2020/02/04 13:32
To version 88.1
edited by David Persson
on 2020/02/04 13:47
on 2020/02/04 13:47
Change comment: There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -20,7 +20,7 @@ 20 20 (% class="lead" %) 21 21 This api is used to retrieve information and to change properties related to the customer's credit account. 22 22 23 -[[image:1579213343157-343.png||height="325" width="346"]] 23 +(% contenteditable="false" tabindex="-1" %)[[image:1579213343157-343.png||data-widget="image" height="325" width="346"]] 24 24 25 25 (% id="HRoutesegments" %) 26 26 == Introduction == ... ... @@ -66,75 +66,98 @@ 66 66 === Requesting details of a specific account === 67 67 68 68 69 -{{code language="http" title="**Request**"}} 70 -GET /ledger/credit-account/v1/XXX/accounts/NNN HTTP/1.1 71 -Host: - 72 -Authorization: Bearer <Token> 73 -Content-Type: application/json 74 -{{/code}} 69 +(% contenteditable="false" tabindex="-1" %) 70 +((( 71 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|GET /ledger/credit-account/v1/XXX/accounts/NNN HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json" data-widget="xwiki-macro" %) 72 +((( 73 +(% class="box" %) 74 +((( 75 +**Request** 75 75 77 +(% class="code" %) 78 +((( 79 +(% style="color:#0000ff" %)GET(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 80 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 81 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 82 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 83 +))) 84 +))) 85 +))) 86 +))) 76 76 77 -{{code language="http" title="**Response**"}} 78 -HTTP/1.1 200 OK 79 -Content-Type: application/json 80 80 81 -{ 82 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN", 83 - "accountNo": "1234567", 84 - "startDate": "2018-05-21", 85 - "description": null, 86 - "accountProfileType": "accountType1 | accountType2 | accountType3 etc.", 87 - "accountAlias" : "accountAlias1 | accountAlias2 etc.", 88 - "customerNo" : "123789654", 89 - "status" : "open | pending-close | closed", 90 - "creditLimit": 2000.00, 91 - "totalBalance" : -1900.0, 92 - "reservedAmount": 50.0, 93 - "availableAmount": 50.0, 94 - "openBill" : "/ledger/credit-account/v1/XXX/accounts/NNN/bills/456", 95 - "charityDonation": true, 96 - "interestRate": { 97 - "debtInterest" : 10.00, 98 - "penaltyInterest": 15.00 89 +(% contenteditable="false" tabindex="-1" %) 90 +((( 91 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 200 OK Content-Type: application/json { ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN~", ~"accountNo~": ~"1234567~", ~"startDate~": ~"2018-05-21~", ~"description~": null, ~"accountProfileType~": ~"accountType1 | accountType2 | accountType3 etc.~", ~"accountAlias~" : ~"accountAlias1 | accountAlias2 etc.~", ~"customerNo~" : ~"123789654~", ~"status~" : ~"open | pending-close | closed~", ~"creditLimit~": 2000.00, ~"totalBalance~" : -1900.0, ~"reservedAmount~": 50.0, ~"availableAmount~": 50.0, ~"openBill~" : ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-456~", ~"charityDonation~": true, ~"interestRate~": { ~"debtInterest~" : 10.00, ~"penaltyInterest~": 15.00 }, ~"bankPayment~": { ~"bankAccountNo~": ~"123~", ~"bankAccountType~": ~"BGSE~", ~"bic~": ~"123456~", ~"iban~": ~"SE12345678945631~", ~"paymentReference~": ~"54867165675646~" }, ~"activePaymentOrders~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/active-payment-orders~", ~"recurringPaymentConsent~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting~", ~"cards~": ~"/ledger/credit-account/v1/XXX/accounts/123456/cards~", ~"transactions~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/transactions~", ~"currency~": ~"sek~", ~"bills~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills~", ~"customer~": ~"/ledger/customers/v1/XXX/customer/123456~", ~"operation~" : [ { ~"rel~" : ~"add-card-info~", ~"method~" : ~"post~", ~"href~" : ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards~" }, { ~"rel~" : ~"request-close-account~", ~"method~" : ~"post~", ~"href~" : ~"/ledger/credit-account/v1/XXX/accounts/NNN/request-close-account~" }, { ~"rel~" : ~"apply-for-raised-credit-limit~", ~"method~" : ~"post~", ~"href~" : ~"/ledger/credit-account-onboardings/v1/XXX/accounts/NNN/apply-for-raised-credit-limit~" }, { ~"rel~" : ~"partial-update~", ~"method~" : ~"patch~", ~"href~" : ~"/ledger/credit-account-onboardings/v1/XXX/accounts/NNN~" } ] }" data-widget="xwiki-macro" %) 92 +((( 93 +(% class="box" %) 94 +((( 95 +**Response** 96 + 97 +(% class="code" %) 98 +((( 99 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)200(%%) (% style="color:#d2413a; font-weight:bold" %)**OK**(%%) 100 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 101 +\\{ 102 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN"(%%), 103 + (% style="color:#008000; font-weight:bold" %)**"accountNo"**(%%): (% style="color:#ba2121" %)"1234567"(%%), 104 + (% style="color:#008000; font-weight:bold" %)**"startDate"**(%%): (% style="color:#ba2121" %)"2018-05-21"(%%), 105 + (% style="color:#008000; font-weight:bold" %)**"description"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%), 106 + (% style="color:#008000; font-weight:bold" %)**"accountProfileType"**(%%): (% style="color:#ba2121" %)"accountType1 | accountType2 | accountType3 etc."(%%), 107 + (% style="color:#008000; font-weight:bold" %)**"accountAlias"**(%%) : (% style="color:#ba2121" %)"accountAlias1 | accountAlias2 etc."(%%), 108 + (% style="color:#008000; font-weight:bold" %)**"customerNo"**(%%) : (% style="color:#ba2121" %)"123789654"(%%), 109 + (% style="color:#008000; font-weight:bold" %)**"status"**(%%) : (% style="color:#ba2121" %)"open | pending-close | closed"(%%), 110 + (% style="color:#008000; font-weight:bold" %)**"creditLimit"**(%%): (% style="color:#666666" %)2000.00(%%), 111 + (% style="color:#008000; font-weight:bold" %)**"totalBalance"**(%%) : (% style="color:#666666" %)-1900.0(%%), 112 + (% style="color:#008000; font-weight:bold" %)**"reservedAmount"**(%%): (% style="color:#666666" %)50.0(%%), 113 + (% style="color:#008000; font-weight:bold" %)**"availableAmount"**(%%): (% style="color:#666666" %)50.0(%%), 114 + (% style="color:#008000; font-weight:bold" %)**"openBill"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-456"(%%), 115 + (% style="color:#008000; font-weight:bold" %)**"charityDonation"**(%%): (% style="color:#008000; font-weight:bold" %)**true**(%%), 116 + (% style="color:#008000; font-weight:bold" %)**"interestRate"**(%%): { 117 + (% style="color:#008000; font-weight:bold" %)**"debtInterest"**(%%) : (% style="color:#666666" %)10.00(%%), 118 + (% style="color:#008000; font-weight:bold" %)**"penaltyInterest"**(%%): (% style="color:#666666" %)15.00(%%) 99 99 }, 100 - "bankPayment": { 101 - "bankAccountNo": "123", 102 - "bankAccountType": "BGSE", 103 - "bic": "123456", 104 - "iban": "SE12345678945631", 105 - "paymentReference": "54867165675646" 120 + (% style="color:#008000; font-weight:bold" %)**"bankPayment"**(%%): { 121 + (% style="color:#008000; font-weight:bold" %)**"bankAccountNo"**(%%): (% style="color:#ba2121" %)"123"(%%), 122 + (% style="color:#008000; font-weight:bold" %)**"bankAccountType"**(%%): (% style="color:#ba2121" %)"BGSE"(%%), 123 + (% style="color:#008000; font-weight:bold" %)**"bic"**(%%): (% style="color:#ba2121" %)"123456"(%%), 124 + (% style="color:#008000; font-weight:bold" %)**"iban"**(%%): (% style="color:#ba2121" %)"SE12345678945631"(%%), 125 + (% style="color:#008000; font-weight:bold" %)**"paymentReference"**(%%): (% style="color:#ba2121" %)"54867165675646"(%%) 106 106 }, 107 - "activePaymentOrders": "/ledger/credit-account/v1/XXX/accounts/NNN/active-payment-orders", 108 - "recurringPaymentConsent": "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting", 109 - "cards": "/ledger/credit-account/v1/XXX/accounts/123456/cards", 110 - "transactions": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions", 111 - "currency": "sek", 112 - "bills": "/ledger/credit-account/v1/XXX/accounts/NNN/bills", 113 - "customer": "/ledger/customers/v1/XXX/customer/123456", 114 - "operation" : [ 127 + (% style="color:#008000; font-weight:bold" %)**"activePaymentOrders"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/active-payment-orders"(%%), 128 + (% style="color:#008000; font-weight:bold" %)**"recurringPaymentConsent"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting"(%%), 129 + (% style="color:#008000; font-weight:bold" %)**"cards"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/123456/cards"(%%), 130 + (% style="color:#008000; font-weight:bold" %)**"transactions"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/transactions"(%%), 131 + (% style="color:#008000; font-weight:bold" %)**"currency"**(%%): (% style="color:#ba2121" %)"sek"(%%), 132 + (% style="color:#008000; font-weight:bold" %)**"bills"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills"(%%), 133 + (% style="color:#008000; font-weight:bold" %)**"customer"**(%%): (% style="color:#ba2121" %)"/ledger/customers/v1/XXX/customer/123456"(%%), 134 + (% style="color:#008000; font-weight:bold" %)**"operation"**(%%) : [ 115 115 { 116 - "rel" : "add-card-info", 117 - "method" : "post", 118 - "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards" 136 + (% style="color:#008000; font-weight:bold" %)**"rel"**(%%) : (% style="color:#ba2121" %)"add-card-info"(%%), 137 + (% style="color:#008000; font-weight:bold" %)**"method"**(%%) : (% style="color:#ba2121" %)"post"(%%), 138 + (% style="color:#008000; font-weight:bold" %)**"href"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards"(%%) 119 119 }, 120 120 { 121 - "rel" : "request-close-account", 122 - "method" : "post", 123 - "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/request-close-account" 141 + (% style="color:#008000; font-weight:bold" %)**"rel"**(%%) : (% style="color:#ba2121" %)"request-close-account"(%%), 142 + (% style="color:#008000; font-weight:bold" %)**"method"**(%%) : (% style="color:#ba2121" %)"post"(%%), 143 + (% style="color:#008000; font-weight:bold" %)**"href"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/request-close-account"(%%) 124 124 }, 125 125 { 126 - "rel" : "apply-for-raised-credit-limit", 127 - "method" : "post", 128 - "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/NNN/apply-for-raised-credit-limit" 146 + (% style="color:#008000; font-weight:bold" %)**"rel"**(%%) : (% style="color:#ba2121" %)"apply-for-raised-credit-limit"(%%), 147 + (% style="color:#008000; font-weight:bold" %)**"method"**(%%) : (% style="color:#ba2121" %)"post"(%%), 148 + (% style="color:#008000; font-weight:bold" %)**"href"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account-onboardings/v1/XXX/accounts/NNN/apply-for-raised-credit-limit"(%%) 129 129 }, 130 130 { 131 - "rel" : "partial-update", 132 - "method" : "patch", 133 - "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/NNN" 151 + (% style="color:#008000; font-weight:bold" %)**"rel"**(%%) : (% style="color:#ba2121" %)"partial-update"(%%), 152 + (% style="color:#008000; font-weight:bold" %)**"method"**(%%) : (% style="color:#ba2121" %)"patch"(%%), 153 + (% style="color:#008000; font-weight:bold" %)**"href"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account-onboardings/v1/XXX/accounts/NNN"(%%) 134 134 } 135 135 ] 136 136 } 137 -{{/code}} 157 +))) 158 +))) 159 +))) 160 +))) 138 138 139 139 **Resource properties** 140 140 ... ... @@ -186,66 +186,88 @@ 186 186 ==== Requesting list of bills belonging to a specific account ==== 187 187 188 188 189 -{{code language="http" title="**Request**"}} 190 -GET /ledger/credit-account/v1/XXX/accounts/NNN/bills HTTP/1.1 191 -Host: - 192 -Authorization: Bearer <Token> 193 -Content-Type: application/json 212 +(% contenteditable="false" tabindex="-1" %) 213 +((( 214 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|GET /ledger/credit-account/v1/XXX/accounts/NNN/bills HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json" data-widget="xwiki-macro" %) 215 +((( 216 +(% class="box" %) 217 +((( 218 +**Request** 194 194 195 -{{/code}} 220 +(% class="code" %) 221 +((( 222 +(% style="color:#0000ff" %)GET(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/bills**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 223 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 224 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 225 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 226 +))) 227 +))) 228 +))) 229 +))) 196 196 197 197 198 -{{code language="http" title="**Response**"}} 199 -HTTP/1.1 200 OK 200 -Content-Type: application/json 232 +(% contenteditable="false" tabindex="-1" %) 233 +((( 234 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 200 OK Content-Type: application/json { ~"@id~": ~"/ledger/credit-account/v1/501/accounts/NNN/bills?status=open~", ~"items~" : [ { ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645~", ~"dueDate~": ~"2018-12-05~", ~"billDate~": ~"2018-11-15~", ~"billNo~": ~"124645~", ~"billAmount~": 240.00, ~"billType~" : ~"reminder~", ~"status~": ~"open~", ~"activePaymentDetails~": { ~"minimumAmountToBePayed~": 240.00, ~"bankAccountNo~": ~"123~", ~"bankAccountType~": ~"BGSE~", ~"bic~": ~"123456~", ~"iban~": ~"SE12345678945631~", ~"paymentReference~": ~"5465164654663~", ~"paymentOrdersExists~": true, }, ~"document~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document~" }, { ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645~", ~"dueDate~": ~"2018-12-05~", ~"billDate~": ~"2018-11-15~", ~"billNo~": ~"124645~", ~"billAmount~": 240.00, ~"billType~" : ~"bill~", ~"status~": ~"closed~", ~"activePaymentDetails~": null, ~"document~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document~" }, { ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/bill-123645~", ~"dueDate~": ~"2018-12-05~", ~"billDate~": ~"2018-11-15~", ~"billNo~": ~"124645~", ~"billAmount~": 240.00, ~"billType~" : ~"bill~", ~"status~": ~"closed~", ~"activePaymentDetails~": null, ~"document~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document~" } ] }" data-widget="xwiki-macro" %) 235 +((( 236 +(% class="box" %) 237 +((( 238 +**Response** 201 201 202 -{ 203 - "@id": "/ledger/credit-account/v1/501/accounts/NNN/bills?status=open", 204 - "items" : [ 240 +(% class="code" %) 241 +((( 242 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)200(%%) (% style="color:#d2413a; font-weight:bold" %)**OK**(%%) 243 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 244 +\\{ 245 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/501/accounts/NNN/bills?status=open"(%%), 246 + (% style="color:#008000; font-weight:bold" %)**"items"**(%%) : [ 205 205 { 206 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645", 207 - "dueDate": "2018-12-05", 208 - "billDate": "2018-11-15", 209 - "billNo": "124645", 210 - "billAmount": 240.00, 211 - "billType" : "reminder", 212 - "status": "open", 213 - "activePaymentDetails": { 214 - "minimumAmountToBePayed": 240.00, 215 - "bankAccountNo": "123", 216 - "bankAccountType": "BGSE", 217 - "bic": "123456", 218 - "iban": "SE12345678945631", 219 - "paymentReference": "5465164654663", 220 - "paymentOrdersExists": true, 248 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645"(%%), 249 + (% style="color:#008000; font-weight:bold" %)**"dueDate"**(%%): (% style="color:#ba2121" %)"2018-12-05"(%%), 250 + (% style="color:#008000; font-weight:bold" %)**"billDate"**(%%): (% style="color:#ba2121" %)"2018-11-15"(%%), 251 + (% style="color:#008000; font-weight:bold" %)**"billNo"**(%%): (% style="color:#ba2121" %)"124645"(%%), 252 + (% style="color:#008000; font-weight:bold" %)**"billAmount"**(%%): (% style="color:#666666" %)240.00(%%), 253 + (% style="color:#008000; font-weight:bold" %)**"billType"**(%%) : (% style="color:#ba2121" %)"reminder"(%%), 254 + (% style="color:#008000; font-weight:bold" %)**"status"**(%%): (% style="color:#ba2121" %)"open"(%%), 255 + (% style="color:#008000; font-weight:bold" %)**"activePaymentDetails"**(%%): { 256 + (% style="color:#008000; font-weight:bold" %)**"minimumAmountToBePayed"**(%%): (% style="color:#666666" %)240.00(%%), 257 + (% style="color:#008000; font-weight:bold" %)**"bankAccountNo"**(%%): (% style="color:#ba2121" %)"123"(%%), 258 + (% style="color:#008000; font-weight:bold" %)**"bankAccountType"**(%%): (% style="color:#ba2121" %)"BGSE"(%%), 259 + (% style="color:#008000; font-weight:bold" %)**"bic"**(%%): (% style="color:#ba2121" %)"123456"(%%), 260 + (% style="color:#008000; font-weight:bold" %)**"iban"**(%%): (% style="color:#ba2121" %)"SE12345678945631"(%%), 261 + (% style="color:#008000; font-weight:bold" %)**"paymentReference"**(%%): (% style="color:#ba2121" %)"5465164654663"(%%), 262 + (% style="color:#008000; font-weight:bold" %)**"paymentOrdersExists"**(%%): (% style="color:#008000; font-weight:bold" %)**true**(%%), 221 221 }, 222 - "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 264 + (% style="color:#008000; font-weight:bold" %)**"document"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%) 223 223 }, 224 224 { 225 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645", 226 - "dueDate": "2018-12-05", 227 - "billDate": "2018-11-15", 228 - "billNo": "124645", 229 - "billAmount": 240.00, 230 - "billType" : "bill", 231 - "status": "closed", 232 - "activePaymentDetails": null, 233 - "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 267 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645"(%%), 268 + (% style="color:#008000; font-weight:bold" %)**"dueDate"**(%%): (% style="color:#ba2121" %)"2018-12-05"(%%), 269 + (% style="color:#008000; font-weight:bold" %)**"billDate"**(%%): (% style="color:#ba2121" %)"2018-11-15"(%%), 270 + (% style="color:#008000; font-weight:bold" %)**"billNo"**(%%): (% style="color:#ba2121" %)"124645"(%%), 271 + (% style="color:#008000; font-weight:bold" %)**"billAmount"**(%%): (% style="color:#666666" %)240.00(%%), 272 + (% style="color:#008000; font-weight:bold" %)**"billType"**(%%) : (% style="color:#ba2121" %)"bill"(%%), 273 + (% style="color:#008000; font-weight:bold" %)**"status"**(%%): (% style="color:#ba2121" %)"closed"(%%), 274 + (% style="color:#008000; font-weight:bold" %)**"activePaymentDetails"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%), 275 + (% style="color:#008000; font-weight:bold" %)**"document"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%) 234 234 }, 235 235 { 236 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/bill-123645", 237 - "dueDate": "2018-12-05", 238 - "billDate": "2018-11-15", 239 - "billNo": "124645", 240 - "billAmount": 240.00, 241 - "billType" : "bill", 242 - "status": "closed", 243 - "activePaymentDetails": null, 244 - "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 278 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/bill-123645"(%%), 279 + (% style="color:#008000; font-weight:bold" %)**"dueDate"**(%%): (% style="color:#ba2121" %)"2018-12-05"(%%), 280 + (% style="color:#008000; font-weight:bold" %)**"billDate"**(%%): (% style="color:#ba2121" %)"2018-11-15"(%%), 281 + (% style="color:#008000; font-weight:bold" %)**"billNo"**(%%): (% style="color:#ba2121" %)"124645"(%%), 282 + (% style="color:#008000; font-weight:bold" %)**"billAmount"**(%%): (% style="color:#666666" %)240.00(%%), 283 + (% style="color:#008000; font-weight:bold" %)**"billType"**(%%) : (% style="color:#ba2121" %)"bill"(%%), 284 + (% style="color:#008000; font-weight:bold" %)**"status"**(%%): (% style="color:#ba2121" %)"closed"(%%), 285 + (% style="color:#008000; font-weight:bold" %)**"activePaymentDetails"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%), 286 + (% style="color:#008000; font-weight:bold" %)**"document"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%) 245 245 } 246 246 ] 247 247 } 248 -{{/code}} 290 +))) 291 +))) 292 +))) 293 +))) 249 249 250 250 ==== ==== 251 251 ... ... @@ -252,39 +252,61 @@ 252 252 ==== Requesting details of a specific bill ==== 253 253 254 254 255 -{{code language="http" title="**Request**"}} 256 -GET /ledger/credit-account/v1/XXX/accounts/NNN/bills/456 HTTP/1.1 257 -Host: - 258 -Authorization: Bearer <Token> 259 -Content-Type: application/json 300 +(% contenteditable="false" tabindex="-1" %) 301 +((( 302 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|GET /ledger/credit-account/v1/XXX/accounts/NNN/bills/456 HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json" data-widget="xwiki-macro" %) 303 +((( 304 +(% class="box" %) 305 +((( 306 +**Request** 260 260 261 -{{/code}} 308 +(% class="code" %) 309 +((( 310 +(% style="color:#0000ff" %)GET(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/bills/456**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 311 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 312 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 313 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 314 +))) 315 +))) 316 +))) 317 +))) 262 262 263 263 264 -{{code language="http" title="**Response**"}} 265 -HTTP/1.1 200 OK 266 -Content-Type: application/json 320 +(% contenteditable="false" tabindex="-1" %) 321 +((( 322 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 200 OK Content-Type: application/json { ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645~", ~"dueDate~": ~"2018-12-05~", ~"billDate~": ~"2018-11-15~", ~"billNo~": ~"124645~", ~"billAmount~": 240.00, ~"billType~" : ~"reminder~", ~"status~": ~"open~", ~"activePaymentDetails~": { ~"minimumAmountToBePayed~": 240.00, ~"bankAccountNo~": ~"123~", ~"bankAccountType~": ~"BGSE~", ~"bic~": ~"123456~", ~"iban~": ~"SE12345678945631~", ~"paymentReference~": ~"5465164654663~", ~"paymentOrdersExists~": true, }, ~"document~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document~" }" data-widget="xwiki-macro" %) 323 +((( 324 +(% class="box" %) 325 +((( 326 +**Response** 267 267 268 -{ 269 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645", 270 - "dueDate": "2018-12-05", 271 - "billDate": "2018-11-15", 272 - "billNo": "124645", 273 - "billAmount": 240.00, 274 - "billType" : "reminder", 275 - "status": "open", 276 - "activePaymentDetails": { 277 - "minimumAmountToBePayed": 240.00, 278 - "bankAccountNo": "123", 279 - "bankAccountType": "BGSE", 280 - "bic": "123456", 281 - "iban": "SE12345678945631", 282 - "paymentReference": "5465164654663", 283 - "paymentOrdersExists": true, 328 +(% class="code" %) 329 +((( 330 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)200(%%) (% style="color:#d2413a; font-weight:bold" %)**OK**(%%) 331 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 332 +\\{ 333 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645"(%%), 334 + (% style="color:#008000; font-weight:bold" %)**"dueDate"**(%%): (% style="color:#ba2121" %)"2018-12-05"(%%), 335 + (% style="color:#008000; font-weight:bold" %)**"billDate"**(%%): (% style="color:#ba2121" %)"2018-11-15"(%%), 336 + (% style="color:#008000; font-weight:bold" %)**"billNo"**(%%): (% style="color:#ba2121" %)"124645"(%%), 337 + (% style="color:#008000; font-weight:bold" %)**"billAmount"**(%%): (% style="color:#666666" %)240.00(%%), 338 + (% style="color:#008000; font-weight:bold" %)**"billType"**(%%) : (% style="color:#ba2121" %)"reminder"(%%), 339 + (% style="color:#008000; font-weight:bold" %)**"status"**(%%): (% style="color:#ba2121" %)"open"(%%), 340 + (% style="color:#008000; font-weight:bold" %)**"activePaymentDetails"**(%%): { 341 + (% style="color:#008000; font-weight:bold" %)**"minimumAmountToBePayed"**(%%): (% style="color:#666666" %)240.00(%%), 342 + (% style="color:#008000; font-weight:bold" %)**"bankAccountNo"**(%%): (% style="color:#ba2121" %)"123"(%%), 343 + (% style="color:#008000; font-weight:bold" %)**"bankAccountType"**(%%): (% style="color:#ba2121" %)"BGSE"(%%), 344 + (% style="color:#008000; font-weight:bold" %)**"bic"**(%%): (% style="color:#ba2121" %)"123456"(%%), 345 + (% style="color:#008000; font-weight:bold" %)**"iban"**(%%): (% style="color:#ba2121" %)"SE12345678945631"(%%), 346 + (% style="color:#008000; font-weight:bold" %)**"paymentReference"**(%%): (% style="color:#ba2121" %)"5465164654663"(%%), 347 + (% style="color:#008000; font-weight:bold" %)**"paymentOrdersExists"**(%%): (% style="color:#008000; font-weight:bold" %)**true**(%%), 284 284 }, 285 - "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 349 + (% style="color:#008000; font-weight:bold" %)**"document"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%) 286 286 } 287 -{{/code}} 351 +))) 352 +))) 353 +))) 354 +))) 288 288 289 289 == == 290 290 ... ... @@ -330,33 +330,56 @@ 330 330 ===== 331 331 Requesting the resource ===== 332 332 333 -{{code language="http" title="**Request**"}} 334 -GET /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting/ HTTP/1.1 335 -Host: - 336 -Authorization: Bearer <Token> 337 -Content-Type: application/json 338 -{{/code}} 400 +(% contenteditable="false" tabindex="-1" %) 401 +((( 402 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|GET /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting/ HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json" data-widget="xwiki-macro" %) 403 +((( 404 +(% class="box" %) 405 +((( 406 +**Request** 339 339 408 +(% class="code" %) 409 +((( 410 +(% style="color:#0000ff" %)GET(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting/**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 411 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 412 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 413 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 414 +))) 415 +))) 416 +))) 417 +))) 340 340 341 -{{code language="http" title="**Response**"}} 342 -HTTP/1.1 200 OK 343 -Content-Type: application/json 344 344 345 -{ 346 - "@id" : "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting", 347 - "recurringPaymentMethod" : "autogiro", 348 - "recurringPaymentScope" : "fixedRecurring", 349 - "fixedRecurringAmount" : 1500.00, 350 - "parentHREF": "/ledger/credit-account/v1/XXX/accounts/NNN", 351 - "operation" : [ 420 +(% contenteditable="false" tabindex="-1" %) 421 +((( 422 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 200 OK Content-Type: application/json { ~"@id~" : ~"/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting~", ~"recurringPaymentMethod~" : ~"autogiro~", ~"recurringPaymentScope~" : ~"fixedRecurring~", ~"fixedRecurringAmount~" : 1500.00, ~"parentHREF~": ~"/ledger/credit-account/v1/XXX/accounts/NNN~", ~"operation~" : [ { ~"rel~" : ~"partially-update-recurring-payment-consent~", ~"method~" : ~"patch~", ~"href~" : ~"/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent~" } ] }" data-widget="xwiki-macro" %) 423 +((( 424 +(% class="box" %) 425 +((( 426 +**Response** 427 + 428 +(% class="code" %) 429 +((( 430 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)200(%%) (% style="color:#d2413a; font-weight:bold" %)**OK**(%%) 431 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 432 +\\{ 433 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting"(%%), 434 + (% style="color:#008000; font-weight:bold" %)**"recurringPaymentMethod"**(%%) : (% style="color:#ba2121" %)"autogiro"(%%), 435 + (% style="color:#008000; font-weight:bold" %)**"recurringPaymentScope"**(%%) : (% style="color:#ba2121" %)"fixedRecurring"(%%), 436 + (% style="color:#008000; font-weight:bold" %)**"fixedRecurringAmount"**(%%) : (% style="color:#666666" %)1500.00(%%), 437 + (% style="color:#008000; font-weight:bold" %)**"parentHREF"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN"(%%), 438 + (% style="color:#008000; font-weight:bold" %)**"operation"**(%%) : [ 352 352 { 353 - "rel" : "partially-update-recurring-payment-consent", 354 - "method" : "patch", 355 - "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent" 440 + (% style="color:#008000; font-weight:bold" %)**"rel"**(%%) : (% style="color:#ba2121" %)"partially-update-recurring-payment-consent"(%%), 441 + (% style="color:#008000; font-weight:bold" %)**"method"**(%%) : (% style="color:#ba2121" %)"patch"(%%), 442 + (% style="color:#008000; font-weight:bold" %)**"href"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent"(%%) 356 356 } 357 357 ] 358 358 } 359 -{{/code}} 446 +))) 447 +))) 448 +))) 449 +))) 360 360 361 361 ===== Update settings ===== 362 362 ... ... @@ -363,17 +363,28 @@ 363 363 (% class="wikigeneratedid" %) 364 364 Execute http patch towards this resource to change how recurring payments should behave on the specified account 365 365 366 -{{code language="http" title="**Request**"}} 367 -PATCH /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting HTTP/1.1 368 -Host: - 369 -Authorization: Bearer <Token> 370 -Content-Type: application/json 456 +(% contenteditable="false" tabindex="-1" %) 457 +((( 458 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|PATCH /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json { ~"recurringPaymentScope~" : ~"billedAmount~", ~"fixedRecurringAmount~" : 0.00 }" data-widget="xwiki-macro" %) 459 +((( 460 +(% class="box" %) 461 +((( 462 +**Request** 371 371 372 -{ 373 - "recurringPaymentScope" : "billedAmount", 374 - "fixedRecurringAmount" : 0.00 464 +(% class="code" %) 465 +((( 466 +(% style="color:#0000ff" %)PATCH(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 467 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 468 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 469 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 470 +\\{ 471 + (% style="color:#008000; font-weight:bold" %)**"recurringPaymentScope"**(%%) : (% style="color:#ba2121" %)"billedAmount"(%%), 472 + (% style="color:#008000; font-weight:bold" %)**"fixedRecurringAmount"**(%%) : (% style="color:#666666" %)0.00(%%) 375 375 } 376 -{{/code}} 474 +))) 475 +))) 476 +))) 477 +))) 377 377 378 378 (% class="table-bordered table-striped" %) 379 379 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 58px;" %)Modify (patch)|=(% style="width: 1176px;" %)Description ... ... @@ -395,116 +395,160 @@ 395 395 396 396 Execute http post towards this resource to add a new card to the specified account 397 397 398 -{{code language="http" title="**Request**"}} 399 -POST /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1 400 -Host: - 401 -Authorization: Bearer <Token> 402 -Content-Type: application/json 499 +(% contenteditable="false" tabindex="-1" %) 500 +((( 501 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|POST /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json { ~"token~": ~"954c8699-b38f-47a2-b568-668b8837dad8~", ~"PanTrunc~": ~"85479*********648~", ~"deleted~" : false, ~"mainCard~": true, ~"cardHolder~" : { ~"number~" : ~"123465~", ~"name~": ~"test testsson~", ~"nationalConsumerIdentifier~": { ~"value~": ~"19101010-1010~", ~"countryCode~": ~"SE~" } } }" data-widget="xwiki-macro" %) 502 +((( 503 +(% class="box" %) 504 +((( 505 +**Request** 403 403 404 -{ 405 - "token": "954c8699-b38f-47a2-b568-668b8837dad8", 406 - "PanTrunc": "85479*********648", 407 - "deleted" : false, 408 - "mainCard": true, 409 - "cardHolder" : { 410 - "number" : "123465", 411 - "name": "test testsson", 412 - "nationalConsumerIdentifier": { 413 - "value": "19101010-1010", 414 - "countryCode": "SE" 507 +(% class="code" %) 508 +((( 509 +(% style="color:#0000ff" %)POST(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/cards**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 510 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 511 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 512 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 513 +\\{ 514 + (% style="color:#008000; font-weight:bold" %)**"token"**(%%): (% style="color:#ba2121" %)"954c8699-b38f-47a2-b568-668b8837dad8"(%%), 515 + (% style="color:#008000; font-weight:bold" %)**"PanTrunc"**(%%): (% style="color:#ba2121" %)"85479~*~*~*~*~*~*~*~**648"(%%), 516 + (% style="color:#008000; font-weight:bold" %)**"deleted"**(%%) : (% style="color:#008000; font-weight:bold" %)**false**(%%), 517 + (% style="color:#008000; font-weight:bold" %)**"mainCard"**(%%): (% style="color:#008000; font-weight:bold" %)**true**(%%), 518 + (% style="color:#008000; font-weight:bold" %)**"cardHolder"**(%%) : { 519 + (% style="color:#008000; font-weight:bold" %)**"number"**(%%) : (% style="color:#ba2121" %)"123465"(%%), 520 + (% style="color:#008000; font-weight:bold" %)**"name"**(%%): (% style="color:#ba2121" %)"test testsson"(%%), 521 + (% style="color:#008000; font-weight:bold" %)**"nationalConsumerIdentifier"**(%%): { 522 + (% style="color:#008000; font-weight:bold" %)**"value"**(%%): (% style="color:#ba2121" %)"19101010-1010"(%%), 523 + (% style="color:#008000; font-weight:bold" %)**"countryCode"**(%%): (% style="color:#ba2121" %)"SE"(%%) 415 415 } 416 416 } 417 417 } 418 -{{/code}} 527 +))) 528 +))) 529 +))) 530 +))) 419 419 420 420 ==== List cards ==== 421 421 422 -{{code language="http" title="**Request**"}} 423 -GET /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1 424 -Host: - 425 -Authorization: Bearer <Token> 426 -Content-Type: application/json 534 +(% contenteditable="false" tabindex="-1" %) 535 +((( 536 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|GET /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json" data-widget="xwiki-macro" %) 537 +((( 538 +(% class="box" %) 539 +((( 540 +**Request** 427 427 542 +(% class="code" %) 543 +((( 544 +(% style="color:#0000ff" %)GET(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/cards**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 545 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 546 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 547 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 548 + 549 +))) 550 +))) 551 +))) 552 +))) 428 428 429 -{{/code}} 430 430 555 +(% contenteditable="false" tabindex="-1" %) 556 +((( 557 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 200 OK Content-Type: application/json { ~"operations~": null, ~"items~": [ { ~"token~": ~"954c8699-b38f-47a2-b568-668b8837dad8~", ~"PanTrunc~": ~"85479*********648~", ~"deleted~" : false, ~"mainCard~": true, ~"cardHolder~" : { ~"number~" : ~"123465~", ~"name~": ~"test testsson~", ~"nationalConsumerIdentifier~": { ~"value~": ~"19101010-1010~", ~"countryCode~": ~"SE~" } }, ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards/741~" }, { ~"token~": ~"274c8699-b38f-47a2-b568-668b8837dat7~", ~"PanTrunc~": ~"78979*********321~", ~"deleted~" : false, ~"mainCard~": false, ~"cardHolder~" : { ~"number~" : ~"987654~", ~"name~": ~"test testsson~", ~"nationalConsumerIdentifier~": { ~"value~": ~"19101010-1010~", ~"countryCode~": ~"SE~" } }, ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7~" } ], ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards~", ~"view~": { ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=0~", ~"next~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=2~" } }" data-widget="xwiki-macro" %) 558 +((( 559 +(% class="box" %) 560 +((( 561 +**Response** 431 431 432 - {{codelanguage="http" title="**Response**"}}433 - HTTP/1.1 200 OK434 - Content-Type:application/json435 - 436 -{ 437 - "operations": null, 438 - "items": [ 563 +(% class="code" %) 564 +((( 565 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)200(%%) (% style="color:#d2413a; font-weight:bold" %)**OK**(%%) 566 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 567 +\\{ 568 + (% style="color:#008000; font-weight:bold" %)**"operations"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%), 569 + (% style="color:#008000; font-weight:bold" %)**"items"**(%%): [ 439 439 { 440 - "token": "954c8699-b38f-47a2-b568-668b8837dad8", 441 - "PanTrunc": "85479*********648", 442 - "deleted" : false, 443 - "mainCard": true, 444 - "cardHolder" : { 445 - "number" : "123465", 446 - "name": "test testsson", 447 - "nationalConsumerIdentifier": { 448 - "value": "19101010-1010", 449 - "countryCode": "SE" 571 + (% style="color:#008000; font-weight:bold" %)**"token"**(%%): (% style="color:#ba2121" %)"954c8699-b38f-47a2-b568-668b8837dad8"(%%), 572 + (% style="color:#008000; font-weight:bold" %)**"PanTrunc"**(%%): (% style="color:#ba2121" %)"85479~*~*~*~*~*~*~*~**648"(%%), 573 + (% style="color:#008000; font-weight:bold" %)**"deleted"**(%%) : (% style="color:#008000; font-weight:bold" %)**false**(%%), 574 + (% style="color:#008000; font-weight:bold" %)**"mainCard"**(%%): (% style="color:#008000; font-weight:bold" %)**true**(%%), 575 + (% style="color:#008000; font-weight:bold" %)**"cardHolder"**(%%) : { 576 + (% style="color:#008000; font-weight:bold" %)**"number"**(%%) : (% style="color:#ba2121" %)"123465"(%%), 577 + (% style="color:#008000; font-weight:bold" %)**"name"**(%%): (% style="color:#ba2121" %)"test testsson"(%%), 578 + (% style="color:#008000; font-weight:bold" %)**"nationalConsumerIdentifier"**(%%): { 579 + (% style="color:#008000; font-weight:bold" %)**"value"**(%%): (% style="color:#ba2121" %)"19101010-1010"(%%), 580 + (% style="color:#008000; font-weight:bold" %)**"countryCode"**(%%): (% style="color:#ba2121" %)"SE"(%%) 450 450 } 451 451 }, 452 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/741" 583 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards/741"(%%) 453 453 }, 454 454 { 455 - "token": "274c8699-b38f-47a2-b568-668b8837dat7", 456 - "PanTrunc": "78979*********321", 457 - "deleted" : false, 458 - "mainCard": false, 459 - "cardHolder" : { 460 - "number" : "987654", 461 - "name": "test testsson", 462 - "nationalConsumerIdentifier": { 463 - "value": "19101010-1010", 464 - "countryCode": "SE" 586 + (% style="color:#008000; font-weight:bold" %)**"token"**(%%): (% style="color:#ba2121" %)"274c8699-b38f-47a2-b568-668b8837dat7"(%%), 587 + (% style="color:#008000; font-weight:bold" %)**"PanTrunc"**(%%): (% style="color:#ba2121" %)"78979~*~*~*~*~*~*~*~**321"(%%), 588 + (% style="color:#008000; font-weight:bold" %)**"deleted"**(%%) : (% style="color:#008000; font-weight:bold" %)**false**(%%), 589 + (% style="color:#008000; font-weight:bold" %)**"mainCard"**(%%): (% style="color:#008000; font-weight:bold" %)**false**(%%), 590 + (% style="color:#008000; font-weight:bold" %)**"cardHolder"**(%%) : { 591 + (% style="color:#008000; font-weight:bold" %)**"number"**(%%) : (% style="color:#ba2121" %)"987654"(%%), 592 + (% style="color:#008000; font-weight:bold" %)**"name"**(%%): (% style="color:#ba2121" %)"test testsson"(%%), 593 + (% style="color:#008000; font-weight:bold" %)**"nationalConsumerIdentifier"**(%%): { 594 + (% style="color:#008000; font-weight:bold" %)**"value"**(%%): (% style="color:#ba2121" %)"19101010-1010"(%%), 595 + (% style="color:#008000; font-weight:bold" %)**"countryCode"**(%%): (% style="color:#ba2121" %)"SE"(%%) 465 465 } 466 466 }, 467 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7" 598 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7"(%%) 468 468 } 469 469 ], 470 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards", 471 - "view": { 472 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=0", 473 - "next": "/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=2" 601 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards"(%%), 602 + (% style="color:#008000; font-weight:bold" %)**"view"**(%%): { 603 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=0"(%%), 604 + (% style="color:#008000; font-weight:bold" %)**"next"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=2"(%%) 474 474 } 475 475 } 476 -{{/code}} 607 +))) 608 +))) 609 +))) 610 +))) 477 477 478 478 ==== Get ==== 479 479 480 -{{code language="http" title="**Response**"}} 481 -HTTP/1.1 200 OK 482 -Content-Type: application/json 614 +(% contenteditable="false" tabindex="-1" %) 615 +((( 616 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 200 OK Content-Type: application/json { ~"token~": ~"954c8699-b38f-47a2-b568-668b8837dad8~", ~"PanTrunc~": ~"85479*********648~", ~"deleted~" : false, ~"mainCard~": true, ~"cardHolder~" : { ~"number~" : ~"123465~", ~"name~": ~"test testsson~", ~"nationalConsumerIdentifier~": { ~"value~": ~"19101010-1010~", ~"countryCode~": ~"SE~" } }, ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8~", ~"parentHREF~": ~"/ledger/credit-account/v1/XXX/accounts/NNN~", ~"operation~" : [ { ~"rel~" : ~"partial-update~", ~"method~" : ~"patch~", ~"href~" : ~"/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8~" } ] }" data-widget="xwiki-macro" %) 617 +((( 618 +(% class="box" %) 619 +((( 620 +**Response** 483 483 484 -{ 485 - "token": "954c8699-b38f-47a2-b568-668b8837dad8", 486 - "PanTrunc": "85479*********648", 487 - "deleted" : false, 488 - "mainCard": true, 489 - "cardHolder" : { 490 - "number" : "123465", 491 - "name": "test testsson", 492 - "nationalConsumerIdentifier": { 493 - "value": "19101010-1010", 494 - "countryCode": "SE" 622 +(% class="code" %) 623 +((( 624 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)200(%%) (% style="color:#d2413a; font-weight:bold" %)**OK**(%%) 625 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 626 +\\{ 627 + (% style="color:#008000; font-weight:bold" %)**"token"**(%%): (% style="color:#ba2121" %)"954c8699-b38f-47a2-b568-668b8837dad8"(%%), 628 + (% style="color:#008000; font-weight:bold" %)**"PanTrunc"**(%%): (% style="color:#ba2121" %)"85479~*~*~*~*~*~*~*~**648"(%%), 629 + (% style="color:#008000; font-weight:bold" %)**"deleted"**(%%) : (% style="color:#008000; font-weight:bold" %)**false**(%%), 630 + (% style="color:#008000; font-weight:bold" %)**"mainCard"**(%%): (% style="color:#008000; font-weight:bold" %)**true**(%%), 631 + (% style="color:#008000; font-weight:bold" %)**"cardHolder"**(%%) : { 632 + (% style="color:#008000; font-weight:bold" %)**"number"**(%%) : (% style="color:#ba2121" %)"123465"(%%), 633 + (% style="color:#008000; font-weight:bold" %)**"name"**(%%): (% style="color:#ba2121" %)"test testsson"(%%), 634 + (% style="color:#008000; font-weight:bold" %)**"nationalConsumerIdentifier"**(%%): { 635 + (% style="color:#008000; font-weight:bold" %)**"value"**(%%): (% style="color:#ba2121" %)"19101010-1010"(%%), 636 + (% style="color:#008000; font-weight:bold" %)**"countryCode"**(%%): (% style="color:#ba2121" %)"SE"(%%) 495 495 } 496 496 }, 497 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8", 498 - "parentHREF": "/ledger/credit-account/v1/XXX/accounts/NNN", 499 - "operation" : [ 639 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8"(%%), 640 + (% style="color:#008000; font-weight:bold" %)**"parentHREF"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN"(%%), 641 + (% style="color:#008000; font-weight:bold" %)**"operation"**(%%) : [ 500 500 { 501 - "rel" : "partial-update", 502 - "method" : "patch", 503 - "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8" 643 + (% style="color:#008000; font-weight:bold" %)**"rel"**(%%) : (% style="color:#ba2121" %)"partial-update"(%%), 644 + (% style="color:#008000; font-weight:bold" %)**"method"**(%%) : (% style="color:#ba2121" %)"patch"(%%), 645 + (% style="color:#008000; font-weight:bold" %)**"href"**(%%) : (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8"(%%) 504 504 } 505 505 ] 506 506 } 507 -{{/code}} 649 +))) 650 +))) 651 +))) 652 +))) 508 508 509 509 (% class="table-bordered table-striped" %) 510 510 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 62px;" %)Modify (patch)|=(% style="width: 1401px;" %)Description ... ... @@ -520,55 +520,77 @@ 520 520 === Transactions === 521 521 522 522 523 -{{code language="http" title="**Request**"}} 524 -GET /ledger/credit-account/v1/XXX/accounts/NNN/transactions HTTP/1.1 525 -Host: - 526 -Authorization: Bearer <Token> 527 -Content-Type: application/json 668 +(% contenteditable="false" tabindex="-1" %) 669 +((( 670 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|GET /ledger/credit-account/v1/XXX/accounts/NNN/transactions HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json" data-widget="xwiki-macro" %) 671 +((( 672 +(% class="box" %) 673 +((( 674 +**Request** 528 528 676 +(% class="code" %) 677 +((( 678 +(% style="color:#0000ff" %)GET(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/transactions**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 679 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 680 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 681 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 682 + 683 +))) 684 +))) 685 +))) 686 +))) 529 529 530 -{{/code}} 531 531 689 +(% contenteditable="false" tabindex="-1" %) 690 +((( 691 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 200 OK Content-Type: application/json { ~"operations~": null, ~"items~": [ { ~"type~": ~"payment~", ~"description~": ~"~", ~"amount~": 200.00, ~"billed~": false|true, ~"date~": ~"2019-10-09~", ~"reserveDate~": null }, { ~"type~": ~"purchase~", ~"description~": ~"testbutiken, köpref. 12345689~", ~"amount~": 200.00, ~"billed~": false|true, ~"date~": ~"2019-10-09~", ~"reserveDate~": ~"2019-10-05~", }, { ~"type~": ~"credit~", ~"description~": ~"~", ~"amount~": 200.00, ~"billed~": false|true, ~"date~": ~"2019-10-09~", ~"reserveDate~": ~"2019-10-05~" } ], ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01~", ~"view~": { ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=0~", ~"next~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=2~" } }" data-widget="xwiki-macro" %) 692 +((( 693 +(% class="box" %) 694 +((( 695 +**Response** 532 532 533 - {{codelanguage="http" title="**Response**"}}534 - HTTP/1.1 200 OK535 - Content-Type:application/json536 - 537 -{ 538 - "operations": null, 539 - "items": [ 697 +(% class="code" %) 698 +((( 699 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)200(%%) (% style="color:#d2413a; font-weight:bold" %)**OK**(%%) 700 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 701 +\\{ 702 + (% style="color:#008000; font-weight:bold" %)**"operations"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%), 703 + (% style="color:#008000; font-weight:bold" %)**"items"**(%%): [ 540 540 { 541 - "type": "payment", 542 - "description": "", 543 - "amount": 200.00, 544 - "billed": false|true, 545 - "date": "2019-10-09", 546 - "reserveDate": null 705 + (% style="color:#008000; font-weight:bold" %)**"type"**(%%): (% style="color:#ba2121" %)"payment"(%%), 706 + (% style="color:#008000; font-weight:bold" %)**"description"**(%%): (% style="color:#ba2121" %)""(%%), 707 + (% style="color:#008000; font-weight:bold" %)**"amount"**(%%): (% style="color:#666666" %)200.00(%%), 708 + (% style="color:#008000; font-weight:bold" %)**"billed"**(%%): (% style="color:#008000; font-weight:bold" %)**false**(% style="border:1px solid #ff0000" %)|(% style="color:#008000; font-weight:bold" %)**true**(%%), 709 + (% style="color:#008000; font-weight:bold" %)**"date"**(%%): (% style="color:#ba2121" %)"2019-10-09"(%%), 710 + (% style="color:#008000; font-weight:bold" %)**"reserveDate"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%) 547 547 }, 548 548 { 549 - "type": "purchase", 550 - "description": "testbutiken, köpref. 12345689", 551 - "amount": 200.00, 552 - "billed": false|true, 553 - "date": "2019-10-09", 554 - "reserveDate": "2019-10-05", 713 + (% style="color:#008000; font-weight:bold" %)**"type"**(%%): (% style="color:#ba2121" %)"purchase"(%%), 714 + (% style="color:#008000; font-weight:bold" %)**"description"**(%%): (% style="color:#ba2121" %)"testbutiken, köpref. 12345689"(%%), 715 + (% style="color:#008000; font-weight:bold" %)**"amount"**(%%): (% style="color:#666666" %)200.00(%%), 716 + (% style="color:#008000; font-weight:bold" %)**"billed"**(%%): (% style="color:#008000; font-weight:bold" %)**false**(% style="border:1px solid #ff0000" %)|(% style="color:#008000; font-weight:bold" %)**true**(%%), 717 + (% style="color:#008000; font-weight:bold" %)**"date"**(%%): (% style="color:#ba2121" %)"2019-10-09"(%%), 718 + (% style="color:#008000; font-weight:bold" %)**"reserveDate"**(%%): (% style="color:#ba2121" %)"2019-10-05"(%%), 555 555 }, 556 556 { 557 - "type": "credit", 558 - "description": "", 559 - "amount": 200.00, 560 - "billed": false|true, 561 - "date": "2019-10-09", 562 - "reserveDate": "2019-10-05" 721 + (% style="color:#008000; font-weight:bold" %)**"type"**(%%): (% style="color:#ba2121" %)"credit"(%%), 722 + (% style="color:#008000; font-weight:bold" %)**"description"**(%%): (% style="color:#ba2121" %)""(%%), 723 + (% style="color:#008000; font-weight:bold" %)**"amount"**(%%): (% style="color:#666666" %)200.00(%%), 724 + (% style="color:#008000; font-weight:bold" %)**"billed"**(%%): (% style="color:#008000; font-weight:bold" %)**false**(% style="border:1px solid #ff0000" %)|(% style="color:#008000; font-weight:bold" %)**true**(%%), 725 + (% style="color:#008000; font-weight:bold" %)**"date"**(%%): (% style="color:#ba2121" %)"2019-10-09"(%%), 726 + (% style="color:#008000; font-weight:bold" %)**"reserveDate"**(%%): (% style="color:#ba2121" %)"2019-10-05"(%%) 563 563 } 564 564 ], 565 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01", 566 - "view": { 567 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=0", 568 - "next": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=2" 729 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01"(%%), 730 + (% style="color:#008000; font-weight:bold" %)**"view"**(%%): { 731 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=0"(%%), 732 + (% style="color:#008000; font-weight:bold" %)**"next"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=2"(%%) 569 569 } 570 570 } 571 -{{/code}} 735 +))) 736 +))) 737 +))) 738 +))) 572 572 573 573 (% class="table-bordered table-striped" %) 574 574 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 621px;" %)Description ... ... @@ -587,37 +587,59 @@ 587 587 === Reservations === 588 588 589 589 590 -{{code language="http" title="**Request**"}} 591 -GET /ledger/credit-account/v1/XXX/accounts/NNN/reservations HTTP/1.1 592 -Host: - 593 -Authorization: Bearer <Token> 594 -Content-Type: application/json 757 +(% contenteditable="false" tabindex="-1" %) 758 +((( 759 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Request**~"|-|GET /ledger/credit-account/v1/XXX/accounts/NNN/reservations HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json" data-widget="xwiki-macro" %) 760 +((( 761 +(% class="box" %) 762 +((( 763 +**Request** 595 595 765 +(% class="code" %) 766 +((( 767 +(% style="color:#0000ff" %)GET(%%) (% style="color:#0000ff; font-weight:bold" %)**/ledger/credit-account/v1/XXX/accounts/NNN/reservations**(%%) (% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) 768 +(% style="color:#7d9029" %)Host(% style="color:#666666" %):(%%) - 769 +(% style="color:#7d9029" %)Authorization(% style="color:#666666" %):(%%) Bearer <Token> 770 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 771 + 772 +))) 773 +))) 774 +))) 775 +))) 596 596 597 -{{/code}} 598 598 778 +(% contenteditable="false" tabindex="-1" %) 779 +((( 780 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 201 Created Content-Type: application/json { ~"operations~": null, ~"items~": [ { ~"amount~": 200.00, ~"description~" : ~"~", ~"date~": ~"2019-10-05~", }, { ~"amount~": 450.00, ~"description~" : ~"~", ~"date~": ~"2019-10-02~", }, ], ~"@id~": ~"/ledger/credit-account/v1/XXX/accounts/NNN/reservations~", }" data-widget="xwiki-macro" %) 781 +((( 782 +(% class="box" %) 783 +((( 784 +**Response** 599 599 600 - {{codelanguage="http" title="**Response**"}}601 - HTTP/1.1 201 Created602 - Content-Type:application/json603 - 604 -{ 605 - "operations": null, 606 - "items": [ 786 +(% class="code" %) 787 +((( 788 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)201(%%) (% style="color:#d2413a; font-weight:bold" %)**Created**(%%) 789 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/json 790 +\\{ 791 + (% style="color:#008000; font-weight:bold" %)**"operations"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%), 792 + (% style="color:#008000; font-weight:bold" %)**"items"**(%%): [ 607 607 { 608 - "amount": 200.00, 609 - "description" : "" ,610 - "date": "2019-10-05", 794 + (% style="color:#008000; font-weight:bold" %)**"amount"**(%%): (% style="color:#666666" %)200.00(%%), 795 + (% style="color:#008000; font-weight:bold" %)**"description"**(%%) : (% style="color:#ba2121" %)""(%%), 796 + (% style="color:#008000; font-weight:bold" %)**"date"**(%%): (% style="color:#ba2121" %)"2019-10-05"(%%), 611 611 }, 612 612 { 613 - "amount": 450.00, 614 - "description" : "" ,615 - "date": "2019-10-02", 799 + (% style="color:#008000; font-weight:bold" %)**"amount"**(%%): (% style="color:#666666" %)450.00(%%), 800 + (% style="color:#008000; font-weight:bold" %)**"description"**(%%) : (% style="color:#ba2121" %)""(%%), 801 + (% style="color:#008000; font-weight:bold" %)**"date"**(%%): (% style="color:#ba2121" %)"2019-10-02"(%%), 616 616 }, 617 617 ], 618 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/reservations", 804 + (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/reservations"(%%), 619 619 } 620 -{{/code}} 806 +))) 807 +))) 808 +))) 809 +))) 621 621 622 622 (% class="table-bordered table-striped" %) 623 623 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 621px;" %)Description ... ... @@ -667,20 +667,31 @@ 667 667 668 668 Below is an example of a problem that will be returned if buyer##.nationalConsumerIdentifier.value## is not valid in the authorization post request. 669 669 670 -{{code language="http" title="**Response**"}} 671 -HTTP/1.1 400 Error 672 -Content-Type: application/problem+json 859 +(% contenteditable="false" tabindex="-1" %) 860 +((( 861 +(% class="macro" data-macro="startmacro:code|-|language=~"http~" title=~"**Response**~"|-|HTTP/1.1 400 Error Content-Type: application/problem+json { ~"Type~": ~"http://[DNS]/ledger/invoice-purchase/problems/validation~", ~"Title~": ~"A validation error occurred~", ~"Status~": 400, ~"Instance~": null, ~"Detail~": ~"A validation error occurred. Please fix the problems mentioned in the 'problems' property below.~", ~"Problems~": [ { ~"buyer.nationalConsumerIdentifier.value~": ~"Not a valid SE nationalConsumerIdentifier~" } ] }" data-widget="xwiki-macro" %) 862 +((( 863 +(% class="box" %) 864 +((( 865 +**Response** 673 673 674 -{ 675 - "Type": "http://[DNS]/ledger/invoice-purchase/problems/validation", 676 - "Title": "A validation error occurred", 677 - "Status": 400, 678 - "Instance": null, 679 - "Detail": "A validation error occurred. Please fix the problems mentioned in the 'problems' property below.", 680 - "Problems": [ 867 +(% class="code" %) 868 +((( 869 +(% style="color:#008000; font-weight:bold" %)**HTTP**(% style="color:#666666" %)/1.1(%%) (% style="color:#666666" %)400(%%) (% style="color:#d2413a; font-weight:bold" %)**Error**(%%) 870 +(% style="color:#7d9029" %)Content-Type(% style="color:#666666" %):(%%) application/problem+json 871 +\\{ 872 + (% style="color:#008000; font-weight:bold" %)**"Type"**(%%): (% style="color:#ba2121" %)"http:~/~/[DNS]/ledger/invoice-purchase/problems/validation"(%%), 873 + (% style="color:#008000; font-weight:bold" %)**"Title"**(%%): (% style="color:#ba2121" %)"A validation error occurred"(%%), 874 + (% style="color:#008000; font-weight:bold" %)**"Status"**(%%): (% style="color:#666666" %)400(%%), 875 + (% style="color:#008000; font-weight:bold" %)**"Instance"**(%%): (% style="color:#008000; font-weight:bold" %)**null**(%%), 876 + (% style="color:#008000; font-weight:bold" %)**"Detail"**(%%): (% style="color:#ba2121" %)"A validation error occurred. Please fix the problems mentioned in the 'problems' property below."(%%), 877 + (% style="color:#008000; font-weight:bold" %)**"Problems"**(%%): [ 681 681 { 682 - "buyer.nationalConsumerIdentifier.value": "Not a valid SE nationalConsumerIdentifier" 879 + (% style="color:#008000; font-weight:bold" %)**"buyer.nationalConsumerIdentifier.value"**(%%): (% style="color:#ba2121" %)"Not a valid SE nationalConsumerIdentifier"(%%) 683 683 } 684 684 ] 685 685 } 686 -{{/code}} 883 +))) 884 +))) 885 +))) 886 +)))