Skip to content
English
  • There are no suggestions because the search field is empty.

Our orders still reach Faslet more than once after we moved to the Orders API (our backend sends the order again)

The question

  • We now send our orders to Faslet only through the Orders API, and our middleware receives the order from our front end several times.
  • We now filter the duplicates in our middleware. Does each order reach you once?

Applies to

  • A shop whose own backend sends its orders through the Orders API (POST /orders), with the customerDataPackage taken on the order confirmation page; any shop platform

Answer

This happens when your backend sends the same order to our Orders API more than once. We count every order we receive, so each extra send adds the order again. A copy can come with your shopper's Faslet data or without it. It matters for your figures, for example the number of items ordered and your return rates: a return is linked to every copy of its order line, so one return can count two or more times.

For example: your order confirmation page passes the order and the customerDataPackage to your backend each time the page loads (a reload, a later visit), and your backend sends each one on to us.

  1. Ask your developer or agency to make your backend send each order to us once, also when it receives the same order several times.
  2. Let us know once it is changed, and we check new orders for you.

Why it happens

  • The shop's backend sends the same order to the Orders API more than once, for example because the order confirmation page passes the order to the backend on every load and the backend forwards each.

Is this your situation?

  • Your shop sends its orders only through our Orders API, no order tracking script on your order confirmation page reports them, and orders still reach us more than once: this article.
  • Your shop also has our order tracking script, or our npm package's order tracking, on its order confirmation page: see every item shows up twice (sent by both the order script and the Orders API).

Not solved yet, or asked to send us something? Email support@faslet.me.