reverseDeliveryCreateWithShipping
Requires access scope. Also: The user must have
permission.
Creates a new reverse delivery with associated external shipping information.
Arguments
- Anchor to labelInputlabel•
Input ReverseDelivery Default:nullLabel Input The return label file information for the reverse delivery.
- Anchor to notifyCustomernotify•
Customer BooleanDefault:true When
true
the customer is notified with delivery instructions if theis present.
- Anchor to reverseDeliveryLineItemsreverse•
Delivery Line Items [ReverseDelivery requiredLine Item Input!]! The reverse delivery line items to be created. If an empty array is provided, then this mutation will create a reverse delivery line item for each reverse fulfillment order line item, with its quantity equal to the reverse fulfillment order line item total quantity.
- Anchor to reverseFulfillmentOrderIdreverse•
Fulfillment Order Id ID!required The ID of the reverse fulfillment order that's associated to the reverse delivery.
- Anchor to trackingInputtracking•
Input ReverseDelivery Default:nullTracking Input The tracking information for the reverse delivery.
Anchor to ReverseDeliveryCreateWithShippingPayload returnsReverseDeliveryCreateWithShippingPayload returns
- Anchor to reverseDeliveryreverse•
Delivery The created reverse delivery.
- Anchor to userErrorsuser•
Errors [ReturnUser non-nullError!]! The list of errors that occurred from executing the mutation.
Mutation Reference
Input
{
"labelInput": {
"fileUrl": "https://example.myshopify.com"
},
"notifyCustomer": true,
"reverseDeliveryLineItems": [
{
"quantity": 1,
"reverseFulfillmentOrderLineItemId": "gid://shopify/<objectName>/10079785100"
}
],
"reverseFulfillmentOrderId": "gid://shopify/<objectName>/10079785100",
"trackingInput": {
"number": "<your-number>",
"url": "https://example.myshopify.com"
}
}
input ReverseDeliveryLabelInput {
fileUrl: URL!
}
input ReverseDeliveryLineItemInput {
quantity: Int!
reverseFulfillmentOrderLineItemId: ID!
}
input ReverseDeliveryTrackingInput {
number: String
url: URL
}