Changes for page ../credit-account
Last modified by dap on 2022/08/11 10:52
From version 99.1
edited by dap
on 2020/02/06 22:30
on 2020/02/06 22:30
To version 100.1
edited by dap
on 2020/02/06 22:36
on 2020/02/06 22:36
Change comment: Rollback to version 87.3
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 - (% contenteditable="false" tabindex="-1" %)[[image:1579213343157-343.png||data-widget="image"height="325" width="346"]]23 +[[image:1579213343157-343.png||height="325" width="346"]] 24 24 25 25 (% id="HRoutesegments" %) 26 26 == Introduction == ... ... @@ -66,98 +66,75 @@ 66 66 === Requesting details of a specific account === 67 67 68 68 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** 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}} 76 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 83 -))) 84 -))) 85 -))) 86 -))) 87 87 77 +{{code language="http" title="**Response**"}} 78 +HTTP/1.1 200 OK 79 +Content-Type: application/json 88 88 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(%%) 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 119 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"(%%)100 + "bankPayment": { 101 + "bankAccountNo": "123", 102 + "bankAccountType": "BGSE", 103 + "bic": "123456", 104 + "iban": "SE12345678945631", 105 + "paymentReference": "54867165675646" 126 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"**(%%): [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" : [ 135 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"(%%)116 + "rel" : "add-card-info", 117 + "method" : "post", 118 + "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards" 139 139 }, 140 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"(%%)121 + "rel" : "request-close-account", 122 + "method" : "post", 123 + "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/request-close-account" 144 144 }, 145 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"(%%)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" 149 149 }, 150 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"(%%)131 + "rel" : "partial-update", 132 + "method" : "patch", 133 + "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/NNN" 154 154 } 155 155 ] 156 156 } 157 -))) 158 -))) 159 -))) 160 -))) 137 +{{/code}} 161 161 162 162 **Resource properties** 163 163 ... ... @@ -209,88 +209,66 @@ 209 209 ==== Requesting list of bills belonging to a specific account ==== 210 210 211 211 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** 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 219 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 226 -))) 227 -))) 228 -))) 229 -))) 195 +{{/code}} 230 230 231 231 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** 198 +{{code language="http" title="**Response**"}} 199 +HTTP/1.1 200 OK 200 +Content-Type: application/json 239 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"**(%%) : [ 202 +{ 203 + "@id": "/ledger/credit-account/v1/501/accounts/NNN/bills?status=open", 204 + "items" : [ 247 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**(%%),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, 263 263 }, 264 - (%style="color:#008000; font-weight:bold" %)**"document"**(%%):(% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%)222 + "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 265 265 }, 266 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"(%%)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" 276 276 }, 277 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"(%%)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" 287 287 } 288 288 ] 289 289 } 290 -))) 291 -))) 292 -))) 293 -))) 248 +{{/code}} 294 294 295 295 ==== ==== 296 296 ... ... @@ -297,61 +297,39 @@ 297 297 ==== Requesting details of a specific bill ==== 298 298 299 299 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** 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 307 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 314 -))) 315 -))) 316 -))) 317 -))) 261 +{{/code}} 318 318 319 319 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** 264 +{{code language="http" title="**Response**"}} 265 +HTTP/1.1 200 OK 266 +Content-Type: application/json 327 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**(%%), 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, 348 348 }, 349 - (%style="color:#008000; font-weight:bold" %)**"document"**(%%):(% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document"(%%)285 + "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 350 350 } 351 -))) 352 -))) 353 -))) 354 -))) 287 +{{/code}} 355 355 356 356 == == 357 357 ... ... @@ -397,56 +397,33 @@ 397 397 ===== 398 398 Requesting the resource ===== 399 399 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** 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}} 407 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 414 -))) 415 -))) 416 -))) 417 -))) 418 418 341 +{{code language="http" title="**Response**"}} 342 +HTTP/1.1 200 OK 343 +Content-Type: application/json 419 419 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"**(%%) : [ 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" : [ 439 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"(%%)353 + "rel" : "partially-update-recurring-payment-consent", 354 + "method" : "patch", 355 + "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent" 443 443 } 444 444 ] 445 445 } 446 -))) 447 -))) 448 -))) 449 -))) 359 +{{/code}} 450 450 451 451 ===== Update settings ===== 452 452 ... ... @@ -453,28 +453,17 @@ 453 453 (% class="wikigeneratedid" %) 454 454 Execute http patch towards this resource to change how recurring payments should behave on the specified account 455 455 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** 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 463 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(%%) 372 +{ 373 + "recurringPaymentScope" : "billedAmount", 374 + "fixedRecurringAmount" : 0.00 473 473 } 474 -))) 475 -))) 476 -))) 477 -))) 376 +{{/code}} 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 ... ... @@ -496,160 +496,116 @@ 496 496 497 497 Execute http post towards this resource to add a new card to the specified account 498 498 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** 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 506 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"(%%) 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" 524 524 } 525 525 } 526 526 } 527 -))) 528 -))) 529 -))) 530 -))) 418 +{{/code}} 531 531 532 532 ==== List cards ==== 533 533 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** 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 541 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 - 549 -))) 550 -))) 551 -))) 552 -))) 553 553 429 +{{/code}} 554 554 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** 562 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/json567 - \\{568 - (%style="color:#008000; font-weight:bold" %)**"operations"**(%%):(% style="color:#008000; font-weight:bold" %)**null**(%%),569 - (%style="color:#008000; font-weight:bold" %)**"items"**(%%): [432 +{{code language="http" title="**Response**"}} 433 +HTTP/1.1 200 OK 434 +Content-Type: application/json 435 + 436 +{ 437 + "operations": null, 438 + "items": [ 570 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"(%%)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" 581 581 } 582 582 }, 583 - (%style="color:#008000; font-weight:bold" %)**"@id"**(%%):(% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/cards/741"(%%)452 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/741" 584 584 }, 585 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"(%%)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" 596 596 } 597 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"(%%)467 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7" 599 599 } 600 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"(%%)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" 605 605 } 606 606 } 607 -))) 608 -))) 609 -))) 610 -))) 476 +{{/code}} 611 611 612 612 ==== Get ==== 613 613 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** 480 +{{code language="http" title="**Response**"}} 481 +HTTP/1.1 200 OK 482 +Content-Type: application/json 621 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"(%%) 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" 637 637 } 638 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"**(%%): [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" : [ 642 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"(%%)501 + "rel" : "partial-update", 502 + "method" : "patch", 503 + "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8" 646 646 } 647 647 ] 648 648 } 649 -))) 650 -))) 651 -))) 652 -))) 507 +{{/code}} 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 ... ... @@ -665,77 +665,55 @@ 665 665 === Transactions === 666 666 667 667 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** 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 675 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 - 683 -))) 684 -))) 685 -))) 686 -))) 687 687 530 +{{/code}} 688 688 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** 696 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/json701 - \\{702 - (%style="color:#008000; font-weight:bold" %)**"operations"**(%%):(% style="color:#008000; font-weight:bold" %)**null**(%%),703 - (%style="color:#008000; font-weight:bold" %)**"items"**(%%): [533 +{{code language="http" title="**Response**"}} 534 +HTTP/1.1 200 OK 535 +Content-Type: application/json 536 + 537 +{ 538 + "operations": null, 539 + "items": [ 704 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**(%%)541 + "type": "payment", 542 + "description": "", 543 + "amount": 200.00, 544 + "billed": false|true, 545 + "date": "2019-10-09", 546 + "reserveDate": null 711 711 }, 712 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"(%%),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", 719 719 }, 720 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"(%%)557 + "type": "credit", 558 + "description": "", 559 + "amount": 200.00, 560 + "billed": false|true, 561 + "date": "2019-10-09", 562 + "reserveDate": "2019-10-05" 727 727 } 728 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"(%%)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" 733 733 } 734 734 } 735 -))) 736 -))) 737 -))) 738 -))) 571 +{{/code}} 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 ... ... @@ -754,59 +754,37 @@ 754 754 === Reservations === 755 755 756 756 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** 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 764 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 - 772 -))) 773 -))) 774 -))) 775 -))) 776 776 597 +{{/code}} 777 777 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** 785 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/json790 - \\{791 - (%style="color:#008000; font-weight:bold" %)**"operations"**(%%):(% style="color:#008000; font-weight:bold" %)**null**(%%),792 - (%style="color:#008000; font-weight:bold" %)**"items"**(%%): [600 +{{code language="http" title="**Response**"}} 601 +HTTP/1.1 201 Created 602 +Content-Type: application/json 603 + 604 +{ 605 + "operations": null, 606 + "items": [ 793 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"(%%),608 + "amount": 200.00, 609 + "description" : "", 610 + "date": "2019-10-05", 797 797 }, 798 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"(%%),613 + "amount": 450.00, 614 + "description" : "", 615 + "date": "2019-10-02", 802 802 }, 803 803 ], 804 - (%style="color:#008000; font-weight:bold" %)**"@id"**(%%):(% style="color:#ba2121" %)"/ledger/credit-account/v1/XXX/accounts/NNN/reservations"(%%),618 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/reservations", 805 805 } 806 -))) 807 -))) 808 -))) 809 -))) 620 +{{/code}} 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 ... ... @@ -856,31 +856,20 @@ 856 856 857 857 Below is an example of a problem that will be returned if buyer##.nationalConsumerIdentifier.value## is not valid in the authorization post request. 858 858 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** 670 +{{code language="http" title="**Response**"}} 671 +HTTP/1.1 400 Error 672 +Content-Type: application/problem+json 866 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"**(%%): [ 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": [ 878 878 { 879 - (%style="color:#008000; font-weight:bold" %)**"buyer.nationalConsumerIdentifier.value"**(%%):(% style="color:#ba2121" %)"Not a valid SE nationalConsumerIdentifier"(%%)682 + "buyer.nationalConsumerIdentifier.value": "Not a valid SE nationalConsumerIdentifier" 880 880 } 881 881 ] 882 882 } 883 -))) 884 -))) 885 -))) 886 -))) 686 +{{/code}}