Delivery Report and Statistics
The shops need to inform SeQura about their shipments at least once a day so that SeQura can send invoices (payment instructions) to the shoppers on a timely basis. To help SeQura maintain the quality of the service, the shops can also include some statistics on all orders, not just the ones processed by SeQura.
Delivery Report API
The endpoint for the delivery reports is the same of orders, appending
/delivery_reports
. E.g.: https://sandbox.sequrapi.com/orders/delivery_reports
Order data: The order data should be a list of the orders that have been shipped since the last report, in the same format as during the checkout (with the exception of some customer data like IP number and user agent).
The orders.x.cart.items
key should contain the items that were included in the delivery and orders.x.cart.order_total_with_tax
should only include the delivered items. Any remaining items should be reported in orders.x.remaining_cart
. See the list below for details.
The state of each order should be set to “delivered” if you know that the order has been received by the shopper and “shipped” otherwise.
Implementation tips: We recommend that you send the delivery reports on an automatic schedule, and regardless of whether any orders have been shipped—it saves us a call to check if things are all right.
Sending the reports at night increases the probability that any mistakes committed in the shop database during the day will have been corrected.
Delivery Report API Payload and Examples
Statistics API
The statistics section is an optional part of the API. It gives SeQura information that is used for Quality Assurance in the long term (detecting trends) and short term (detecting bugs in implementations, detecting cancelled orders). The payload must contain current data about all orders placed in the online store during the past 7 days, regardless of whether the orders are being handled by SeQura or not.
Statistics API Payload and Examples