# Relax validation of shipping and payment when inserting order

URL: https://shoptet.dev/news/api/relax-validation-of-shipping-and-payment-when-inserting-order

October 15, 2020 · One min read
Pavel Husa

Since the [Insert order](https://api.docs.shoptet.com/shoptet-api/openapi/orders/createorder) endpoint was introduced it was requested to specify valid shipping and payment information. This was however an obstacle for historical orders import if some shipping or payment methods were not available in the eshop anymore.

To simplify this, we have introduced `?suppressHistoricalShippingChecking=true` parameter. If used, you can insert an order item of type `shipping` without specifying `shippingGuid` . The description (field `name` ) must however specified. This is applied only for "historical" orders, i. e. older than 24 hours.

Similarly `?suppressHistoricalPaymentChecking=true` enables to specify any payment method for a historical order. It is however preferable to insert consistent data, i. e. to specify `shippingGuid` and `paymentMethodGuid` and keep the data consistent for usage of statistics and other eshop features and addons.

**Tags:**
- [API](/news/tags/api/)
