Changes for page ../credit-account
Last modified by Helge Dahl on 2020/02/06 17:55
From version 88.1
edited by David Persson
on 2020/02/04 13:47
on 2020/02/04 13:47
To version 89.1
edited by David Persson
on 2020/02/06 15:33
on 2020/02/06 15:33
Change comment: There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -68,96 +68,18 @@ 68 68 69 69 (% contenteditable="false" tabindex="-1" %) 70 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** 76 - 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 71 +{{code language="http" title="**Request**"}} 72 +GET /ledger/credit-account/v1/XXX/accounts/NNN HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json 73 +{{/code}} 83 83 ))) 84 -))) 85 -))) 86 -))) 87 87 88 88 89 89 (% contenteditable="false" tabindex="-1" %) 90 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(%%) 119 - }, 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"(%%) 126 - }, 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"**(%%) : [ 135 - { 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"(%%) 139 - }, 140 - { 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"(%%) 144 - }, 145 - { 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"(%%) 149 - }, 150 - { 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"(%%) 154 - } 155 - ] 156 -} 79 +{{code language="http" title="**Response**"}} 80 +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" } ] } 81 +{{/code}} 157 157 ))) 158 -))) 159 -))) 160 -))) 161 161 162 162 **Resource properties** 163 163 ... ... @@ -211,86 +211,18 @@ 211 211 212 212 (% contenteditable="false" tabindex="-1" %) 213 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** 219 - 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 136 +{{code language="http" title="**Request**"}} 137 +GET /ledger/credit-account/v1/XXX/accounts/NNN/bills HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json 138 +{{/code}} 226 226 ))) 227 -))) 228 -))) 229 -))) 230 230 231 231 232 232 (% contenteditable="false" tabindex="-1" %) 233 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** 239 - 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"**(%%) : [ 247 - { 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**(%%), 263 - }, 264 - (% style="color:#008000; font-weight:bold" %)**"document"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%) 265 - }, 266 - { 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"(%%) 276 - }, 277 - { 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"(%%) 287 - } 288 - ] 289 -} 144 +{{code language="http" title="**Response**"}} 145 +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" } ] } 146 +{{/code}} 290 290 ))) 291 -))) 292 -))) 293 -))) 294 294 295 295 ==== ==== 296 296 ... ... @@ -299,59 +299,18 @@ 299 299 300 300 (% contenteditable="false" tabindex="-1" %) 301 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** 307 - 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 156 +{{code language="http" title="**Request**"}} 157 +GET /ledger/credit-account/v1/XXX/accounts/NNN/bills/456 HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json 158 +{{/code}} 314 314 ))) 315 -))) 316 -))) 317 -))) 318 318 319 319 320 320 (% contenteditable="false" tabindex="-1" %) 321 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** 327 - 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**(%%), 348 - }, 349 - (% style="color:#008000; font-weight:bold" %)**"document"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%) 350 -} 164 +{{code language="http" title="**Response**"}} 165 +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" } 166 +{{/code}} 351 351 ))) 352 -))) 353 -))) 354 -))) 355 355 356 356 == == 357 357 ... ... @@ -399,54 +399,18 @@ 399 399 400 400 (% contenteditable="false" tabindex="-1" %) 401 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** 407 - 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 215 +{{code language="http" title="**Request**"}} 216 +GET /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-setting/ HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json 217 +{{/code}} 414 414 ))) 415 -))) 416 -))) 417 -))) 418 418 419 419 420 420 (% contenteditable="false" tabindex="-1" %) 421 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"**(%%) : [ 439 - { 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"(%%) 443 - } 444 - ] 445 -} 223 +{{code language="http" title="**Response**"}} 224 +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" } ] } 225 +{{/code}} 446 446 ))) 447 -))) 448 -))) 449 -))) 450 450 451 451 ===== Update settings ===== 452 452 ... ... @@ -455,26 +455,10 @@ 455 455 456 456 (% contenteditable="false" tabindex="-1" %) 457 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** 463 - 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(%%) 473 -} 235 +{{code language="http" title="**Request**"}} 236 +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 } 237 +{{/code}} 474 474 ))) 475 -))) 476 -))) 477 -))) 478 478 479 479 (% class="table-bordered table-striped" %) 480 480 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 58px;" %)Modify (patch)|=(% style="width: 1176px;" %)Description ... ... @@ -498,158 +498,36 @@ 498 498 499 499 (% contenteditable="false" tabindex="-1" %) 500 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** 506 - 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"(%%) 524 - } 525 - } 526 -} 262 +{{code language="http" title="**Request**"}} 263 +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" } } } 264 +{{/code}} 527 527 ))) 528 -))) 529 -))) 530 -))) 531 531 532 532 ==== List cards ==== 533 533 534 534 (% contenteditable="false" tabindex="-1" %) 535 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** 541 - 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 - 271 +{{code language="http" title="**Request**"}} 272 +GET /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json 273 +{{/code}} 549 549 ))) 550 -))) 551 -))) 552 -))) 553 553 554 554 555 555 (% contenteditable="false" tabindex="-1" %) 556 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** 562 - 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"**(%%): [ 570 - { 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"(%%) 581 - } 582 - }, 583 - (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards/741"(%%) 584 - }, 585 - { 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"(%%) 596 - } 597 - }, 598 - (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7"(%%) 599 - } 600 - ], 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"(%%) 605 - } 606 -} 279 +{{code language="http" title="**Response**"}} 280 +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" } } 281 +{{/code}} 607 607 ))) 608 -))) 609 -))) 610 -))) 611 611 612 612 ==== Get ==== 613 613 614 614 (% contenteditable="false" tabindex="-1" %) 615 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** 621 - 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"(%%) 637 - } 638 - }, 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"**(%%) : [ 642 - { 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"(%%) 646 - } 647 - ] 648 -} 288 +{{code language="http" title="**Response**"}} 289 +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" } ] } 290 +{{/code}} 649 649 ))) 650 -))) 651 -))) 652 -))) 653 653 654 654 (% class="table-bordered table-striped" %) 655 655 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 62px;" %)Modify (patch)|=(% style="width: 1401px;" %)Description ... ... @@ -667,75 +667,18 @@ 667 667 668 668 (% contenteditable="false" tabindex="-1" %) 669 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** 675 - 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 - 309 +{{code language="http" title="**Request**"}} 310 +GET /ledger/credit-account/v1/XXX/accounts/NNN/transactions HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json 311 +{{/code}} 683 683 ))) 684 -))) 685 -))) 686 -))) 687 687 688 688 689 689 (% contenteditable="false" tabindex="-1" %) 690 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** 696 - 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"**(%%): [ 704 - { 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**(%%) 711 - }, 712 - { 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"(%%), 719 - }, 720 - { 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"(%%) 727 - } 728 - ], 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"(%%) 733 - } 734 -} 317 +{{code language="http" title="**Response**"}} 318 +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" } } 319 +{{/code}} 735 735 ))) 736 -))) 737 -))) 738 -))) 739 739 740 740 (% class="table-bordered table-striped" %) 741 741 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 621px;" %)Description ... ... @@ -756,57 +756,18 @@ 756 756 757 757 (% contenteditable="false" tabindex="-1" %) 758 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** 764 - 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 - 341 +{{code language="http" title="**Request**"}} 342 +GET /ledger/credit-account/v1/XXX/accounts/NNN/reservations HTTP/1.1 Host: - Authorization: Bearer <Token> Content-Type: application/json 343 +{{/code}} 772 772 ))) 773 -))) 774 -))) 775 -))) 776 776 777 777 778 778 (% contenteditable="false" tabindex="-1" %) 779 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** 785 - 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"**(%%): [ 793 - { 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"(%%), 797 - }, 798 - { 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"(%%), 802 - }, 803 - ], 804 - (% style="color:#008000; font-weight:bold" %)**"@id"**(%%): (% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/reservations"(%%), 805 -} 349 +{{code language="http" title="**Response**"}} 350 +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", } 351 +{{/code}} 806 806 ))) 807 -))) 808 -))) 809 -))) 810 810 811 811 (% class="table-bordered table-striped" %) 812 812 |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 621px;" %)Description ... ... @@ -858,29 +858,7 @@ 858 858 859 859 (% contenteditable="false" tabindex="-1" %) 860 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** 866 - 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"**(%%): [ 878 - { 879 - (% style="color:#008000; font-weight:bold" %)**"buyer.nationalConsumerIdentifier.value"**(%%): (% style="color:#ba2121" %)"Not a valid SE nationalConsumerIdentifier"(%%) 880 - } 881 - ] 882 -} 404 +{{code language="http" title="**Response**"}} 405 +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" } ] } 406 +{{/code}} 883 883 ))) 884 -))) 885 -))) 886 -)))