Create PO with received quantity on line items has stopped working

Hi Community,

Previously we managed to create a PO with received quantity populated on the line items using the child account access token. However, when we tried creating a PO now, we have noticed that the received quantity is not updating even though we pass it on the mutation. This is the last PO that was created when it was still working: https://app.shiphero.com/dashboard/purchase-orders/details/977639

Can you help us check on this? Here are the following details of the mutation:

Mutation:

mutation purchaseOrderCreate {
  purchase_order_create(
    data: {
      po_number: "PO-CREATE-TEST-V60"
      warehouse_id: "V2FyZWhvdXNlOjc1OTY5"
      po_date: "2022-02-24"
      packing_note: ""
      vendor_id: "443576"
      shipping_price: "0"
      subtotal: "0"
      total_price: "0"
      line_items: {
        expected_weight_in_lbs: "0"
        price: "0"
        quantity: 2
        quantity_received: 2
        sku: "6821-44557#79-st-v24"
        vendor_id: "443576"
      }
    }
  ) {
    complexity
    request_id
    purchase_order {
      id
      po_number
      line_items {
        edges {
          node {
            id
            sku
            quantity_received
            quantity
            quantity_rejected
            warehouse_id
            vendor_id
            vendor_sku
          }
        }
      }
    }
  }
}

Then is the response:

{
  "data": {
    "purchase_order_create": {
      "complexity": 10,
      "request_id": "6215fb73187398fe064a18cf",
      "purchase_order": {
        "id": "UHVyY2hhc2VPcmRlcjo5ODA1ODg=",
        "po_number": "PO-CREATE-TEST-V60",
        "line_items": {
          "edges": [
            {
              "node": {
                "id": "UHVyY2hhc2VPcmRlckxpbmVJdGVtOjEyODE2NTE1",
                "sku": "6821-44557#79-st-v24",
                "quantity_received": 0,
                "quantity": 2,
                "quantity_rejected": 0,
                "warehouse_id": "V2FyZWhvdXNlOjc1OTY5",
                "vendor_id": "VmVuZG9yOjQ0MzU3Ng==",
                "vendor_sku": null
              }
            }
          ]
        }
      }
    }
  }
}

Looking forward for you response. Thank you so much.

Best Regards,
Altair

Cc: @Edwin

Hello @altair!

Could you try again now?

Best,
TomasFD

Hi @tomasfd ,

It is working now. Thank you! :slight_smile:

Regards,
Altair

Hi @tomasfd

Will there be any chances that this issue might happen again?

Thank you.

Regards
Altair

Hello @Altair!

This issue shouldn’t happen again, that particular issue has been fixed.

Kind regards,
TomasFD

Hi @tomasfd,

Hope you have a good day!

This issue has occured again today with one of our PO’s. The quantity received that we passed on the PO Create mutation is not reflecting on ShipHero. Can you help us check on this ASAP as this is critical to our current process.

Here are the following details of the request:
PO No: DO58627422115617I
Request ID: 625769ff675cd1ab998cbdc8

Looking forward for your response.

Kind Regards,
Altair

Cc: @ddl @Edwin

Hello @Altair!

I’m going to escalate this to our engineering team.

Can you try updating the PO using purchase_order_update? I know it is not optimal, but as a workaround for now.

Kind regards,
TomasFD

Good day @ tomasfd,
Can I please get an update on this? Meanwhile we will need help for you guys to rectify all our affected orders that had this issue.