Get Available Campaigns
This request returns a list of available B2C/B2B part payment campaigns.
info
HTTP status code 200 indicates success, everything else indicates a failure.
Endpoint
Method: GET
/api/util/GetAvailablePartPaymentCampaigns?isCompany={isCompany}&amount={amount}
Request
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
isCompany | Boolean | ||
amount | Decimal | Is used to calculate a monthly amount. Setting the parameter amount will also filter out campaigns that do not meet the amount requirement. |
Response
A list of campaigns.
- Response Model
- Response Sample
Name | Description | Type | Additional Information |
---|---|---|---|
CampaignCode | Int64 | ||
Description | String | ||
PaymentPlanType | Standard (0), InterestFree (1), InterestAndAmortizationFree (2) | ||
ContractLengthInMonths | Int32 | ||
MonthlyAnnuityFactor | Decimal | ||
InitialFee | Decimal | ||
NotificationFee | Decimal | ||
InterestRatePercent | Decimal | ||
NumberOfInterestFreeMonths | Int32 | ||
NumberOfPaymentFreeMonths | Int32 | ||
FromAmount | Decimal | ||
ToAmount | Decimal | ||
MonthlyAmount | Decimal / Null | Is only calculated when an amount was added to the request. |
application/json
[
{
"CampaignCode": 25,
"Description": "sample string 26",
"PaymentPlanType": 0,
"ContractLengthInMonths": 27,
"MonthlyAnnuityFactor": 28.0,
"InitialFee": 29.0,
"NotificationFee": 30.0,
"InterestRatePercent": 31.0,
"NumberOfInterestFreeMonths": 32,
"NumberOfPaymentFreeMonths": 33,
"FromAmount": 34.0,
"ToAmount": 35.0,
"MonthlyAmount": 188.00
},
{
"CampaignCode": 25,
"Description": "sample string 26",
"PaymentPlanType": 0,
"ContractLengthInMonths": 27,
"MonthlyAnnuityFactor": 28.0,
"InitialFee": 29.0,
"NotificationFee": 30.0,
"InterestRatePercent": 31.0,
"NumberOfInterestFreeMonths": 32,
"NumberOfPaymentFreeMonths": 33,
"FromAmount": 34.00,
"ToAmount": 35.00,
"MonthlyAmount": 188.00
}
]
Part payment Widget
Part payment widget can be displayed in Product pages.
MonthlyAmount from Response is the value used in the widget.
- Sample Code
<p class="svea-part-payment-widget">
<img src="https://cdn.svea.com/webpay/Svea_Primary_RGB_medium.png">
Delbetalning från <span>98 <span>kr</span></span>/månad
</p>
<style>
.svea-part-payment-widget {
font-weight: 700;
display: block;
}
.svea-part-payment-widget img {
width: 70px;
display: inline-block;
vertical-align: middle;
margin-right: 14px;
}
</style>