Changes for page ../credit-account
Last modified by Helge Dahl on 2020/02/06 17:55
From version 78.2
edited by David Persson
on 2020/01/30 16:01
on 2020/01/30 16:01
To version 79.1
edited by David Persson
on 2020/01/30 16:07
on 2020/01/30 16:07
Change comment: There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -61,7 +61,7 @@ 61 61 62 62 63 63 {{code language="http" title="**Request**"}} 64 -GET /ledger/credit-account/v1/XXX/accounts/ YYYHTTP/1.164 +GET /ledger/credit-account/v1/XXX/accounts/NNN HTTP/1.1 65 65 Host: - 66 66 Authorization: Bearer <Token> 67 67 Content-Type: application/json ... ... @@ -73,7 +73,7 @@ 73 73 Content-Type: application/json 74 74 75 75 { 76 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 1234567",76 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN", 77 77 "accountNo": "1234567", 78 78 "startDate": "2018-05-21", 79 79 "description": null, ... ... @@ -85,7 +85,7 @@ 85 85 "totalBalance" : -1900.0, 86 86 "reservedAmount": 50.0, 87 87 "availableAmount": 50.0, 88 - "openBill" : "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/456",88 + "openBill" : "/ledger/credit-account/v1/XXX/accounts/NNN/bills/456", 89 89 "charityDonation": true, 90 90 "interestRate": { 91 91 "debtInterest" : 10.00, ... ... @@ -98,33 +98,33 @@ 98 98 "iban": "SE12345678945631", 99 99 "paymentReference": "54867165675646" 100 100 }, 101 - "activePaymentOrders": "/ledger/credit-account/v1/XXX/accounts/ 123456/active-payment-orders",102 - "recurringPaymentConsent": "/ledger/credit-account/v1/XXX/accounts/ 123456/recurring-payment",101 + "activePaymentOrders": "/ledger/credit-account/v1/XXX/accounts/NNN/active-payment-orders", 102 + "recurringPaymentConsent": "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment", 103 103 "cards": "/ledger/credit-account/v1/XXX/accounts/123456/cards", 104 - "transactions": "/ledger/credit-account/v1/XXX/accounts/ 123456/transactions",104 + "transactions": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions", 105 105 "currency": "sek", 106 - "bills": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills",106 + "bills": "/ledger/credit-account/v1/XXX/accounts/NNN/bills", 107 107 "customer": "/ledger/customers/v1/XXX/customer/123456", 108 108 "operation" : [ 109 109 { 110 110 "rel" : "add-card-info", 111 111 "method" : "post", 112 - "href" : "/ledger/credit-account/v1/XXX/accounts/ 123456/cards"112 + "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards" 113 113 }, 114 114 { 115 115 "rel" : "request-close-account", 116 116 "method" : "post", 117 - "href" : "/ledger/credit-account/v1/XXX/accounts/ 123456/request-close-account"117 + "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/request-close-account" 118 118 }, 119 119 { 120 120 "rel" : "apply-for-raised-credit-limit", 121 121 "method" : "post", 122 - "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/ 123456/apply-for-raised-credit-limit"122 + "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/NNN/apply-for-raised-credit-limit" 123 123 }, 124 124 { 125 125 "rel" : "partial-update", 126 126 "method" : "patch", 127 - "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/ 123456"127 + "href" : "/ledger/credit-account-onboardings/v1/XXX/accounts/NNN" 128 128 } 129 129 ] 130 130 } ... ... @@ -191,7 +191,7 @@ 191 191 192 192 193 193 {{code language="http" title="**Request**"}} 194 -GET /ledger/credit-account/v1/XXX/accounts/ 123/bills HTTP/1.1194 +GET /ledger/credit-account/v1/XXX/accounts/NNN/bills HTTP/1.1 195 195 Host: - 196 196 Authorization: Bearer <Token> 197 197 Content-Type: application/json ... ... @@ -204,10 +204,10 @@ 204 204 Content-Type: application/json 205 205 206 206 { 207 - "@id": "/ledger/credit-account/v1/501/accounts/ 123456/bills?status=open",207 + "@id": "/ledger/credit-account/v1/501/accounts/NNN/bills?status=open", 208 208 "items" : [ 209 209 { 210 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/reminder-123645",210 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645", 211 211 "dueDate": "2018-12-05", 212 212 "billDate": "2018-11-15", 213 213 "billNo": "124645", ... ... @@ -223,10 +223,10 @@ 223 223 "paymentReference": "5465164654663", 224 224 "paymentOrdersExists": true, 225 225 }, 226 - "document": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/reminder-124645/document"226 + "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 227 227 }, 228 228 { 229 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/reminder-123645",229 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645", 230 230 "dueDate": "2018-12-05", 231 231 "billDate": "2018-11-15", 232 232 "billNo": "124645", ... ... @@ -234,10 +234,10 @@ 234 234 "billType" : "bill", 235 235 "status": "closed", 236 236 "activePaymentDetails": null, 237 - "document": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/reminder-124645/document"237 + "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 238 238 }, 239 239 { 240 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/bill-123645",240 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/bill-123645", 241 241 "dueDate": "2018-12-05", 242 242 "billDate": "2018-11-15", 243 243 "billNo": "124645", ... ... @@ -245,7 +245,7 @@ 245 245 "billType" : "bill", 246 246 "status": "closed", 247 247 "activePaymentDetails": null, 248 - "document": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/reminder-124645/document"248 + "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 249 249 } 250 250 ] 251 251 } ... ... @@ -257,7 +257,7 @@ 257 257 258 258 259 259 {{code language="http" title="**Request**"}} 260 -GET /ledger/credit-account/v1/XXX/accounts/ 123/bills/456 HTTP/1.1260 +GET /ledger/credit-account/v1/XXX/accounts/NNN/bills/456 HTTP/1.1 261 261 Host: - 262 262 Authorization: Bearer <Token> 263 263 Content-Type: application/json ... ... @@ -270,7 +270,7 @@ 270 270 Content-Type: application/json 271 271 272 272 { 273 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/reminder-123645",273 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-123645", 274 274 "dueDate": "2018-12-05", 275 275 "billDate": "2018-11-15", 276 276 "billNo": "124645", ... ... @@ -286,7 +286,7 @@ 286 286 "paymentReference": "5465164654663", 287 287 "paymentOrdersExists": true, 288 288 }, 289 - "document": "/ledger/credit-account/v1/XXX/accounts/ 123456/bills/reminder-124645/document"289 + "document": "/ledger/credit-account/v1/XXX/accounts/NNN/bills/reminder-124645/document" 290 290 } 291 291 {{/code}} 292 292 ... ... @@ -332,7 +332,7 @@ 332 332 333 333 334 334 {{code language="http" title="**Request**"}} 335 -POST /ledger/credit-account/v1/XXX/accounts/ 123/recurring-payment-consent HTTP/1.1335 +POST /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent HTTP/1.1 336 336 Host: - 337 337 Authorization: Bearer <Token> 338 338 Content-Type: application/json ... ... @@ -344,11 +344,11 @@ 344 344 Content-Type: application/json 345 345 346 346 { 347 - "@id" : "/ledger/credit-account/v1/XXX/accounts/ 123456/recurring-payment-consent",347 + "@id" : "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent", 348 348 "recurringPaymentMethod" : "autogiro", 349 349 "recurringPaymentScope" : "fixedRecurring | totalDebt | billedAmount | onDemand", 350 350 "fixedRecurringAmount" : 1500.00, 351 - "parentHREF": "/ledger/credit-account/v1/XXX/accounts/ 123456"351 + "parentHREF": "/ledger/credit-account/v1/XXX/accounts/NNN" 352 352 } 353 353 354 354 {{/code}} ... ... @@ -370,15 +370,39 @@ 370 370 371 371 === Cards === 372 372 373 - Listcards373 +==== Post ==== 374 374 375 375 {{code language="http" title="**Request**"}} 376 -POST /ledger/credit-account/v1/XXX/accounts/ 123/cards HTTP/1.1376 +POST /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1 377 377 Host: - 378 378 Authorization: Bearer <Token> 379 379 Content-Type: application/json 380 380 381 +{ 382 + "token": "954c8699-b38f-47a2-b568-668b8837dad8", 383 + "PanTrunc": "85479*********648", 384 + "deleted" : false, 385 + "mainCard": true, 386 + "cardHolder" : { 387 + "number" : "123465", 388 + "name": "test testsson", 389 + "nationalConsumerIdentifier": { 390 + "value": "19101010-1010", 391 + "countryCode": "SE" 392 + } 393 + } 394 +} 395 +{{/code}} 381 381 397 +==== List cards ==== 398 + 399 +{{code language="http" title="**Request**"}} 400 +GET /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1 401 +Host: - 402 +Authorization: Bearer <Token> 403 +Content-Type: application/json 404 + 405 + 382 382 {{/code}} 383 383 384 384 ... ... @@ -402,7 +402,7 @@ 402 402 "countryCode": "SE" 403 403 } 404 404 }, 405 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/cards/741"429 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/741" 406 406 }, 407 407 { 408 408 "token": "274c8699-b38f-47a2-b568-668b8837dat7", ... ... @@ -417,26 +417,17 @@ 417 417 "countryCode": "SE" 418 418 } 419 419 }, 420 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/cards/742"444 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7" 421 421 } 422 422 ], 423 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/cards",447 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards", 424 424 "view": { 425 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/cards?$top=2&$skip=0",426 - "next": "/ledger/credit-account/v1/XXX/accounts/ 123456/cards?$top=2&$skip=2"449 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=0", 450 + "next": "/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=2" 427 427 } 428 428 } 429 429 {{/code}} 430 430 431 -{{code language="http" title="**Request**"}} 432 -POST /ledger/credit-account/v1/XXX/accounts/123/cards/456 HTTP/1.1 433 -Host: - 434 -Authorization: Bearer <Token> 435 -Content-Type: application/json 436 - 437 - 438 -{{/code}} 439 - 440 440 ==== Get ==== 441 441 442 442 {{code language="http" title="**Response**"}} ... ... @@ -456,13 +456,13 @@ 456 456 "countryCode": "SE" 457 457 } 458 458 }, 459 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/cards/741",460 - "parentHREF": "/ledger/credit-account/v1/XXX/accounts/ 123456",474 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8", 475 + "parentHREF": "/ledger/credit-account/v1/XXX/accounts/NNN", 461 461 "operation" : [ 462 462 { 463 463 "rel" : "partial-update", 464 464 "method" : "patch", 465 - "href" : "/ledger/credit-account/v1/XXX/accounts/ 123456/cards/741"480 + "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8" 466 466 } 467 467 ] 468 468 } ... ... @@ -483,7 +483,7 @@ 483 483 484 484 485 485 {{code language="http" title="**Request**"}} 486 -POST /ledger/credit-account/v1/XXX/accounts/ 123/transactions HTTP/1.1501 +POST /ledger/credit-account/v1/XXX/accounts/NNN/transactions HTTP/1.1 487 487 Host: - 488 488 Authorization: Bearer <Token> 489 489 Content-Type: application/json ... ... @@ -524,10 +524,10 @@ 524 524 "reserveDate": "2019-10-05" 525 525 } 526 526 ], 527 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/transactions?fromDate=2019-10-01",542 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01", 528 528 "view": { 529 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/transactions?fromDate=2019-10-01&$top=2&$skip=0",530 - "next": "/ledger/credit-account/v1/XXX/accounts/ 123456/transactions?fromDate=2019-10-01&$top=2&$skip=2"544 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=0", 545 + "next": "/ledger/credit-account/v1/XXX/accounts/NNN/transactions?fromDate=2019-10-01&$top=2&$skip=2" 531 531 } 532 532 } 533 533 {{/code}} ... ... @@ -550,7 +550,7 @@ 550 550 551 551 552 552 {{code language="http" title="**Request**"}} 553 -POST /ledger/credit-account/v1/XXX/accounts/ 123/reservations HTTP/1.1568 +POST /ledger/credit-account/v1/XXX/accounts/NNN/reservations HTTP/1.1 554 554 Host: - 555 555 Authorization: Bearer <Token> 556 556 Content-Type: application/json ... ... @@ -577,7 +577,7 @@ 577 577 "date": "2019-10-02", 578 578 }, 579 579 ], 580 - "@id": "/ledger/credit-account/v1/XXX/accounts/ 123456/reservations",595 + "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/reservations", 581 581 } 582 582 {{/code}} 583 583