Changes for page ../credit-account

Last modified by David Persson on 2022/08/11 10:52
From version 79.1
edited by David Persson
on 2020/01/30 16:07
To version 80.1
edited by David Persson
on 2020/01/30 16:28
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -328,11 +328,14 @@
328 328  
329 329  === recurring-payment-consent ===
330 330  
331 +(% class="wikigeneratedid" %)
331 331  This resource contain information/settings related to how recurring payments should behave on this account.
332 -
333 333  
334 +=====
335 +Requesting the resource =====
336 +
334 334  {{code language="http" title="**Request**"}}
335 -POST /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent HTTP/1.1
338 +GET /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent/settings HTTP/1.1
336 336  Host: -
337 337  Authorization: Bearer <Token>
338 338  Content-Type: application/json
... ... @@ -344,9 +344,9 @@
344 344  Content-Type: application/json
345 345  
346 346  {
347 - "@id" : "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent",
350 + "@id" : "/ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent/settings",
348 348   "recurringPaymentMethod" : "autogiro",
349 - "recurringPaymentScope" : "fixedRecurring | totalDebt | billedAmount | onDemand",
352 + "recurringPaymentScope" : "fixedRecurring",
350 350   "fixedRecurringAmount" : 1500.00,
351 351   "parentHREF": "/ledger/credit-account/v1/XXX/accounts/NNN"
352 352  }
... ... @@ -353,7 +353,23 @@
353 353  
354 354  {{/code}}
355 355  
359 +===== Update settings =====
356 356  
361 +(% class="wikigeneratedid" %)
362 +Execute http patch towards this resource to change how recurring payments should behave on the specified account
363 +
364 +{{code language="http" title="**Request**"}}
365 +PATCH /ledger/credit-account/v1/XXX/accounts/NNN/recurring-payment-consent/settings HTTP/1.1
366 +Host: -
367 +Authorization: Bearer <Token>
368 +Content-Type: application/json
369 +
370 +{
371 + "recurringPaymentScope" : "billedAmount",
372 + "fixedRecurringAmount" : 0.00
373 +}
374 +{{/code}}
375 +
357 357  (% class="table-bordered table-striped" %)
358 358  |=(% style="width: 337px;" %)Property|=(% style="width: 205px;" %)Data type|=(% style="width: 208px;" %)Format|=(% style="width: 58px;" %)Modify (patch)|=(% style="width: 1176px;" %)Description
359 359  |(% style="width:337px" %)recurringPaymentMethod|(% style="width:205px" %)string|(% style="width:208px" %) |(% style="background-color:palegreen; width:58px" %) |(% style="width:1176px" %)recurringPaymentMethods:(((
... ... @@ -370,8 +370,10 @@
370 370  
371 371  === Cards ===
372 372  
373 -==== Post ====
392 +==== Post ====
374 374  
394 +Execute http post towards this resource to add a new card to the specified account
395 +
375 375  {{code language="http" title="**Request**"}}
376 376  POST /ledger/credit-account/v1/XXX/accounts/NNN/cards HTTP/1.1
377 377  Host: -