I am a third party integration i am placing a delivery order for my client restaurant it is not placing the order why

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

:waving_hand: 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:

Additional Documentation

Payments API Integration
Troubleshoot the Payments API
Pay for Orders

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.

What are you calling to get this error? I’m wondering why Weebly is mentioned in it. :slight_smile:

Hello,

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”.

Best Regard,
tim

Hi, thanks for the reply.

Could you please clarify the following:

  1. Where exactly should I set the workflowType?
    Is it expected in the metadata field, or handled differently within the fulfillment object?
  2. 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?

I using checkout api for placing the order and generating the payment for that order

@Raghul Can you share your application ID as well as an example of a Checkout API request you’re making that’s resulting in this error?

Below are the details of my request
ApplicationId:- sq0idp-yyHw0Irtwe0801a_f9QzjQ
Example checkout Api Request
{
“idempotency_key”: “d7f3e8c1-fb5b-4e3d-888b-123456789abc”,
“checkout_options”: {
“accepted_payment_methods”: {
“google_pay”: true
},
“allow_tipping”: true,
“enable_coupon”: true
},
“payment_note”: “id”,
“order”: {
“location_id”: “location_id”,
“customer_id”: “9f7c4bfc-71e1-4e27-9230-d3b1a3a0fa9a”,
“fulfillments”: [
{
“type”: “DELIVERY”,
“delivery_details”: {
“managed_delivery”: true,
“prep_time_duration”: “P30M”,
“recipient”: {
“address”: {
“address_line_1”: “address”,
“address_line_2”: “”,
“locality”: “”,
“administrative_district_level_1”: “CA”,
“postal_code”: “90001”,
“country”: “US”
},
“display_name”: “customerName”,
“email_address”: “customerEmail”,
“phone_number”: “customerPhoneNumber”
},
“schedule_type”: “SCHEDULED”,
“deliver_at”: “2025-07-01T18:30:00Z”
},
“state”: “PROPOSED”,
“uid”: “62f5c481-ec2f-4e67-b6a2-e8e4a0d9a4c7”
}
],
“line_items”: [
{
“name”: “Vegan Pizza”,
“quantity”: “1”,
“base_price_money”: {
“amount”: 100,
“currency”: “USD”
}
},
{
“name”: “Coke”,
“quantity”: “2”,
“base_price_money”: {
“amount”: 100,
“currency”: “USD”
}
}
],
“state”: “OPEN”
}
}

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

Thanks for the update @josh-square, We’ve already submitted the Partnership Request but haven’t received any response yet

@josh-square, Can you please provide the contact details of square partnership manager.

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!