Error I am getting While Doing Payment is ERROR:- ```javascript
{“errors”: [{“code”: “INVALID_VALUE”,“detail”: “Not a valid com.weebly.Digital workflow order.”,“field”: "order.workfl (truncated…
##
- ✅ Pickup orders work fine
- ❌ Delivery orders fail with "Not a valid com.weebly.Digital workflow order" error
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
Your delivery orders fail because workflowType is likely missing or incorrect. Set it to “DIGITAL_DELIVERY” and ensure fulfillmentType: “DELIVERY” with proper deliveryDetails. Pickup works because it uses “DIGITAL_PICKUP”.
Where exactly should I set the workflowType?
Is it expected in the metadata field, or handled differently within the fulfillment object?
Do I need any specific approval or enablement from Square to use the delivery fulfillment workflow (DIGITAL_DELIVERY)? Or is it available by default for all Square merchants?
Thanks for the additional details @Raghul! The DELIVERY fulfillment type is currently only available via a restricted closed Beta. If you’re a partner developer, you can reach out to your Square Partner Manager to request access. If you’re not a partner, you can apply to become one here: Submit a Partnership Request
Hey @Raghul, that isn’t something that I can share publicly. The team has a high volume of requests so they may take some time to respond, but they’ll get back to you as soon as possible!