Skip to main content

markShipmentCourierPaid

Requires permission sales:sales_order:ship.

Record that the seller paid the courier for a shipment (date YYYY-MM-DD, method, reference). Refused for a cancelled shipment or a failed booking. Re-marking overwrites the record (audited). Recording only — no money moves.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation MarkShipmentCourierPaid($input: MarkShipmentCourierPaidInput!, $shipmentId: ID!) {
markShipmentCourierPaid(input: $input, shipmentId: $shipmentId) {
id
serviceLevelCode
shipmentNumber
trackingNumber
carrierName
serviceLevelName
costSplit {
changedByName
changedAt
courierCharge
currency
customerPaid
plannedCost
}
}
}

Variables:

{
"input": {
"method": "string",
"paidOn": "string"
},
"shipmentId": "id"
}

Response:

{
"data": {
"markShipmentCourierPaid": {
"id": "id",
"serviceLevelCode": "string",
"shipmentNumber": "string",
"trackingNumber": "string",
"carrierName": "string",
"serviceLevelName": "string",
"costSplit": {
"changedByName": "string",
"changedAt": "2025-01-15T00:00:00Z",
"courierCharge": "string",
"currency": "string",
"customerPaid": "string",
"plannedCost": "string"
}
}
}
}
markShipmentCourierPaid(
input: MarkShipmentCourierPaidInput!
shipmentId: ID!
): ShipmentGql!

Arguments​

markShipmentCourierPaid.input ● MarkShipmentCourierPaidInput! non-null input​

The details of the mark shipment courier paid request.

markShipmentCourierPaid.shipmentId ● ID! non-null scalar​

The ID of the shipment.

Type​

ShipmentGql object​

A shipment as staff see it. It includes the seller's cost and is never returned to buyers.