Introduction


Important!

Quantity, UnitPrice, DiscountPercent and VatPercent for each order row is expected to be given in minor currency.

var Cart = {
    Items: [{                   // In this example we create
        Quantity: 100,          // one item
        Name: "Computer",       // called “Computer”
        UnitPrice: 500000,      // with a price of 5000 SEK,
        DiscountPercent: 1000,  // a discount of 10%
        VatPercent: 2500        // and 25% VAT
    }]
};

HttpStatusCodes in use

200 Success

Request was successful.

201 Created

The order was created successfully.

302 Found

The order was found.

400 Bad Request

The input data was invalid.

401 Unauthorized

The request did not contain correct authorization.

403 Forbidden

The request did not contain correct authorization.

404 Not Found

No order with the requested ID was found.