Before you start
Environments
Environment | Testing | Production |
---|---|---|
Checkout | https://checkoutapistage.svea.com | https://checkoutapi.svea.com |
Order Management | https://paymentadminapistage.svea.com | https://paymentadminapi.svea.com |
Instore | https://webpayinstoreapistage.svea.com | https://webpayinstoreapi.svea.com |
Network rules
Make sure your firewall is allowed to make requests to the desired environment.
It is recommended to make the outgoing request rules based on the domain name, but if your firewall employs IP restrictions please allow following IP ranges:
- 193.13.207.0/24
- 193.105.138.0/24
Request and response formats
Both request and response body payload is UTF8 encoded JSON data.
Currency, Quantity & Percentage Format
caution
Quantity, UnitPrice, DiscountPercent, DiscountAmount and VatPercent for each order row expected to be given in minor units.
var Cart = {
Items: [
{
// In this example we create
Quantity: 100, // one(1.00) item
Name: "Computer", // called “Computer”
UnitPrice: 500000, // with a price of 5000.00 SEK,
DiscountPercent: 1000, // a discount of 10.00%
VatPercent: 2500, // and 25.00% VAT
},
],
};
Example: 15.25 SEK will be written as 1525, 120 SEK will be written as 12000 etc.