Admin API / Mutations

markShipmentDelivered

Marks an old shipment as delivered when the carrier did not report the delivery. Each order of the shipment must be more than 60 days old, also a refunded or cancelled order. The shipment changes to DELIVERED, and so does each of its orders that is PAID, READY_TO_SHIP or SHIPPED. District records the mark as a seller mark, not a carrier delivery, with the user who made it. The buyer gets no notification, and the time of the seller payout does not change. A later delivery scan from the carrier also sends no buyer notification and does not change the payout time of the orders that this request changed. Repeating the request for a delivered shipment succeeds without changes and records no second mark. Returns ShipmentTooRecentToMarkDeliveredError when an order is 60 days old or less, and ShipmentDeliveryFailedError when the carrier of a label bought through District reports that the parcel was returned or that the delivery failed, also for a cancelled shipment. Returns ShipmentNotDeliverableError for a refunded shipment, for another cancelled shipment, for a shipment whose status the API does not recognize (UNKNOWN), and for a shipment with no order in PAID, READY_TO_SHIP or SHIPPED. Returns ShipmentNotFoundError when the caller cannot read the shipment, and UnauthorizedError with requiredRole: null when the caller can read the shipment but the seller of its orders is not the caller and not the owner of a store that the caller staffs. A caller below the SELLER role who has open seller obligations marks only the shipments that Query.shipment gives them.

Requires a client key with one of these scopes: admin:shipments:writeRequires this member role or higher: SELLER A member below this role, or an inactive member, who has outstanding seller obligations can also call it.
markShipmentDelivered(
  input: MarkShipmentDeliveredInput!
): MarkShipmentDeliveredPayload!

Arguments

ArgumentTypeDescription
inputMarkShipmentDeliveredInput!The shipment to mark as delivered.

Return type

MarkShipmentDeliveredPayload!