Create Debtor Paymentplan
Creates a new payment plan
PUT /v1/Debtors/{debtorGuid}/Paymentplans
Use the Test or Production base URL configured under Overview.
Request parameters
| Field | Location | Mandatory | Description |
|---|---|---|---|
| debtorGuid | path | Yes | string |
Headers and authentication
Use OAuth 2.0 Client Credentials and the Authorization header with a Bearer access token, as described under Overview.
Request body fields
| Field path | Mandatory | Description |
|---|---|---|
| active | No | integer <int32> or null Type of payment plan 1 = Active 2 = Proposal (default) |
| paymentPlanType | Yes | integer <int32> Type of payment plan 1 = Annuity 2 = Annuity, limited 3 = Linear 4 = Linear, limited 5 = Debt relief |
| numberOfPayments | No | integer <int32> or null Total number of payments |
| amount | No | number <double> or null Amount to pay per period (typically monthly) |
| currencyCode | No | string or null Currency code, e.g. SEK, NOK, EUR etc. |
| registrationFee | No | number <double> or null Registration fee for the plan |
| invoiceFee | No | number <double> or null Invoice fee for each payment in the plan |
| reminderFee | No | number <double> or null Reminder fee for late payment |
| feeCurrencyCode | No | string or null Currency code, e.g. SEK, NOK, EUR, etc. for the fees |
| payments | No | array of object or null Deviating payments/instalments in the payment plan |
| payments[].paymentNo | Yes | integer <int32> Payment order number |
| payments[].specifiedDueDate | No | string <date-time> or null Last payment date |
| payments[].specifiedAmount | No | number <double> or null Total amount to pay |
| cases | No | array of string or null Cases (Guid) that should be covered by the payment plan. If not given, all active cases without an active payment plan will be selected |
| cases[] | Yes | string — |
Response fields
HTTP 201
| Field path | Mandatory | Description |
|---|---|---|
| paymentPlanGuid | No | string or null Payment plan unique identifier. |
| registrationDate | Yes | string <date-time> Registration date |
| active | Yes | integer <int32> Type of payment plan 0 = Inactive 1 = Active 2 = Proposal |
| paymentPlanType | Yes | integer <int32> Type of payment plan 1 = Annuity 2 = Annuity, limited 3 = Linear 4 = Linear, limited 5 = Debt relief |
| numberOfPayments | Yes | integer <int32> Total number of payments |
| remainingNumberOfPayments | Yes | integer <int32> Remaining number of payments |
| currencyCode | No | string or null Currency code, e.g. SEK, NOK, EUR etc. |
| registrationFee | Yes | number <double> Registration fee for the plan |
| invoiceFee | Yes | number <double> Invoice fee for each payment in the plan |
| reminderFee | Yes | number <double> Reminder fee for late payment |
| feeCurrencyCode | No | string or null Currency code, e.g. SEK, NOK, EUR, etc. for the fees |
| totalAmount | Yes | number <double> Total amount to pay for the whole plan |
| totalPrincipal | Yes | number <double> Total principal amount to pay for the whole plan |
| totalInterest | Yes | number <double> Total interest amount to pay for the whole plan |
| totalFee | Yes | number <double> Total fee amount to pay for the whole plan |
| annualPercentage | No | number <double> or null Annual percentage calculated for the whole plan |
| payments | No | array of object or null All payments/instalments for the payment plan |
| payments[].paymentNo | Yes | integer <int32> Payment order number |
| payments[].invoiceDate | Yes | string <date-time> Date when to send the invoice |
| payments[].dueDate | Yes | string <date-time> Last payment date |
| payments[].instalment | Yes | number <double> Instalment part of the payment |
| payments[].interest | Yes | number <double> Interest part of the payment |
| payments[].fee | Yes | number <double> Fee part of the payment |
| payments[].amount | Yes | number <double> Total amount to pay |
| payments[].unpaid | Yes | number <double> Amount still unpaid for this payment |
| payments[].paidDate | No | string <date-time> or null Date when this invoice was paid |
| cases | No | array of object or null All cases covered by the payment plan |
| cases[].caseGuid | No | string or null Case unique identifier. |
| cases[].caseNumber | No | string or null Case number |
| cases[].clientReference | No | string or null Client reference number |
| cases[].clientGuid | No | string or null Client unique identifier |
| periods | No | array of object or null Periods with different terms in the payment plan |
| periods[].periodNo | Yes | integer <int32> Payment plan unique identifier. |
| periods[].startDate | Yes | string <date-time> Start date |
| periods[].endDate | No | string <date-time> or null End date |
| periods[].intervalType | Yes | integer <int32> Type of interval 0 = Unknown 1 = Day in month (interval is day in month) 2 = Last day in month (interval is offset from last day) 3 = Monthly 4 = Days 5 = One time |
| periods[].interval | Yes | integer <int32> Interval or day offset depending on IntervalType |
| periods[].amount | Yes | number <double> Amount per period. Might differ between periods. |
| periods[].paymentType | Yes | integer <int32> Type of payment 1 = Ordinary payment 2 = Direct debit 3 = Netting 4 = Enforced netting |
HTTP 400
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 401
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 403
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 408
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
