Anchor to section titled 'undefined'

returnableFulfillment
query

Lookup a returnable fulfillment by ID.


Anchor to id
id
required

The ID of the ReturnableFulfillment to return.


Was this section helpful?

Anchor to ReturnableFulfillment
ReturnableFulfillment
Access requirements

A returnable fulfillment, which is an order that has been delivered and is eligible to be returned to the merchant.


Was this section helpful?
Retrieve a returnable fulfillment and its line items.
Hide code
DescriptionCopy
query {
  returnableFulfillment(id: "gid://shopify/ReturnableFulfillment/607470790") {
    id
    fulfillment {
      id
      status
    }
    returnableFulfillmentLineItems(first: 5) {
      edges {
        node {
          quantity
          fulfillmentLineItem {
            id
            lineItem {
              id
              originalUnitPriceSet {
                shopMoney {
                  amount
                  currencyCode
                }
              }
              quantity
              requiresShipping
              taxable
              unfulfilledQuantity
            }
          }
        }
      }
    }
  }
}
Hide code
Response
JSON
{
  "returnableFulfillment": {
    "id": "gid://shopify/ReturnableFulfillment/607470790",
    "fulfillment": {
      "id": "gid://shopify/Fulfillment/607470790",
      "status": "SUCCESS"
    },
    "returnableFulfillmentLineItems": {
      "edges": [
        {
          "node": {
            "quantity": 2,
            "fulfillmentLineItem": {
              "id": "gid://shopify/FulfillmentLineItem/667843070",
              "lineItem": {
                "id": "gid://shopify/LineItem/571194661",
                "originalUnitPriceSet": {
                  "shopMoney": {
                    "amount": "10.0",
                    "currencyCode": "USD"
                  }
                },
                "quantity": 2,
                "requiresShipping": true,
                "taxable": true,
                "unfulfilledQuantity": 0
              }
            }
          }
        }
      ]
    }
  }
}