Orders/create webhook and unpaid / abandoned orders

69 views
Skip to first unread message

R. S.

unread,
Nov 28, 2011, 4:15:52 PM11/28/11
to shopify-api
We're starting to see some new behavior from Shopify in which we're
getting Orders pushed to us via the webhook for orders that haven't
even been completed. For example, the customer will pass the first
page of the Billing information and then the order is sent to us with
a financial_status field set to BLANK without the customer completing
the order. I wasn't expecting the order to be sent to us at this
point. Is this a new behavior of the webhook system? If so, how do we
differentiate between unpaid orders and orders that are created but
not completed?

This is causing some issues with some of our customers that are
receiving these in-process orders coming from the webhook.

Thanks!

Denis Odorcic

unread,
Nov 28, 2011, 4:27:03 PM11/28/11
to shopi...@googlegroups.com
We've always sent out webhooks for orders as soon as they're created, this is how apps can track which orders have been abandoned for example. If you only need to receive notifications for orders that are paid, you should observe the orders/paid webhook instead of orders/create. Orders that have not been completed will have a financial status of nil, the others will have the appropriate status (authorized, paid, etc).

Denis Odorcic
Developer - Shopify

H. S. Leewis

unread,
Nov 28, 2011, 4:29:59 PM11/28/11
to shopi...@googlegroups.com
Hi Dennis,

That is strange, I only get completed/paid orders with the orders/create webhook.

Cheers,

Harold 

R. S.

unread,
Nov 28, 2011, 4:39:06 PM11/28/11
to shopify-api
Ok, turns out it is sending an orders/updated webhook even though the
orders have not been created or completed. This is a new behavior, I
think!

Ron

On Nov 28, 4:29 pm, "H. S. Leewis" <hslee...@gmail.com> wrote:
> Hi Dennis,
>
> That is strange, I only get completed/paid orders with the orders/create webhook.
>
> Cheers,
>
> Harold
>
> On Nov 28, 2011, at 10:27 PM, Denis Odorcic wrote:
>
>
>
>
>
>
>
> > We've always sent out webhooks for orders as soon as they're created, this is how apps can track which orders have been abandoned for example. If you only need to receive notifications for orders that are paid, you should observe the orders/paid webhook instead of orders/create. Orders that have not been completed will have a financial status of nil, the others will have the appropriate status (authorized, paid, etc).
>
> > Denis Odorcic
> > Developer - Shopify
>

Denis Odorcic

unread,
Nov 28, 2011, 4:45:43 PM11/28/11
to shopi...@googlegroups.com
To clarify:

orders/updated - fired whenever an order changes (even if they haven't completed it)
orders/create - fired after an order is placed through the checkout process
orders/paid - fired after an order is paid (captured)

We haven't made any recent changes so there's nothing new.

Denis Odorcic
Developer - Shopify



R. S.

unread,
Nov 28, 2011, 6:50:14 PM11/28/11
to shopify-api
Ok, it just seems a bit odd that we'd get an order/updated webhook
before we get an order/created webhook. We need to ignore order/
updated webhooks until we get the order/create. It seems backwards,
but I guess I understand... maybe?

Ron

On Nov 28, 4:45 pm, Denis Odorcic <denis.odor...@jadedpixel.com>
wrote:


> To clarify:
>
> orders/updated - fired whenever an order changes (even if they haven't
> completed it)
> orders/create - fired after an order is placed through the checkout process
> orders/paid - fired after an order is paid (captured)
>
> We haven't made any recent changes so there's nothing new.
>
> Denis Odorcic
> Developer - Shopify
>

> On Mon, Nov 28, 2011 at 4:29 PM, H. S. Leewis <hslee...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi Dennis,
>
> > That is strange, I only get completed/paid orders with the orders/create
> > webhook.
>
> > Cheers,
>
> > Harold
>
> > On Nov 28, 2011, at 10:27 PM, Denis Odorcic wrote:
>
> > We've always sent out webhooks for orders as soon as they're created, this
> > is how apps can track which orders have been abandoned for example. If you
> > only need to receive notifications for orders that are paid, you should
> > observe the orders/paid webhook instead of orders/create. Orders that have
> > not been completed will have a financial status of nil, the others will
> > have the appropriate status (authorized, paid, etc).
>
> > Denis Odorcic
> > Developer - Shopify
>

Edward Ocampo-Gooding

unread,
Nov 28, 2011, 10:16:51 PM11/28/11
to shopi...@googlegroups.com
Hey Ron,

It’s a matter of nomenclature/context.

order/create fires when the order has a non-abandoned financial status; this is when the order’s been placed. For historical reasons, we called this 'created' and aren’t super keen on changing its name. I admit that it’s weird that it fires after “updated”.

In actuality, as Denis mentioned earlier, the database records are created upon the cart object turning into an order with financial status = abandoned.

If you just want orders that have non-abandoned financial statuses, just listen for order/created and the others that Denis listed.

Edward Ocampo-Gooding
Developer Advocate, Shopify


On Monday, 28 November, 2011 at 6:50 PM, R. S. wrote:

> Ok, it just seems a bit odd that we'd get an order/updated webhook
> before we get an order/created webhook. We need to ignore order/
> updated webhooks until we get the order/create. It seems backwards,
> but I guess I understand... maybe?
>
> Ron
>

> On Nov 28, 4:45 pm, Denis Odorcic <denis.odor...@jadedpixel.com (http://jadedpixel.com)>

Reply all
Reply to author
Forward
0 new messages