Get Available Campaigns
GetPaymentPlanParamsEu
This method retrieves information about all the campaigns that are associated with the current ClientId. Use this information to display details about the possible payment plan options to customers. The returned CampaignCode is used when creating a payment plan.
Input
GetPaymentPlanParamsEuRequest
Field | R | Type | Description |
---|---|---|---|
Empty | - | N/A | Intentionally left empty. |
Output
GetPaymentPlanParamsEuResponse
Field | U | R | Type | Description |
---|---|---|---|---|
CampaignCodes | * | - | Array of CampaignCodeInfo | |
ResultCode | * | - | Integer | See Result Code table |
Structures
CampaignCodeInfo
Field | U | R | Type | Description |
---|---|---|---|---|
CampaignCode | * | - | Long | Unique id for this campaign. |
Description | - | - | String | Short description of the campaign. |
PaymentPlanType | - | - | PaymentPlanTypeCode | Enumeration defining what kind of campaign it is. |
ContractLengthInMonths | - | - | Integer | Total length of campaign. |
MonthlyAnnuityFactor | - | - | Decimal | How much of the total sum is to be paid each payment. |
InitialFee | - | - | Decimal | Starting fee. |
NotificationFee | - | - | Decimal | Recurring fee for each payment. |
InterestRatePercent | - | - | Decimal | Payment plan interest. |
NumberOfInterestFreeMonths | - | - | Integer | Number of months before interest is added onto the payment plan. |
NumberOfPaymentFreeMonths | - | - | Integer | Number of months before the first payment. |
FromAmount | - | - | Decimal | Lowest amount the campaign is valid for. |
ToAmount | - | - | Decimal | Highest amount the campaign is valid for. |
Enumerations
PaymentPlanTypeCode
Value | Description |
---|---|
Standard | A standard payment plan. |
InterestFree | An interest free payment plan. |
InterestAndAmortizationFree | A payment plan where there is an initial payment and an interest free period. |
GetAccountCreditParamsEu
This method retrieves parameters related to account credit campaigns for the current client. It provides the available account credit campaign codes along with associated details to help determine account credit options.
Input
GetAccountCreditParamsEuRequest
Field | R | Type | Description |
---|---|---|---|
Empty | - | N/A | Intentionally left empty. |
Output
GetAccountCreditParamsEuResponse
Field | R | Type | Description |
---|---|---|---|
AccountCreditCampaignCodes | - | Array of AccountCreditCampaignCodeInfo | |
ResultCode | - | Integer | See Result Code table |
Structures
AccountCreditCampaignCodeInfo
Field | U | R | Type | Description |
---|---|---|---|---|
CampaignCode | * | - | Long | Unique id for this campaign. |
Description | - | - | String | Short description of the campaign. |
InitialFee | - | - | Decimal | Fee for placing account credit order. |
LowestAmountToPayPerMonth | - | - | Decimal | Minimum amount invoiced for this account credit campaign code. |
LowestPercentToPayPerMonth | - | - | Decimal | Minimum percent invoiced for this account credit campaign code. |
LowestOrderAmount | - | - | Decimal | Lowest order amount to enable an account credit order to be placed. |
InterestRatePercent | - | - | Decimal | Interest rate in percent. |
NotificationFee | - | - | Decimal | Recurring fee for each payment. |
Notes
- Note 1: For any given order, the hypothetical minimum amount to pay per month that should be presented to the customer is the larger of either LowestAmountToPayPerMonth or LowestPercentToPayPerMonth multiplied by the order total, provided that the order total also equals or exceeds LowestOrderAmount.
- Note 2: The total account credit amount that will be invoiced each month is based not on a single order but on the total outstanding account credit for this customer and client (see BasicRequest). That is, the invoiced amount will be based on the sum of all outstanding account credit purchases for this customer and client.
Calculation Examples
For example, assume you have a product that costs 129 SEK and you want to display the minimum monthly payment for a payment plan.
Steps:
- Run a GetPaymentPlanParamsEu request to retrieve the campaign values.
- Filter the possible payment plans by comparing the product price with the campaign's
FromAmount
andToAmount
. - In this case, the only valid campaign is:
<CampaignCodeInfo>
<CampaignCode>999999</CampaignCode>
<Description>Dela upp betalningen på 24 månader</Description>
<PaymentPlanType>Standard</PaymentPlanType>
<ContractLengthInMonths>24</ContractLengthInMonths>
<MonthlyAnnuityFactor>0.050020791054524637</MonthlyAnnuityFactor>
<InitialFee>0</InitialFee>
<NotificationFee>29</NotificationFee>
<InterestRatePercent>18.2</InterestRatePercent>
<NrOfInterestFreeMonths>0</NrOfInterestFreeMonths>
<NrOfPaymentFreeMonths>0</NrOfPaymentFreeMonths>
<FromAmount>1</FromAmount>
<ToAmount>30000</ToAmount>
</CampaignCodeInfo>