Changes for page account

Last modified by David Persson on 2024/02/21 07:42
From version 7.1
edited by Rasmus Enekvist
on 2021/09/24 07:49
To version 8.1
edited by Rasmus Enekvist
on 2021/09/24 07:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -365,7 +365,7 @@
365 365  Execute http post towards this resource to add a new card to the specified account
366 366  
367 367  {{code language="http" title="**Request**"}}
368 -POST /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1
368 +POST /ledger/account/v1/XXX/accounts/NNN/cards HTTP/1.1
369 369  Host: -
370 370  Authorization: Bearer <Token>
371 371  Content-Type: application/json
... ... @@ -391,7 +391,7 @@
391 391  This operation is used to replace an existing card, and is therefore executed on the card to be replaced. The contract of the postbody is the same as POST towards the cards resource.
392 392  
393 393  {{code language="http" title="**Request**"}}
394 -POST /ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8/add-replacement-card HTTP/1.1
394 +POST /ledger/account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8/add-replacement-card HTTP/1.1
395 395  Host: -
396 396  Authorization: Bearer <Token>
397 397  Content-Type: application/json
... ... @@ -415,7 +415,7 @@
415 415  ==== List cards on an account ====
416 416  
417 417  {{code language="http" title="**Request**"}}
418 -GET /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1
418 +GET /ledger/account/v1/XXX/accounts/NNN/cards HTTP/1.1
419 419  Host: -
420 420  Authorization: Bearer <Token>
421 421  Content-Type: application/json
... ... @@ -444,7 +444,7 @@
444 444   "countryCode": "SE"
445 445   }
446 446   },
447 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/741"
447 + "@id": "/ledger/account/v1/XXX/accounts/NNN/cards/741"
448 448   },
449 449   {
450 450   "token": "274c8699-b38f-47a2-b568-668b8837dat7",
... ... @@ -459,13 +459,13 @@
459 459   "countryCode": "SE"
460 460   }
461 461   },
462 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7"
462 + "@id": "/ledger/account/v1/XXX/accounts/NNN/cards/274c8699-b38f-47a2-b568-668b8837dat7"
463 463   }
464 464   ],
465 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards",
465 + "@id": "/ledger/account/v1/XXX/accounts/NNN/cards",
466 466   "view": {
467 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=0",
468 - "next": "/ledger/credit-account/v1/XXX/accounts/NNN/cards?$top=2&$skip=2"
467 + "@id": "/ledger/account/v1/XXX/accounts/NNN/cards?$top=2&$skip=0",
468 + "next": "/ledger/account/v1/XXX/accounts/NNN/cards?$top=2&$skip=2"
469 469   }
470 470  }
471 471  {{/code}}
... ... @@ -474,7 +474,7 @@
474 474  
475 475  
476 476  {{code language="http" title="**Request**"}}
477 -GET /ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8 HTTP/1.1
477 +GET /ledger/account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8 HTTP/1.1
478 478  Host: -
479 479  Authorization: Bearer <Token>
480 480  Content-Type: application/json
... ... @@ -499,17 +499,17 @@
499 499   "countryCode": "SE"
500 500   }
501 501   },
502 - "@id": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8",
503 - "parentHREF": "/ledger/credit-account/v1/XXX/accounts/NNN",
502 + "@id": "/ledger/account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8",
503 + "parentHREF": "/ledger/account/v1/XXX/accounts/NNN",
504 504   "operation" : [
505 505   {
506 506   "rel" : "partial-update",
507 507   "method" : "patch",
508 - "href" : "/ledger/credit-account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8"
508 + "href" : "/ledger/account/v1/XXX/accounts/NNN/cards/954c8699-b38f-47a2-b568-668b8837dad8"
509 509   },
510 510   {
511 511   "rel": "add-replacement-card",
512 - "href": "/ledger/credit-account/v1/XXX/accounts/NNN/cards/5823a2d9-34d2-4bc4-8b6d-1e27f4511363/add-replacement-card",
512 + "href": "/ledger/account/v1/XXX/accounts/NNN/cards/5823a2d9-34d2-4bc4-8b6d-1e27f4511363/add-replacement-card",
513 513   "method": "POST"
514 514   }
515 515   ]