The costs for shipping and handling of an order depend on the items and country. You don't need to calculate these yourself: you can request the shipping cost from the API before creating an order.
TIP: You can find an indication of the shipping and handling rates in our products list.
var quote = await client.Shipping.PostAsync(_getShipmentData());
decimal amount = quote.Shipping + quote.Handling;
decimal tax = Math.Round(amount * quote.TaxRate, 2, MidpointRounding.AwayFromZero);
Console.WriteLine("Cost price: € {0} excl. BTW", amount);
Console.WriteLine("Cost price VAT: € {0} excl. BTW", tax);
// If you use our payment screen:
Console.WriteLine("Retail price: € {0} incl. BTW", quote.Payment);
private PrintApi.Input.Shipment _getShipmentData()
{
return new PrintApi.Input.Shipment
{
Country = Country.NL,
Items = new[]
{
new PrintApi.Input.Shipment.Item
{
ProductId = "canvas_30x20",
Quantity = 5
}
}
};
}
Special fields:
Name | Details |
---|---|
"country" |
An ISO 3166-1 alpha 2 country code |
"state" |
Only for U.S. addresses: a ISO 3166-2:US state code |
item["productId" ] |
Can be found in the products list |
item["pageCount" ] |
Needed only for books and photo prints |
The API response contains the cost prices for shipping and handling, excluding VAT. If you use our payment
screen, you can find the payment due in the field payment
: this is the shipping + handling cost
including VAT, rounded up to a consumer-friendly amount.