Manufacturer SKU always blank

I am trying to fetch Manufacturer SKUs for purchase order’s line items via API but the response always returns null for vendor_sku:

query($po_id: String!) {
            purchase_order(id: $po_id) {
                data { 
                    line_items {
                        edges {
                            node {
                                vendor_sku
                            }
                        }
                    }
                }
            }
        }

I can see the Manufacturer SKU in Shiphero dashboard and in CSV/PDF exports of the given purchase order, but it’s impossible to retrieve that value from the API. This article suggests that it’s the vendor_sku API field that should correspond to the “Manufacturer SKU”, so I think it’s an API bug that it always returns null.

Hey @iraira,

Thanks for reaching out and welcome to our Developer Community!
Would you mind sharing a request_id for that issue?

Let me know if there’s anything I can do to assist in the meantime.

Best,
RayanP

RayanP, thank you for having a look! The request ID is 63c801ea23e6fc9b59ddd2c4. The query for this request is:

query($po_id: String!) {
            purchase_order(id: $po_id) {
                request_id
                data { 
                    line_items(first:1) {
                        edges {
                            node {
                                id
                                product_name
                                barcode
                                vendor_sku
                            }
                        }
                    }
                }
            }
        }

The returned line item ID is UHVyY2hhc2VPcmRlckxpbmVJdGVtOjE3NDc0NDI1. The vendor_sku is returned as null while if you view this line item in Shiphero web UI the Manufacturer SKU is JETT:R4/8

1 Like

Hey @iraira,

I don’t believe the SKU’s in that PO have their vendor SKU’s setup. When viewing https://purchase-orders.shiphero.com/purchase-orders/details/1339006 the manufacture SKU is blank.

I ran the query in my test account and was able to return the proper value.
Let me know if there’s anything I can do to assist here.

Best,
RayanP

@Rayanp Thank you for looking into this! Hmm… I normally don’t use that UI, I am using this link to URL the same purchase order and the Manufacturer SKUs are populated: https://app.shiphero.com/dashboard/purchase-orders/details/1339006

Hi @Rayanp, why does the one view have the manufacturer skus populated and the other doesn’t? Shouldn’t those stay in sync since they’re the same PO or no?

Hey @iraira and @kolbykskk,

I’ve gone ahead and created an Engineering Ticket for that discrepancy, as that is most certainly a confusing bug.

I’ll update everyone in this thread when a fix has been released.

Let me know if there’s anything I can do to assist in the meantime.

Best,
RayanP

1 Like

Thank you, looking forward to a fix!