Hi to everyone,
I’m trying to get the vendor.name and vendor.email for a purchase order, but those fields are comming empty (in fact, null), next is the query (and the response we’re getting from API):
query{
purchase_order (id:“xxxxxxx”){
data{
id,
po_number,
po_date,
account_id,
vendor_id,
created_at,
fulfillment_status,
po_note,
description,
subtotal,
shipping_price,
vendor{
name,
legacy_id,
email
},
total_price,
line_items(first: 2) {
edges {
node {
id,
legacy_id,
po_id,
account_id,
warehouse_id,
vendor_id,
po_number,
sku,
barcode,
note,
quantity,
quantity_received,
quantity_rejected,
product_name,
}
}
}
}
}
}
Response (just a portion of it):
{
“data”: {
“purchase_order”: {
“data”: {
“id”: “XXXXXXXXXXXXXXXXXXXXXXXXX=”,
“po_number”: “2010-01 Stars Spats”,
“po_date”: “2010-10-20T00:00:00+00:00”,
“account_id”: “XXXXXXXXXXXXXXXX”,
“vendor_id”: “VmVuZG9yOjA=”,
“created_at”: “2020-10-02T14:35:42+00:00”,
“fulfillment_status”: “pending”,
“po_note”: null,
“description”: null,
“subtotal”: “825”,
“shipping_price”: “825”,
“vendor”: {
“name”: null,
“legacy_id”: 0,
“email”: null
},
what is it wrong?