On Sales Order Create allow_partial: true not updated

Hi Tom,

We are creating the the sales order in shiphero, the sales order created successfully but the allow_partial boolean field value is not updating into the created shiphero sales order, we are sending true but nothing happen. please find below request and response for the same.

Request To create sales order in shiphero :

mutation {
order_create(
data: {
order_number: “64”
shop_name: “ExampleShop”
fulfillment_status: “Default”
total_tax: “00”
subtotal: “39.99”
total_discounts: “00”
total_price: “39.99”
allow_partial: true
gift_note: “is a gift”
shipping_lines: {
title: “UPS”
price: “00.00”
}
shipping_address: {
first_name: “John”
company: “The John”
address1: “Duck”
city: “Oklahoma”
state: “Oklahoma”
zip: “73008”
country: “US”
phone: “555555555”
}
line_items: {
sku: “DP1-OCB-BGE-XXL-FCB”
partner_line_item_id: “282960838”
quantity: 2
price: “100.00”
product_name: “Lucille Maternity & Nursing Nightgown | Summer Bliss”
fulfillment_status: “Default”
quantity_pending_fulfillment: 2
warehouse_id: “V2FyZWhvdXNlOjczNTE=”
}
}
) {
request_id
complexity
order {
id
order_number
shop_name
fulfillment_status
order_date
total_tax
subtotal
total_discounts
total_price
allow_partial
custom_invoice_url
account_id
email
profile
packing_note
required_ship_date
shipping_address {
first_name
last_name
company
address1
address2
city
state
state_code
zip
country
country_code
email
phone
}
line_items(first: 1) {
edges {
node {
id
sku
product_id
quantity
product_name
fulfillment_status
quantity_pending_fulfillment
quantity_allocated
backorder_quantity
eligible_for_return
customs_value
warehouse_id
locked_to_warehouse_id
}
}
}
}
}
}

Response from shiphero :

{
“data”: {
“order_create”: {
“request_id”: “5f3be7d7950bae264fe12378”,
“complexity”: 10,
“order”: {
“id”: “T3JkZXI6MTQyNTU5NjM3”,
“order_number”: “64”,
“shop_name”: “ExampleShop”,
“fulfillment_status”: “Default”,
“order_date”: null,
“total_tax”: “0.00”,
“subtotal”: “39.9900”,
“total_discounts”: “0.00”,
“total_price”: “39.99”,
“allow_partial”: true,
“custom_invoice_url”: null,
“account_id”: “QWNjb3VudDo0OTg1MA==”,
“email”: null,
“profile”: “default”,
“packing_note”: null,
“required_ship_date”: null,
“shipping_address”: {
“first_name”: “John”,
“last_name”: null,
“company”: “The John”,
“address1”: “Duck St.”,
“address2”: null,
“city”: “Oklahoma”,
“state”: “Oklahoma”,
“state_code”: null,
“zip”: “73008”,
“country”: “US”,
“country_code”: null,
“email”: null,
“phone”: “5555555555”
},
“line_items”: {
“edges”: [
{
“node”: {
“id”: “TGluZUl0ZW06NDA2ODk1MzIy”,
“sku”: “DP1-OCB-BGE-XXL-FCB”,
“product_id”: null,
“quantity”: 2,
“product_name”: “Lucille Maternity & Nursing Nightgown | Summer Bliss”,
“fulfillment_status”: “Default”,
“quantity_pending_fulfillment”: 2,
“quantity_allocated”: 0,
“backorder_quantity”: 0,
“eligible_for_return”: true,
“customs_value”: “0.00”,
“warehouse_id”: “V2FyZWhvdXNlOjczNTE=”,
“locked_to_warehouse_id”: “V2FyZWhvdXNlOjczNTE=”
}
}
]
}
}
}
}
}

can you please what is the reason, why the allow_partial fields not updating, its a boolean field in shiphero i.e. checkbox.

Looking forward to your reply ,

Thanks
Mangesh

Hi @Mangesh
Thanks for catching this! It seems to be an issue when creating an order on the customer account instead of the 3PL account. I already reported this to our engineering team to get it fixed.

In the meantime, some workarounds for this right now would be to:

  1. Create the order using the 3PL credentials and using the customer_account_id:"7556"

  2. Update the order for allow partial with:

    mutation{
    order_update(data: {
    order_id:“142580388”
    allow_partial:true}
    ){
    request_id
    complexity
    }
    }

I will let you know as soon as this is fixed.
Thanks in advance!
Tom