younifyd
Menu

reverseDeliveryShippingUpdate

Updates a reverse delivery with associated external shipping information.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the reverseDeliveryShippingUpdate action (under Reverse).
  3. Fill in the fields below, then reference the result from later steps as {{reversedeliveryshippingupdate.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation ReverseDeliveryShippingUpdate($reverseDeliveryId: ID!, $trackingInput: ReverseDeliveryTrackingInput, $labelInput: ReverseDeliveryLabelInput, $notifyCustomer: Boolean) {
  reverseDeliveryShippingUpdate(
    reverseDeliveryId: $reverseDeliveryId
    trackingInput: $trackingInput
    labelInput: $labelInput
    notifyCustomer: $notifyCustomer
  ) {
    reverseDelivery {
      deliverable
      id
      reverseFulfillmentOrder {
        id
        order
        status
        thirdPartyConfirmation
      }
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

reverseDeliveryIdstringrequired

The ID of the reverse delivery to update.

trackingInputobject

The tracking information for the reverse delivery.

numberstring
urlstring
labelInputobject

The return label file information for the reverse delivery.

fileUrlstringrequired
notifyCustomerboolean

If `true` and an email address exists on the `ReverseFulfillmentOrder.order`, then the customer is notified with the updated delivery instructions.

json
{
  "reverseDeliveryId": "string",
  "trackingInput": {
    "number": "string",
    "url": "string"
  },
  "labelInput": {
    "fileUrl": "string"
  },
  "notifyCustomer": false
}

Response

Read the result with {{reversedeliveryshippingupdate.response.data.data.reverseDeliveryShippingUpdate}}. If the API returns errors, the step fails and they are at {{reversedeliveryshippingupdate.response.data.errors}}.

reverseDeliveryobject
deliverableobject2 fields

This field can return one of several different object shapes — properties from every possible shape are shown together.

idstring
reverseFulfillmentOrderobject4 fields
userErrorsarray<object>
codeobject
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.