Closed broccolistalker closed 7 years ago
What store ID was this for?
On Apr 16, 2017 6:26 AM, "broccolistalker" notifications@github.com wrote:
I am having trouble placing an order. Has anyone else experienced this problem: StatusItems: [ { Code: 'AutoAddedOrderId' }, { Code: 'PriceInformationRemoved' }, { Code: 'RuleExecutionError', Message: 'BusinessRule ServiceMethodAllowedForBuildingAtStore failed. Cause: nullOn StoreOrderID: ' } ], This is present after attempting to validate the order.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RIAEvangelist/node-dominos-pizza-api/issues/64, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWhkbl_j35YLoOQ39PddD7xlWsHq00Eks5rwhb5gaJpZM4M-oJG .
I'm also having this issue for store ID 7764
It's actually happening for all stores.
@benhubsch can you confirm this is an issue with the examples as well?
We ended up figuring out the issue. It had nothing to do with the store itself -- we were later able to place a store at that order after inspecting this file closely: https://github.com/bhberson/pizzadash/blob/master/exampleorder.json
What was the issue afterall, if you remember?
Not entirely sure. It either had something to do with the fact that the Dominos didn't deliver to our location, or something about our types (strings vs. numbers) being wrong.
Getting something like this when I use order.place(). order.validate()
returns success with Status: 1
, but when place() is called on the exact same order, it returns a Status: -1
and a statusItem of {Code: "RuleExecutionError", Message: "BusinessRule BlacklistValidator failed. Cause: nullOn StoreOrderID: "}
I've tried with the StoreID as a string and a number, both return the same message.
So after some trial and error I simply tried order.StoreOrderID = order.storeID
. Both were 4 digit numbers. It worked and the order was successfully placed and correctly delivered. The result
returned from order.place() returned some things I couldn't find in any of the docs:
StoreOrderID: "2018-12-14#580XXX",
// notice this has changed.StatusItems: [...{Code: "RuleExecutionError", Message: "BusinessRule BlacklistValidator Caused an exception. Cause: null Pulse Order successfully placed, so continuing business rules executionOn StoreOrderID: XXXX" }],
PulseOrderGuid: "a7983fd0-3386-4ba9-xxxx-xxxxxxxxxxxx"
Don't know what any of those are mean, but I got pizza. I'll take it.
I am having trouble placing an order. Has anyone else experienced this problem: StatusItems: [ { Code: 'AutoAddedOrderId' }, { Code: 'PriceInformationRemoved' }, { Code: 'RuleExecutionError', Message: 'BusinessRule ServiceMethodAllowedForBuildingAtStore failed. Cause: nullOn StoreOrderID: ' } ], This is present after attempting to validate the order.